/* Dashboard Styles */
.cid-user-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
    font-family: 'VazirMatn', 'Vazirmatn', 'IRANSans', 'Tahoma', Arial, sans-serif !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    position: relative;
    box-sizing: border-box;
    left: 0 !important;
    right: 0 !important;
    max-width: none !important;
}

/* Dashboard Wrapper - Ensures full width */
.cid-dashboard-wrapper {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    position: relative;
    overflow-x: hidden;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
}

/* Override any parent containers */
.cid-dashboard-wrapper .cid-user-dashboard {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}

/* Ensure proper spacing inside container */
.cid-dashboard-wrapper .cid-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Override WordPress theme container constraints */
.cid-user-dashboard * {
    box-sizing: border-box;
}

/* Ensure full width by overriding any theme containers */
body .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
    position: relative;
    left: 0;
    right: 0;
}

/* Override theme content area */
.cid-user-dashboard .cid-container {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* Override any theme specific containers */
.site-content .cid-user-dashboard,
.content-area .cid-user-dashboard,
.main-content .cid-user-dashboard,
.page-content .cid-user-dashboard,
.entry-content .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override Twenty Twenty-Three, Twenty Twenty-Four, and other block themes */
.wp-site-blocks .cid-user-dashboard,
.wp-block-group .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override Genesis Framework */
.site-inner .cid-user-dashboard,
.content-sidebar-wrap .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override Astra theme */
.ast-container .cid-user-dashboard,
.site-content .ast-container .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override GeneratePress theme */
.inside-article .cid-user-dashboard,
.content-area .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Additional overrides for common theme patterns */
.container .cid-user-dashboard,
.wrap .cid-user-dashboard,
.wrapper .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* More comprehensive theme overrides */
/* Override Elementor themes */
.elementor-page .cid-user-dashboard,
.elementor-default .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override Divi theme */
.et_pb_section .cid-user-dashboard,
.et-db .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override Avada theme */
.fusion-body .cid-user-dashboard,
.fusion-builder-column .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override OceanWP theme */
.oceanwp-theme .cid-user-dashboard,
.site-content #content .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override Kadence theme */
.kadence-theme .cid-user-dashboard,
.content-wrap .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override Neve theme */
.neve-main .cid-user-dashboard,
.nv-content-wrap .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override Customizer theme */
.customizer-theme .cid-user-dashboard,
.hfeed .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Override any container class patterns */
[class*="container"] .cid-user-dashboard,
[class*="wrapper"] .cid-user-dashboard,
[class*="content"] .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Force override any width constraints from parent elements */
.cid-dashboard-wrapper,
.cid-dashboard-wrapper * {
    max-width: none !important;
}

/* Ensure no margin/padding interference */
body:has(.cid-dashboard-wrapper) {
    margin: 0 !important;
    padding: 0 !important;
}

/* Additional specific overrides for problematic themes */
.site .cid-user-dashboard,
.site-main .cid-user-dashboard,
.main .cid-user-dashboard,
#main .cid-user-dashboard,
#content .cid-user-dashboard,
.content .cid-user-dashboard {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Force full width even with inline styles */
.cid-user-dashboard[style] {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

.cid-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Dashboard Header */
.cid-dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    margin-bottom: 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cid-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    min-width: 0;
}

.cid-page-title {
    font-size: 1.5rem !important;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cid-page-title .cid-icon {
    color: #667eea;
}

.cid-subtitle {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Dashboard Summary Cards */
.cid-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cid-summary-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cid-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.cid-summary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cid-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.cid-card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

.cid-card-icon svg {
    width: 28px;
    height: 28px;
    z-index: 2;
    position: relative;
}

.cid-documents-total .cid-card-icon {
    background: linear-gradient(135deg, #667eea20, #667eea10);
    color: #667eea;
}

.cid-documents-approved .cid-card-icon {
    background: linear-gradient(135deg, #48bb7820, #48bb7810);
    color: #48bb78;
}

.cid-documents-pending .cid-card-icon {
    background: linear-gradient(135deg, #ed8b3620, #ed8b3610);
    color: #ed8b36;
}

.cid-documents-rejected .cid-card-icon {
    background: linear-gradient(135deg, #f5656520, #f5656510);
    color: #f56565;
}

.cid-card-content {
    flex: 1;
}

.cid-card-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.cid-card-label {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Dashboard Content */
.cid-dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cid-dashboard-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cid-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cid-sidebar-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cid-sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.cid-sidebar-title .cid-icon {
    color: #667eea;
    width: 20px;
    height: 20px;
}

/* Quick Actions Styling */
.cid-quick-actions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cid-quick-actions h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.cid-quick-actions h3::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23667eea' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.cid-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cid-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.925rem;
    border: 1px solid transparent;
}

.cid-action-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(-4px);
}

.cid-action-item:focus,
.cid-upload-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.cid-action-item .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #667eea;
    flex-shrink: 0;
}

.cid-action-item:hover .dashicons {
    color: #5a6fd8;
}

/* Required Documents Styling */
.cid-required-docs {
    margin-top: 0.5rem;
}

.cid-empty-message {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    text-align: center;
    border: 1px dashed rgba(102, 126, 234, 0.2);
}

.cid-docs-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cid-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.1);
    transition: all 0.3s ease;
}

.cid-checklist-item.uploaded {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(72, 187, 120, 0.05));
    border-color: rgba(72, 187, 120, 0.2);
}

.cid-checklist-item.missing {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(237, 139, 54, 0.2);
}

.cid-doc-status {
    flex-shrink: 0;
}

.cid-status-icon {
    width: 20px;
    height: 20px;
}

.cid-checklist-item.uploaded .cid-status-icon {
    color: #48bb78;
}

.cid-checklist-item.missing .cid-status-icon {
    color: #ed8936;
}

.cid-doc-info {
    flex: 1;
    min-width: 0;
}

.cid-doc-name {
    font-weight: 600;
    color: #2d3748;
    display: block;
    font-size: 0.9rem;
}

.cid-doc-description {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
    display: block;
}

.cid-upload-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cid-upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cid-upload-btn svg {
    width: 16px;
    height: 16px;
}

/* Section Styling for Dashboard Main Content */
.cid-section {
    margin-bottom: 2rem;
}

.cid-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cid-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cid-section-title .cid-icon {
    color: #667eea;
    width: 24px;
    height: 24px;
}

.cid-section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Search and Filter Components */
.cid-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.cid-search-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    padding-left: 3rem;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s ease;
}

.cid-search-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cid-search-btn {
    position: absolute;
    left: 0.75rem;
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cid-search-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.cid-search-btn svg {
    width: 18px;
    height: 18px;
}

.cid-filter-container {
    display: flex;
    align-items: center;
}

.cid-filter-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-width: 150px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23667eea' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px;
    padding-left: 2.5rem;
}

.cid-filter-select:focus {
    outline: none;
    border-color: #667eea;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* RTL Support for Search and Filter Components */
[dir="rtl"] .cid-search-input {
    padding-right: 3rem;
    padding-left: 1rem;
}

[dir="rtl"] .cid-search-btn {
    right: 0.75rem;
    left: auto;
}

[dir="rtl"] .cid-filter-select {
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    padding-left: 1rem;
}

/* Documents Grid */
.cid-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Help Resources Styling */
.cid-help-resources {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cid-help-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cid-help-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.cid-help-item a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
    transition: color 0.3s ease;
}

.cid-help-item:hover a {
    color: #667eea;
}

.cid-help-icon {
    width: 18px;
    height: 18px;
    color: #667eea;
    flex-shrink: 0;
}

.cid-view-all-link {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.cid-view-all-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.cid-view-all-link a:hover {
    color: #5a6fd8;
}

/* Responsive header fixes */
@media (max-width: 768px) {
    .cid-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .cid-header-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cid-header-actions .cid-btn {
        flex: 1;
        min-width: 120px;
        max-width: 180px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cid-header-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cid-header-actions .cid-btn {
        width: 100%;
        max-width: none;
    }
}

/* Responsive sidebar adjustments */
@media (max-width: 768px) {
    .cid-quick-actions,
    .cid-sidebar-section {
        padding: 1.25rem;
    }
    
    .cid-action-item {
        padding: 1rem 0.875rem;
    }
    
    .cid-checklist-item {
        padding: 1rem 0.875rem;
    }
}

/* Responsive Dashboard Layout */
@media (max-width: 1024px) {
    .cid-container {
        padding: 0 1.5rem;
    }
    
    .cid-dashboard-summary {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    .cid-dashboard-content {
        gap: 1.5rem;
    }
    
    .cid-dashboard-main,
    .cid-sidebar-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cid-user-dashboard {
        padding: 15px 0;
    }
    
    .cid-container {
        padding: 0 1rem;
    }
    
    /* Stack dashboard content vertically on mobile */
    .cid-dashboard-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Adjust card sizing for mobile */
    .cid-dashboard-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cid-summary-card {
        padding: 1.5rem;
    }
    
    .cid-card-value {
        font-size: 2rem;
    }
    
    .cid-dashboard-header {
        padding: 1.25rem 1.5rem;
        margin-bottom: 0;
    }
    
    .cid-dashboard-main {
        padding: 1.5rem;
    }
    
    .cid-sidebar-section {
        padding: 1.25rem;
    }
    
    .cid-page-title {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .cid-user-dashboard {
        padding: 10px 0;
    }
    
    .cid-container {
        padding: 0 0.75rem;
    }
    
    .cid-dashboard-header {
        padding: 1rem 1.25rem;
        margin-bottom: 0;
    }
    
    .cid-dashboard-summary {
        margin-bottom: 1.25rem;
    }
    
    .cid-summary-card {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cid-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .cid-card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .cid-card-value {
        font-size: 1.75rem;
    }
    
    .cid-dashboard-main,
    .cid-sidebar-section {
        padding: 1.25rem;
    }
    
    .cid-page-title {
        font-size: 1.125rem !important;
    }
    
    .cid-subtitle {
        font-size: 0.875rem;
    }
}

@media (max-width: 360px) {
    .cid-container {
        padding: 0 0.5rem;
    }
    
    .cid-dashboard-header {
        padding: 0.875rem 1rem;
    }
    
    .cid-summary-card {
        padding: 1rem;
    }
    
    .cid-dashboard-main,
    .cid-sidebar-section {
        padding: 1rem;
    }
    
    .cid-card-value {
        font-size: 1.5rem;
    }
}

/* Empty State Styling */
.cid-no-documents {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.cid-no-documents::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
}

.cid-no-documents-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.cid-no-documents-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0.3;
}

.cid-no-documents-icon svg {
    width: 48px;
    height: 48px;
    color: #667eea;
    z-index: 2;
    position: relative;
}

.cid-no-documents p {
    font-size: 1.2rem;
    color: #64748b;
    margin: 0 0 2rem 0;
    font-weight: 500;
    line-height: 1.6;
}

.cid-no-documents .cid-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    min-width: 180px;
    justify-content: center;
}

.cid-no-documents .cid-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.cid-no-documents .cid-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8, #6a42a0);
}

.cid-no-documents .cid-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* Error State Styling */
.cid-error-state {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.2);
    position: relative;
}

.cid-error-state::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #f56565, #e53e3e);
    border-radius: 20px 20px 0 0;
}

.cid-error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1), rgba(229, 62, 62, 0.1));
    border: 2px solid rgba(245, 101, 101, 0.2);
}

