/* ========================================
   Resume Database - Compact Web App Styles
   Mobile-First, Small & Efficient Design
======================================== */

/* Import base styles */
@import url('custom-style.css');


:root {
    --primary-color: #6a1b9a;
    --secondary-color: #facc15;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
}

/* ========================================
   Hero Section - Compact
======================================== */
.resume-hero-section {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1), transparent 38%),
        radial-gradient(circle at 80% 0%, rgba(0, 188, 212, 0.16), transparent 46%),
        linear-gradient(125deg, #120f38 0%, #251451 48%, #0f172a 100%);
    padding: 1.2rem 0.8rem;
    color: white;
    margin-bottom: 1rem;
}

.resume-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.resume-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.resume-hero-badge i {
    margin-right: 0.25rem;
}

.resume-hero-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.resume-hero-description {
    font-size: 0.8rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.resume-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.stat-item {
    background: rgba(255,255,255,0.15);
    padding: 0.6rem 0.4rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-item i {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    display: block;
    color: rgb(0, 132, 255);
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    color:#ffffff;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.stat-label {
    font-size: 0.65rem;
    opacity: 0.9;
    color: rgb(218, 218, 218);
    display: block;
}

.resume-hero-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.resume-hero-actions .btn {
    flex: 1;
    min-width: 130px;
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
}

.btn-admin {
    background: #f59e0b;
    border-color: #f59e0b;
    color: rgb(0, 0, 0);
}

.btn-admin:hover {
    background: #d97706;
    border-color: #d97706;
    color: rgb(0, 0, 0);
}

/* ========================================
   Filter Section - Compact
======================================== */
.resume-filter-section {
    background: rgb(255, 255, 255);
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.filter-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.filter-item label i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.filter-item .form-control,
.filter-item .form-select {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    height: 32px;
}

.filter-item .form-control:focus,
.filter-item .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.1);
}

.filter-item button {
    width: 100%;
    padding: 0.4rem;
    font-size: 0.75rem;
    margin-top: 1.3rem;
    height: 32px;
}

/* ========================================
   Resume List Section - Compact
======================================== */
.resume-list-section {
    padding: 1rem 0.8rem;
    min-height: 50vh;
}

.resume-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-list-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.resume-list-header h2 i {
    color: var(--primary-color);
    margin-right: 0.4rem;
    font-size: 0.95rem;
}

.result-count {
    font-size: 0.7rem;
    color: #64748b;
    background: var(--light-color);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.resume-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    /* FIX: Force equal height and vertical layout */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resume-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.resume-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.6rem;
    gap: 0.5rem;
}

.resume-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    flex: 1;
    line-height: 1.3;
    
    /* FIX: Truncate long titles with "..." */
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Change to 2 if you want 2 lines */
    -webkit-line-clamp: 1; /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.resume-status-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.resume-card-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.resume-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resume-card-meta i {
    color: var(--primary-color);
    font-size: 0.65rem;
}

.resume-card-preview {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resume-card-actions {
    display: flex;
    gap: 0.5rem;
}

.resume-card-actions .btn {
    flex: 1;
    font-size: 0.7rem;
    padding: 0.4rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--primary-color);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.loading-spinner p {
    font-size: 0.8rem;
    color: #64748b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 0.8rem;
}

.empty-state h3 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
}

.empty-state p {
    color: #64748b;
    font-size: 0.8rem;
}

/* ========================================
   Pagination - Compact
======================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.pagination-btn {
    padding: 0.35rem 0.6rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    min-width: 32px;
    text-align: center;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0 0.4rem;
}

/* ========================================
   Modals - Improved & Compact
======================================== */
.modal-content {
    border-radius: 10px;
    
    border: none;
    box-shadow: var(--shadow-lg);
}


.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.4) !important; /* Dark semi-transparent */
    backdrop-filter: blur(40px) !important;           /* The Blur Effect */
    -webkit-backdrop-filter: blur(100px) !important;   /* Safari Support */
}

.modal-header {
    background: linear-gradient(135deg, #130336 0%, #090270 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 0.8rem 1rem;
    border-bottom: none;
}

.modal-header .modal-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.modal-header .modal-title i {
    margin-right: 0.4rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    font-size: 0.8rem;
    padding: 0.4rem;
}

.modal-body {
    padding: 1rem;
    max-height: 150vh;
    
    overflow-y: auto;
}

.modal-footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

/* Admin Modal Specific Styling */
.modal-xl {
    max-width: 95%;
}

.modal-xl .modal-body {
    padding: 1.2rem;
}

/* ========================================
   Admin Panel Tabs - Improved
======================================== */
.admin-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
    background: rgb(129, 126, 126);
    border-radius: 8px 8px 0 0;
    padding: 0.3rem 0.5rem 0;
}

