/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Professional gradient background with image overlay */
    background-image: 
        linear-gradient(135deg, rgba(239, 123, 9, 0.4) 50%, rgba(239, 123, 9, 0.15) 75%, rgb(239, 123, 9) 100%),
        url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* If you want to use a different image format, update the URL above */
/* Supported formats: .jpg, .jpeg, .png, .webp */
/* You can also adjust the overlay opacity by changing rgba values (0.75 = 75% opacity) */

/* Pure gradient fallback (uncomment if you don't want to use background image) */
/*
body {
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-color: #667eea;
}
*/

/* Alternative: Use only background image without gradient overlay */
/* Uncomment the body rule below and comment out the one above if you prefer plain image background */
/*
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #667eea;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}
*/

/* Customization Options:
 * 1. To change the background image: Update the url() path on line 12
 * 2. To adjust overlay darkness: Change rgba values (0.75 = 75% opacity)
 *    - Darker overlay (more readable text): Use 0.85 or 0.90
 *    - Lighter overlay (more visible image): Use 0.60 or 0.50
 * 3. To remove overlay completely: Use the alternative body rule above
 * 4. To use only gradient: Comment out background-image and use background-color only
 */

/* Login Page Styles */
.login-container {
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.login-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #000000;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.error-message {
    background-color: #fff5f5;
    color: #c53030;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #fc8181;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(197, 48, 48, 0.1);
}

.success-message {
    background-color: #f0fff4;
    color: #22543d;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px; 
    border-left: 4px solid #48bb78;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(34, 84, 61, 0.1);
}

.login-form {
    margin-top: 30px;
}

body.add-employee-page .login-form {
    max-width: 950px !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}
 
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #2a5298;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e3c72 0%, #1e3c72 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.1);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.1);;
    background: linear-gradient(135deg, #1e3c72 0%, #1e3c72 100%);
}

.login-btn:active {
    transform: translateY(0);
}
  
.login-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
}

.login-footer p {
    margin: 5px 0;
}

.login-footer strong {
    color: #333;
}

.register-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.form-group select,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8fafb;
    cursor: pointer;
}

.form-group select:focus,
.form-select:focus {
    outline: none;
    border-color: #2a5298;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* Dashboard Styles */
.dashboard-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-container.wide {
    max-width: 100%;
    width: 100%;
}

.dashboard-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 35px;
    margin-bottom: 25px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h1 {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.user-info span {
    color: #666;
    font-size: 14px;
}

.user-info strong {
    color: #333;
}

.logout-btn {
    background: linear-gradient(135deg, #ef7b09 0%, #ef7b09 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(30, 60, 114, 0.2);
}

.dashboard-content {
    animation: fadeIn 0.5s ease-in;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card h2 {
    color: #1e3c72;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.dashboard-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.admin-features,
.user-features {
    margin-top: 25px;
}

.admin-features h3,
.user-features h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.admin-features ul,
.user-features ul {
    list-style: none;
    padding: 0;
}

.admin-features ul li,
.user-features ul li {
    padding: 10px 0;
    padding-left: 25px;
    color: #666;
    font-size: 14px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.admin-features ul li:before,
.user-features ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.stats-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.stats-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.stat-card h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.user-info-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.user-info-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 14px;
}

.info-item strong {
    color: #333;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-box {
        padding: 25px 15px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
}

/* Employee Management Styles */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    max-width: 100%;
}

.employees-table {
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 70vh;
    overflow-y: auto;
}

/* Full employees list table - Wide */
.employees-table.wide-table {
    width: 250%;
    min-width: 2200px;
}

/* Recent employees table in dashboard - Normal width */
.employees-table.normal-table {
    width: 100%;
}

.employees-table thead {
    background: linear-gradient(135deg, #ef7b09 0%, #ef7b09 100%);
    color: white;
}

.employees-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ef7b09 0%, #ef7b09 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.employees-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #f0f4f7;
    font-size: 14px;
    color: #2c3e50;
} 

.employees-table tbody tr {
    transition: all 0.2s ease;
}    

.employees-table tbody tr:hover {
    background-color: #f8fafb;
    transform: scale(1.001);
}

.employees-table tbody tr:last-child td {
    border-bottom: none;
}

.actions-cell {
    white-space: nowrap;
}

.btn-edit {
    display: inline-block;
    padding: 8px 16px;
    background: #2a5298;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.2);
}

.btn-edit:hover {
    background: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.btn-delete {
    display: inline-block;
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Responsive table */
@media (max-width: 768px) {
    .employees-table {
        font-size: 12px;
    }
    
    .employees-table th,
    .employees-table td {
        padding: 8px;
    }
    
    .table-container {
        overflow-x: scroll;
    }
}

/* Register User Page Specific Styles */
body.register-user-page .dashboard-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

body.register-user-page .dashboard-header {
    max-width: 100%;
    width: 100%;
    margin: 0 top
}

body.register-user-page .dashboard-card {
    max-width: 100%;
    width: 30%;
    margin: 0 auto;
}

 