/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Login page styles */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Header styles */
header {
    background-color: #90D6F9;
    /*color: white;*/
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    /*background-color: #34495e;*/
    background-color:#0A88C7;
}

.logout-btn {
    background-color: #e74c3c;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 5rem;
}

@media(max-width:482px){
    .container{
         margin-top: 7rem!important;
    }
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn.cancel {
    background-color: #95a5a6;
}

.btn.cancel:hover {
    background-color: #7f8c8d;
}

.btn.edit {
    background-color: #f39c12;
}

.btn.edit:hover {
    background-color: #e67e22;
}

.btn.delete {
    background-color: #e74c3c;
}

.btn.delete:hover {
    background-color: #c0392b;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge.active {
    background-color: #2ecc71;
    color: white;
}

.status-badge.inactive {
    background-color: #95a5a6;
    color: white;
}

.status-badge.present {
    background-color: #2ecc71;
    color: white;
}

.status-badge.absent {
    background-color: #e74c3c;
    color: white;
}

/* Alert messages */
.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 600;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard styles */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Attendance table styles */
.attendance-date-selector {
    margin-bottom: 20px;
}

.attendance-summary {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Report styles */
.report-filters {
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
}

.detailed-table {
    font-size: 14px;
}

.detailed-table th {
    text-align: center;
    padding: 8px 5px;
}

.detailed-table td {
    text-align: center;
    padding: 8px 5px;
}

.present-cell {
    background-color: #d4edda;
    color: #155724;
}

.absent-cell {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Overtime specific styles */
.status-actions {
    display: inline-flex;
    gap: 5px;
    margin-top: 5px;
}

.btn.approve {
    background-color: #2ecc71;
}

.btn.approve:hover {
    background-color: #27ae60;
}

.btn.reject {
    background-color: #e74c3c;
}

.btn.reject:hover {
    background-color: #c0392b;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.summary-card h4 {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.status-badge.pending {
    background-color: #f39c12;
    color: white;
}

.status-badge.approved {
    background-color: #2ecc71;
    color: white;
}

.status-badge.rejected {
    background-color: #e74c3c;
    color: white;
}