.admin-tabs .nav-link {
    color: #000000;
    border: none;
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    border-radius: 6px 6px 0 0;
    margin: 0 0.2rem;
}



.admin-tabs .nav-link i {
    margin-right: 0.3rem;
    font-size: 0.8rem;
    color: rgb(0, 0, 0);
}



/* ========================================
   Forms - Compact
======================================== */
.admin-form .form-group label,
.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.admin-form .form-control,
.admin-form .form-select,
.form-control,
.form-select {
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.1);
}

/* ========================================
   Resume Editor - Compact
======================================== */
.editor-toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.4rem;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 5px 5px 0 0;
    flex-wrap: wrap;
}

.editor-toolbar button {
    padding: 0.3rem 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    min-width: 28px;
    height: 28px;
}

.editor-toolbar button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.resume-editor {
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 0 0 5px 5px;
    background: white;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--dark-color);
}

.resume-editor:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.1);
}

.resume-editor[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    color: #94a3b8;
    font-style: italic;
}

.resume-editor ul,
.resume-editor ol {
    margin-left: 1.2rem;
    margin-bottom: 0.4rem;
}

.resume-editor p {
    margin-bottom: 0.4rem;
}

.resume-editor strong {
    font-weight: 600;
}

/* Resume View Container */
.resume-view-container {
    padding: 1rem;
   
    background: var(--light-color);
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--dark-color);
    max-height: 120vh;
    overflow-y: auto;
}

.resume-view-container ul,
.resume-view-container ol {
    margin-left: 1.2rem;
    margin-bottom: 0.8rem;
}

.resume-view-container p {
    margin-bottom: 0.8rem;
}

.resume-view-container h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.resume-view-container h3 {
    font-size: 0.95rem;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
    color: var(--dark-color);
}

.resume-view-container h4 {
    font-size: 0.85rem;
    margin-top: 0.6rem;
    margin-bottom: 0.3rem;
}

.resume-view-container strong {
    font-weight: 600;
    color: var(--dark-color);
}

/* ========================================
   Tables (Admin Panel) - Compact
======================================== */
.table-responsive {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-height: 50vh;
    overflow-y: auto;
}

.admin-table {
    font-size: 0.75rem;
    margin-bottom: 0;
}

.admin-table thead {
    background: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table thead th {
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
    padding: 0.6rem 0.5rem;
    white-space: nowrap;
    font-size: 0.7rem;
}

.admin-table tbody td {
    padding: 0.6rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:hover {
    background: red;
}

.admin-table .btn {
    font-size: 0.65rem;
    padding: 0.3rem 0.5rem;
}

.admin-table .btn i {
    font-size: 0.7rem;
}

/* Manage Header */
.manage-header {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.manage-header .input-group {
    flex: 1;
    min-width: 180px;
}

.manage-header .input-group-text {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
}

.manage-header .form-control {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
}

.manage-header .form-select {
    max-width: 140px;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
}

/* Admin Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* ========================================
   Buttons - Compact
======================================== */
.btn {
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
}

.btn i {
    font-size: 0.85em;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #5a1680;
    border-color: #5a1680;
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
}

.btn-info {
    background: var(--info-color);
    border-color: var(--info-color);
}

.btn-info:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    background: #64748b;
    border-color: #64748b;
}

.btn-secondary:hover {
    background: #475569;
    border-color: #475569;
}

.btn-sm {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

.btn-lg {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
}

/* ========================================
   Alerts - Compact
======================================== */
.alert {
    padding: 0.6rem 0.8rem;
    border-radius: 5px;
    font-size: 0.75rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.alert i {
    font-size: 1em;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* ========================================
   Toast Notification - Compact
======================================== */
.toast {
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    border: none;
    font-size: 0.8rem;
}

.toast-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0.8rem;
}

.toast-body {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
}

#toastIcon {
    font-size: 1rem;
}

#toastIcon.text-success {
    color: var(--success-color) !important;
}

#toastIcon.text-danger {
    color: var(--danger-color) !important;
}

#toastIcon.text-warning {
    color: var(--warning-color) !important;
}

/* ========================================
   Badges - Compact
======================================== */
.badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    font-weight: 600;
}

