/* ============================================
   NYASACV ULTRA-MODERN DASHBOARD SYSTEM
   Clean, Professional, Innovative Design
   ============================================ */

/* Body & Page Layout */
body {
    background: #f7f9fc;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.page {
    background: #f7f9fc;
}

/* Header Redesign */
.header {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 1rem 0 !important;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-brand:hover {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-top: 1rem;
}

.nav-item {
    margin-bottom: -2px;
}

.nav-link {
    color: #4a5568;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.nav-link.active {
    color: #667eea;
    background: transparent;
    border-bottom-color: #667eea;
}

/* Page Header */
.page-header {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Cards */
.card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background: #f7fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 2rem;
}

/* Status Badges */
.card-status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.card-status.bg-blue {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.card-status.bg-green {
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
}

.card-status.bg-red {
    background: linear-gradient(90deg, #f56565 0%, #e53e3e 100%);
}

/* Modern Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control,
.form-select,
textarea.form-control {
    height: 48px;
    padding: 0 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: white;
}

textarea.form-control {
    height: auto;
    padding: 0.875rem 1rem;
    min-height: 120px;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #a0aec0;
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.alert-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.1));
    color: #2f855a;
    border-left: 4px solid #48bb78;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1), rgba(229, 62, 62, 0.1));
    color: #c53030;
    border-left: 4px solid #f56565;
}

.alert-info {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), rgba(49, 130, 206, 0.1));
    color: #2c5282;
    border-left: 4px solid #4299e1;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1), rgba(221, 107, 32, 0.1));
    color: #8b4513;
    border-left: 4px solid #ed8936;
}

/* Table Styling */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table thead th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    color: #4a5568;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.table tbody td {
    padding: 1.25rem 1.5rem;
    color: #4a5568;
    font-size: 0.9375rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f7fafc;
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.02);
}

/* Badge Styling */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.badge-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #4a5568;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
}

.dropdown-item i {
    margin-right: 0.5rem;
    color: inherit;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-text {
    color: #718096;
    font-size: 0.875rem;
}

.footer-text a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Resume Cards - Special Styling */
.resume-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.resume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.resume-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.resume-card .card-body {
    padding: 1.5rem;
}

.resume-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.resume-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.resume-card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #718096;
    margin-bottom: 2rem;
}

/* Loading Spinner */
.spinner-border {
    border-color: rgba(102, 126, 234, 0.2);
    border-right-color: #667eea;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-item {
    margin: 0;
}

.page-link {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .resume-card-actions {
        flex-direction: column;
    }

    .resume-card-actions .btn {
        width: 100%;
    }
}

/* Desktop Layout Fixes - Ensure proper widths on desktop */
@media (min-width: 769px) {
    .container {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .col, [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure cards don't stretch too wide */
    .card {
        max-width: 100%;
    }

    /* Ensure forms maintain reasonable widths */
    .form-control,
    .form-select,
    input,
    textarea,
    select {
        max-width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #1a202c;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.2);
    color: #1a202c;
}

/* Scrollbar Styling (Webkit) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f7fafc;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