.cid-error-icon svg {
    width: 32px;
    height: 32px;
    color: #f56565;
}

.cid-error-state p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 0 2rem 0;
    font-weight: 500;
}

.cid-error-state .cid-btn-secondary {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: 2px solid rgba(245, 101, 101, 0.2);
}

.cid-error-state .cid-btn-secondary:hover {
    background: rgba(245, 101, 101, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 101, 101, 0.2);
}

/* Loading State Styling */
.cid-loading-state {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cid-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cid-spinner-icon {
    width: 40px;
    height: 40px;
    color: #667eea;
    animation: spin 1s linear infinite;
}

.cid-loading-text {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Button Styles */
.cid-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.cid-btn-sm .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Profile Card Styling (if needed) */
.cid-profile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.cid-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cid-profile-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.cid-profile-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

.cid-profile-actions {
    text-align: center;
}

/* Gradient Background Class */
.cid-gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Fade In Animation Classes */
.cid-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Focus Styles for Accessibility */
.cid-search-input:focus,
.cid-filter-select:focus,
.cid-action-item:focus,
.cid-help-item a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Better spacing for sidebar sections */
.cid-sidebar-section + .cid-sidebar-section {
    margin-top: 1.5rem;
}

/* Enhanced empty message styling */
.cid-empty-message {
    background: rgba(102, 126, 234, 0.05);
    border: 1px dashed rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* Enhanced scrollbar for better UX */
.cid-dashboard-main::-webkit-scrollbar,
.cid-sidebar-section::-webkit-scrollbar {
    width: 6px;
}

.cid-dashboard-main::-webkit-scrollbar-track,
.cid-sidebar-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.cid-dashboard-main::-webkit-scrollbar-thumb,
.cid-sidebar-section::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.cid-dashboard-main::-webkit-scrollbar-thumb:hover,
.cid-sidebar-section::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Print styles for dashboard */
@media print {
    .cid-user-dashboard {
        background: white !important;
        min-height: auto !important;
    }
    
    .cid-dashboard-header,
    .cid-summary-card,
    .cid-dashboard-main,
    .cid-sidebar-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .cid-header-actions,
    .cid-quick-actions {
        display: none !important;
    }
}

/* Dark mode support (for future enhancement) */
@media (prefers-color-scheme: dark) {
    .cid-user-dashboard {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .cid-dashboard-header,
    .cid-summary-card,
    .cid-dashboard-main,
    .cid-sidebar-section {
        background: rgba(45, 55, 72, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .cid-page-title,
    .cid-sidebar-title,
    .cid-card-value,
    .cid-doc-name {
        color: #f7fafc;
    }
    
    .cid-subtitle,
    .cid-card-label,
    .cid-doc-description {
        color: #a0aec0;
    }
}

/* Enhanced Animations and Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Enhanced glassmorphic effects on hover */
.cid-summary-card:hover,
.cid-dashboard-main:hover,
.cid-sidebar-section:hover {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.98);
}

/* Add entry animations */
.cid-dashboard-header {
    animation: fadeIn 0.6s ease-out;
}

.cid-summary-card {
    animation: slideInLeft 0.6s ease-out;
}

.cid-summary-card:nth-child(2) {
    animation-delay: 0.1s;
}

.cid-summary-card:nth-child(3) {
    animation-delay: 0.2s;
}

.cid-summary-card:nth-child(4) {
    animation-delay: 0.3s;
}

.cid-dashboard-main {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.cid-sidebar-section {
    animation: slideInRight 0.6s ease-out;
}

.cid-sidebar-section:nth-child(2) {
    animation-delay: 0.1s;
}

.cid-sidebar-section:nth-child(3) {
    animation-delay: 0.2s;
}

/* Enhanced loading states */
.cid-loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    /* animation: shimmer 2s infinite; */ /* Disabled to prevent page spinning issues */
}

/* Smooth transitions for all interactive elements */
.cid-dashboard-header,
.cid-summary-card,
.cid-dashboard-main,
.cid-sidebar-section,
.cid-action-item,
.cid-checklist-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