/* ========================================
   Utilities
======================================== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-muted {
    color: #64748b !important;
}

.d-none {
    display: none !important;
}

.w-100 {
    width: 100% !important;
}

.text-center {
    text-align: center !important;
}

/* ========================================
   Responsive Design - Tablet (768px+)
======================================== */
@media (min-width: 768px) {
    .resume-hero-section {
        padding: 1.8rem 1rem;
    }

    .resume-hero-title {
        font-size: 1.8rem;
    }

    .resume-hero-description {
        font-size: 0.85rem;
    }

    .resume-hero-actions .btn {
        flex: 0 1 auto;
    }

    .filter-row {
        grid-template-columns: 2fr 1.2fr 1.2fr auto;
        align-items: end;
    }

    .filter-item button {
        margin-top: 0;
    }

    .resume-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .modal-body {
        padding: 1.2rem;
    }

    .admin-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.7rem 1rem;
    }
}

/* ========================================
   Responsive Design - Desktop (1024px+)
======================================== */
@media (min-width: 1024px) {
    .resume-hero-section {
        padding: 2rem 1.5rem;
    }

    .resume-filter-section {
        padding: 1rem 1.5rem;
    }

    .resume-list-section {
        padding: 1.5rem;
    }

    .resume-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .resume-card {
        padding: 1rem;
    }
}

/* ========================================
   Responsive Design - Large Desktop (1400px+)
======================================== */
@media (min-width: 1400px) {
    .resume-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   Mobile Optimizations (max 576px)
======================================== */
@media (max-width: 576px) {
    .resume-hero-title {
        font-size: 1.2rem;
    }

    .stat-item {
        padding: 0.5rem 0.3rem;
    }

    .stat-item i {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .resume-hero-actions {
        flex-direction: column;
    }

    .resume-hero-actions .btn {
        width: 100%;
    }

    .filter-row {
        gap: 0.5rem;
    }

    .resume-list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .resume-card {
        padding: 0.8rem;
    }

    .resume-card-title {
        font-size: 0.85rem;
    }

    .pagination-container {
        gap: 0.3rem;
    }

    .pagination-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        min-width: 28px;
    }

    .editor-toolbar {
        gap: 0.2rem;
        padding: 0.3rem;
    }

    .editor-toolbar button {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
        min-width: 26px;
        height: 26px;
    }

    .resume-editor {
        min-height: 200px;
        font-size: 0.75rem;
        padding: 0.6rem;
    }

    .admin-table {
        font-size: 0.7rem;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 0.5rem 0.4rem;
    }

    .admin-tabs .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
        margin: 0 0.1rem;
    }

    .modal-body {
        padding: 0.8rem;
    }

    .modal-header {
        padding: 0.6rem 0.8rem;
    }

    .modal-header .modal-title {
        font-size: 0.85rem;
    }

    .manage-header {
        flex-direction: column;
    }

    .manage-header .form-select {
        max-width: 100%;
    }
}

/* ========================================
   Scrollbar Styling
======================================== */
.resume-editor::-webkit-scrollbar,
.resume-view-container::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.resume-editor::-webkit-scrollbar-track,
.resume-view-container::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 3px;
}

.resume-editor::-webkit-scrollbar-thumb,
.resume-view-container::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.resume-editor::-webkit-scrollbar-thumb:hover,
.resume-view-container::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-card {
    animation: fadeIn 0.3s ease;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* ========================================
   Focus Styles for Accessibility
======================================== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.pagination-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .resume-hero-section,
    .resume-filter-section,
    .resume-card-actions,
    .pagination-container,
    .modal-header,
    .modal-footer,
    .btn,
    .editor-toolbar {
        display: none !important;
    }

    .resume-view-container {
        max-height: none;
        overflow: visible;
    }

    .resume-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}



/* ... (Existing CSS) ... */

/* ========================================
   Custom Searchable Dropdown Styles
======================================== */
.title-filter-dropdown .dropdown-toggle {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    height: 32px;
    color: var(--dark-color);
    text-align: left;
}

.title-filter-dropdown .dropdown-toggle:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.1);
}

/* Hide default Bootstrap arrow */
.title-filter-dropdown .dropdown-toggle::after {
    display: none;
}

.title-filter-dropdown .dropdown-menu {
    font-size: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-top: 5px;
}

.title-filter-list {
    max-height: 250px;
    overflow-y: auto;
}

.title-filter-list .dropdown-item {
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.title-filter-list .dropdown-item:last-child {
    border-bottom: none;
}

.title-filter-list .dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.title-filter-list .dropdown-item.active, 
.title-filter-list .dropdown-item:active {
    background-color: var(--primary-color);
    color: white;
}

/* Scrollbar for the list */
.title-filter-list::-webkit-scrollbar {
    width: 5px;
}

.title-filter-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}


/* ========================================
   End of Compact Web App Styles
======================================== */





