﻿/* Global Professional Styles - Compact Version */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --border-color: #e1e5e9;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Global Compact Form Styles */
.form-control, .form-select {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    height: 34px;
    transition: all 0.2s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0.1rem rgba(52, 152, 219, 0.2);
        outline: none;
    }

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Compact Buttons */
.btn {
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
    height: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border: none;
    box-shadow: var(--shadow);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-hover);
    }

.btn-outline-secondary {
    border: 1px solid #6c757d;
}

/* Employee Management Specific Styles */
.employee-management-container {
    background: var(--light-bg);
    min-height: calc(100vh - 100px);
    padding: 15px 0;
}

.employee-content-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Compact Header */
.employee-header {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

    .employee-header h2 {
        font-weight: 700;
        margin: 0;
        font-size: 1.5rem;
    }

    .employee-header .subtitle {
        opacity: 0.9;
        font-size: 0.9rem;
        margin: 5px 0 0 0;
    }

/* Compact Filter Section */
.filter-section {
    background: var(--light-bg);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.filter-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Compact Multiple Select */
select[multiple] {
    min-height: 80px;
    font-size: 0.8rem;
    padding: 4px 6px;
}

/* Compact Table */
.table-container {
    padding: 0;
}

.employee-table {
    margin: 0;
    border: none;
    font-size: 0.85rem;
}

    .employee-table thead th {
        background: linear-gradient(135deg, var(--primary-color), #34495e);
        color: white;
        border: none;
        padding: 8px 6px;
        font-weight: 600;
        font-size: 0.75rem;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .employee-table tbody td {
        padding: 6px;
        border-color: var(--border-color);
        vertical-align: middle;
        text-align: center;
    }

    .employee-table tbody tr {
        transition: all 0.2s ease;
    }

        .employee-table tbody tr:hover {
            background-color: #f8f9fa;
        }

/* Compact Empty State */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    background: var(--light-bg);
}

    .empty-state i {
        font-size: 2.5rem;
        color: var(--text-light);
        margin-bottom: 15px;
        opacity: 0.7;
    }

    .empty-state h4 {
        color: var(--text-dark);
        margin-bottom: 8px;
        font-size: 1.1rem;
    }

    .empty-state p {
        color: var(--text-light);
        font-size: 0.9rem;
        margin: 0;
    }

/* Compact Pagination */
.pagination-container {
    background: var(--light-bg);
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.pagination {
    margin: 0;
    justify-content: center;
}

    .pagination > li > a,
    .pagination > li > span {
        border: 1px solid var(--border-color);
        border-radius: 4px !important;
        margin: 0 2px;
        padding: 6px 10px;
        font-weight: 600;
        color: var(--text-dark);
        transition: all 0.2s ease;
        text-decoration: none;
        font-size: 0.8rem;
    }

        .pagination > li > a:hover {
            background: var(--secondary-color);
            color: white;
            border-color: var(--secondary-color);
        }

    .pagination > .active > a {
        background: var(--secondary-color);
        border-color: var(--secondary-color);
        color: white;
    }

/* Global Table Improvements */
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    font-size: 0.85rem;
}

/* Card Styles for Entire Project */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: white;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-body {
    padding: 15px;
}

/* Global Form Group Compact */
.form-group {
    margin-bottom: 12px;
}

.form-text {
    font-size: 0.75rem;
    margin-top: 3px;
}

/* Alert Sizes */
.alert {
    padding: 10px 15px;
    font-size: 0.85rem;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Navigation Improvements */
.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-size: 0.85rem;
    padding: 6px 12px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .employee-management-container {
        padding: 10px 0;
    }

    .employee-content-wrapper {
        border-radius: 8px;
        margin: 0 5px;
    }

    .employee-header {
        padding: 15px;
        border-radius: 8px 8px 0 0;
    }

        .employee-header h2 {
            font-size: 1.3rem;
        }

    .filter-section {
        padding: 10px;
    }

    .filter-card {
        padding: 12px;
    }

    .form-control, .form-select {
        font-size: 0.8rem;
        padding: 5px 8px;
        height: 32px;
    }

    .btn {
        font-size: 0.8rem;
        padding: 5px 10px;
        height: 32px;
    }

    .employee-table thead th,
    .employee-table tbody td {
        padding: 4px;
        font-size: 0.75rem;
    }

    .table-responsive {
        border: 1px solid var(--border-color);
        border-radius: 6px;
    }
}

@media (max-width: 576px) {
    .employee-header h2 {
        font-size: 1.1rem;
    }

    .employee-header .subtitle {
        font-size: 0.8rem;
    }

    .form-control, .form-select {
        padding: 4px 6px;
        height: 30px;
    }

    .pagination > li > a,
    .pagination > li > span {
        padding: 4px 8px;
        margin: 0 1px;
        font-size: 0.75rem;
    }

    .empty-state {
        padding: 30px 15px;
    }

        .empty-state i {
            font-size: 2rem;
        }
}

/* Utility Classes */
.text-small {
    font-size: 0.85rem !important;
}

.text-smaller {
    font-size: 0.75rem !important;
}

.compact-form .form-group {
    margin-bottom: 8px;
}

.compact-form .form-label {
    margin-bottom: 2px;
}

/* Focus States for Accessibility */
.form-control:focus-visible,
.form-select:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 1px;
}

/* Print Optimization */
@media print {
    .btn,
    .filter-section,
    .pagination-container {
        display: none !important;
    }

    .employee-content-wrapper {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    .employee-table thead th {
        background: #2c3e50 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
}
