/* style.css - Global Styles for Employee Management System */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.header p {
    text-align: center;
    opacity: 0.9;
    font-size: 1.1rem;
}

.nav-menu {
    background-color: #2c3e50;
    padding: 15px 0;
    margin-bottom: 30px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

.nav-menu a.active {
    background-color: #34495e;
}

/* ===== TYPOGRAPHY ===== */
.page-title {
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    font-size: 2rem;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* ===== MESSAGES & ALERTS ===== */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

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

.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dashboard-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.dashboard-card .count {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
    margin: 10px 0;
}

.dashboard-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.card-1 { border-top: 4px solid #3498db; }
.card-2 { border-top: 4px solid #2ecc71; }
.card-3 { border-top: 4px solid #e74c3c; }
.card-4 { border-top: 4px solid #f39c12; }

/* ===== CONTENT SECTIONS ===== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.form-section, .list-section, .recent-section, .quick-actions {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

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

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

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

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #d68910;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

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

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
}

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

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

/* ===== STATUS BADGES ===== */
.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    font-size: 0.9rem;
}

.status-active {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
}

.status-inactive {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.status-pending {
    color: #f39c12;
    background-color: rgba(243, 156, 18, 0.1);
}

.status-on-leave {
    color: #9b59b6;
    background-color: rgba(155, 89, 182, 0.1);
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 10px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.empty-state p {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions .action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #7f8c8d;
    border-top: 1px solid #eee;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card .count {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .form-section, .list-section, .recent-section, .quick-actions {
        padding: 20px;
    }
    
    th, td {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav-menu, .btn, .action-buttons {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    table {
        font-size: 12px;
    }
}/* ===== SALARIES PAGE SPECIFIC ===== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

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

.stat-card h4 {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 1rem;
}

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

.currency {
    color: #27ae60;
    font-weight: bold;
}

.salary-high {
    color: #27ae60;
    font-weight: bold;
}

.salary-medium {
    color: #f39c12;
    font-weight: bold;
}

.salary-low {
    color: #e74c3c;
    font-weight: bold;
}

/* ===== LEAVE PAGE SPECIFIC ===== */
.leave-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.leave-days {
    background: #e3f2fd;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
}

.leave-type {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.type-vacation { background: #e8f5e9; color: #2e7d32; }
.type-sick { background: #fff3e0; color: #ef6c00; }
.type-personal { background: #f3e5f5; color: #7b1fa2; }
.type-maternity { background: #e0f7fa; color: #006064; }
.type-bereavement { background: #fce4ec; color: #c2185b; }
.type-medical { background: #fff8e1; color: #ff8f00; }
.type-other { background: #e0e0e0; color: #424242; }

/* ===== PRINT STYLES ===== */
@media print {
    .nav-menu, .btn, .action-buttons, .form-section, .stats-cards, .leave-stats, .footer {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    table {
        width: 100% !important;
        font-size: 12px !important;
    }
    
    .list-section {
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .page-title {
        margin-bottom: 10px !important;
    }
}