/* employee-system/css/employee-system.css */

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif; /* Using Inter as per instructions */
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* updated to off-white */ 
    color: #1e293b;;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
}

/* Header/Navbar (Common for all EMS pages) */
.navbar {
    background-color: #ffffff; /* Blue */
    color: rgb(8, 8, 8);
    font-weight: bold;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);    
    width: 100%;
    }

.navbar .logo {
    /* Styles for the logo container (if it's a div holding the img) */
    display: flex; /* Aligns logo image and potential text horizontally */
    align-items: center; /* Vertically centers items */

    text-decoration: none; /* Ensure no underline on the link if it's a link */
    color: white; /* Fallback color for text if image fails */
    font-size: 36px; /* Fallback size */
    font-weight: 900px; /* Fallback weight */
     
}

/*.navbar .logo img {
    height: 75px;  
    width: 250px; 
    object-fit: contain;  
    vertical-align: middle; 
    border-radius: 8px; Slightly rounded corners for the logo image 
}*/

.navbar .nav-links a {
    color: rgb(7, 7, 7);
    text-decoration: none;
    font-weight: bold;
    margin-right: 350px;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffd740; /* Golden yellow for active/hover */
}

/* Main Content Area */
.main-content {
    flex-grow: 1; /* Allows content area to fill available space */
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align content to top */
}

/* Card/Form Container Styles */
.form-card, .profile-card, .dashboard-section, .list-section {
    background-color: #fff;
    padding: 30px;
    margin-top: 5px;
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    max-width: 500px; /* Max width for forms/profile */
    width: 100%;
    text-align: center;
}

/* Headings */
h1, h2 {
    color: #2c3e50; /* Darker blue-grey */
    margin-bottom: 25px;
    font-weight: 600;
}

/* Form Group Styles */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 12px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"], /* Added for date input */
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px; /* Rounded inputs */
    font-size: 14px;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3f51b5; /* Highlight on focus */
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
    outline: none;
}

/* New: Styles for aligning form fields side-by-side */
.form-row {
    display: flex;
    gap: 20px; /* Space between fields */
    margin-bottom: 22px; /* Consistent margin with form-group */
}

.form-row .form-group { /* Make individual form-groups within a row take equal space */
    flex: 1;
    margin-bottom: 0; /* Remove bottom margin to prevent double spacing */
}

/* Buttons */
.btn-primary {
    background-color: #3f51b5;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px; /* Rounded buttons */
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #303f9f; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

.btn-secondary {
    background-color: #6c757d; /* Grey for secondary actions */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.link-text {
    color: #007bff; /* Standard link blue */
    text-decoration: none;
    font-size: 14px;
    transition: text-decoration 0.2s ease;
}

.link-text:hover {
    text-decoration: underline;
}

/* Messages (Success/Error) */
.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

.message.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green text */
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red text */
    border: 1px solid #f5c6cb;
}

/* Footer (Common for all EMS pages) */
.footer {
    background-color: #ffffff;;
    color: rgb(2, 2, 2);
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5px;
    text-align: center;
    text-decoration: slategrey;
        }

.footer-section {
    flex: 1;
    text-align: center;
}

.footer-section h4 {
    color: #ffd740;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p, .footer-section ul {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd740;
}

.footer .copyright {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    opacity: 0.8;
}

/*  Employee Dashboard section */


.dashboard-container {
            width: 100%;
            max-width: 1400px; /* Wider container for dashboard */
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px; /* Increased gap */
            margin-bottom: 50px; /* More separation */
        }
        .stat-card {
            padding: 30px; /* More padding */
            box-shadow: 0 6px 20px rgba(0,0,0,0.08); /* Slightly softer shadow */
        }
        .stat-card h3 {
            color: #555;
            font-size: 1.15em; /* Slightly larger */
            margin-bottom: 12px;
            font-weight: 600;
        }
        .stat-card .stat-number {
            color: #3b5998; /* Primary blue for numbers */
            font-size: 3em; /* Larger numbers */
            font-weight: 800; /* Extra bold */
        }
        .charts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
            gap: 35px; /* Increased gap */
        }
        .chart-container {
            padding: 30px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.08);
        }
        .chart-container h3 {
            text-align: center;
            font-size: 1.7em;
            margin-bottom: 25px;
            color: #2c3e50;
        }
        /* Ensure canvas is responsive within its container */
        .chart-canvas-container {
            position: relative;
            height: 380px; /* Slightly taller charts */
            max-height: 450px; /* Max height for larger screens */
            width: 100%; /* Ensure it fills container */
            margin: 0 auto; /* Center if it doesn't fill entirely due to max-width */
        }
        @media (max-width: 768px) {
            .charts-grid {
                grid-template-columns: 1fr;
            }
        }
/* profile page */
.profile-card {
            background-color: #fff;
            padding: 30px;
            border-radius: 16px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            max-width: 800px;
            margin: 50px auto;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .profile-header {
            text-align: center;
            margin-bottom: 30px;
        }
        .profile-header h2 {
            color: #3b5998;
            margin-top: 10px;
            font-size: 2em;
        }
        .profile-img-container {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid #3b5998;
            box-shadow: 0 0 15px rgba(0,0,0,0.2);
            margin-bottom: 20px;
        }
        .profile-img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .profile-details-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px 30px; /* Row gap, column gap */
            width: 100%;
            padding: 0 20px;
            text-align: left;
        }
        .profile-detail {
            display: flex;
            flex-direction: column;
        }
        .profile-detail label {
            font-weight: 600;
            color: #555;
            font-size: 0.9em;
            margin-bottom: 5px;
        }
        .profile-detail p {
            background-color: #f0f4f7;
            border: 1px solid #e0e6eb;
            padding: 10px 15px;
            border-radius: 8px;
            color: #333;
            font-size: 1em;
            word-wrap: break-word; /* Ensure long text wraps */
        }
        @media (min-width: 600px) {
            .profile-details-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        .edit-button-container {
            margin-top: 30px;
            width: 100%;
            text-align: center;
        }
        .btn-secondary {
            background-color: #6c757d;
            color: white;
            padding: 12px 25px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.3s ease;
        }
        .btn-secondary:hover {
            background-color: #5a6268;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
    }
    .navbar .nav-links {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .navbar .nav-links a {
        margin: 5px 10px;
    }
    .main-content {
        padding: 20px 15px;
    }
    .form-card, .profile-card, .dashboard-section, .list-section {
        padding: 20px;
        max-width: 100%;
    }
    .footer {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        text-align: center;
    }
    .footer-section {
        max-width: 100%;
        margin-bottom: 20px;
    }
}
