/*========================================
  Reset & Base Styles
========================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    font-size: 16px;
}

body {
    background: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

/*========================================
  Site Logo
========================================*/
.site-logo {
    text-align: center;
    margin: 2rem 0;
}

.site-logo img {
    width: auto;          
    max-width: 150px;
    height: auto;          
    display: block;        
    margin: 0 auto;        
    border-radius: 10px;   
}


/*========================================
  Buttons
========================================*/
button,
.btn,
.logout-btn,
.lang-btn {
    background-color: #1976d2;
    color: #fff;
    border: none;
    padding: 0.65rem 1.3rem;
    margin: 0.3rem;
    border-radius: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

button:hover,
.btn:hover,
.logout-btn:hover,
.lang-btn:hover {
    background-color: #0d61b5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.22);
}
/*========================================
  Language Button
========================================*/
.lang-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

/*========================================
  Logout Button
========================================*/
.logout-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


/*========================================
  Forms & Boxes
========================================*/
.box {
    background: linear-gradient(180deg, #ffffff, #f9fafb);
    max-width: 90%;
    width: 500px;
    margin: 3rem auto;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    text-align: center;
}

.box h1, .box h2 {
    margin-bottom: 1.5rem;
    color: #0077b6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/*========================================
  Form Styling
========================================*/
.box form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; 
}

.box input[type="text"],
.box input[type="date"],
.box input[type="number"],
.box input[type="email"],
.box input[type="password"] {
    padding: 0.9rem 1.2rem;
    border-radius: 0.6rem; 
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.box input:focus {
    border-color: #0077b6;
    box-shadow: 0 0 5px rgba(0, 119, 182, 0.3); 
    outline: none;
}

.box input::placeholder {
    color: #999;
    font-style: italic;
}

/*========================================
  Info & Messages
========================================*/
.box p {
    text-align: left;
    margin: 0.6rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

.box .success {
    color: #2d6a4f;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 0.4rem;
    text-shadow: 1px 1px 2px rgba(45, 106, 79, 0.3);
}

.box .error {
    color: #d00000;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 0.4rem;
    text-shadow: 1px 1px 2px rgba(208, 0, 0, 0.3);
}


/*========================================
  Actions Section
========================================*/
.actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/*========================================
  Responsive
========================================*/
@media (max-width: 1024px) {
    .box {
        width: 70%;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .box {
        width: 85%;
    }
}

@media (max-width: 480px) {
    .box {
        width: 95%;
        padding: 1rem;
        margin: 2rem auto;
    }

    .actions {
        flex-direction: column;
        gap: 0.7rem;
    }

    .site-logo img {
        width: 100%;
        max-width: 150px; 
        height: auto;     
        display: block;
        margin: 0 auto;
        border-radius: 10px; 
    }

}

@media print {

    body * {
        visibility: hidden;
    }

    #print-area, #print-area * {
        visibility: visible;
    }

    #print-area {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px 30px;
    }

    #print-btn {
        display: none;
    }

    @page {
        size: A4;
        margin: 15mm;
    }
}

/*========================================
  Javascript
========================================*/
.flash{
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #4CAF50;
        color: white;
        padding: 12px 24px;
        border-radius: 5px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        z-index: 1000;
}