/**
 * Global Custom Styles for MPC UPC Application
 * Contains updated color variables and button styles for all roles
 */

:root {
    /* Updated Primary Colors */
    --primary-color: #1CBCCF;
    --primary-light: #20D4E8;
    --primary-dark: #159AAB;
    --secondary-color: #FF8A00;
    --accent-color: #FFB347;

    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-gray: #f3f4f6;

    /* Border Colors */
    --border-light: #e5e7eb;
    --border-gray: #d1d5db;

    /* Shadow Definitions */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, #1CBCCF 0%, #20D4E8 100%);
    --gradient-secondary: linear-gradient(135deg, #FF8A00 0%, #FFB347 100%);
    --gradient-success: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --gradient-danger: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --gradient-warning: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    --gradient-info: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    --gradient-dark: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

/* Override Bootstrap Primary Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Custom Enhanced Button Styles */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-secondary-custom {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary-custom:hover,
.btn-secondary-custom:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-success-custom {
    background: var(--gradient-success);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-success-custom:hover,
.btn-success-custom:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-danger-custom {
    background: var(--gradient-danger);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-danger-custom:hover,
.btn-danger-custom:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-warning-custom {
    background: var(--gradient-warning);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-warning-custom:hover,
.btn-warning-custom:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-info-custom {
    background: var(--gradient-info);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-info-custom:hover,
.btn-info-custom:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-dark-custom {
    background: var(--gradient-dark);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-dark-custom:hover,
.btn-dark-custom:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

/* Custom Outline Button with Primary Color */
.btn-outline-primary-custom {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-primary-custom:hover,
.btn-outline-primary-custom:focus {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-sm.btn-outline-primary-custom {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Small Button Variations */
.btn-sm.btn-primary-custom,
.btn-sm.btn-secondary-custom,
.btn-sm.btn-success-custom,
.btn-sm.btn-danger-custom,
.btn-sm.btn-warning-custom,
.btn-sm.btn-info-custom,
.btn-sm.btn-dark-custom {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* Large Button Variations */
.btn-lg.btn-primary-custom,
.btn-lg.btn-secondary-custom,
.btn-lg.btn-success-custom,
.btn-lg.btn-danger-custom,
.btn-lg.btn-warning-custom,
.btn-lg.btn-info-custom,
.btn-lg.btn-dark-custom {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

/* Enhanced Bootstrap Button Overrides */
.btn-secondary {
    background: var(--gradient-secondary);
    border-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e67e00;
    border-color: #e67e00;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--gradient-success);
    border-color: #16a34a;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--gradient-danger);
    border-color: #dc2626;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: var(--gradient-warning);
    border-color: #d97706;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-info {
    background: var(--gradient-info);
    border-color: #0891b2;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Enhanced Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(28, 188, 207, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(28, 188, 207, 0.25);
}

/* Enhanced Cards */
.card {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Enhanced Alerts */
.alert-primary {
    background: rgba(28, 188, 207, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.alert-secondary {
    background: rgba(255, 138, 0, 0.1);
    border-color: var(--secondary-color);
    color: #b45309;
}

/* Enhanced Badges */
.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-secondary {
    background: var(--gradient-secondary) !important;
}

/* Enhanced Progress Bars */
.progress-bar {
    background: var(--gradient-primary);
}

.progress-bar.bg-secondary {
    background: var(--gradient-secondary);
}

/* Enhanced Navigation */
.nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(28, 188, 207, 0.1);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

/* Enhanced Tables */
.table thead th {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background: rgba(28, 188, 207, 0.05);
}

/* Enhanced Modal */
.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
}

/* Enhanced Pagination */
.page-link {
    color: var(--primary-color);
    border-color: var(--border-light);
    transition: all 0.3s ease;
}

.page-link:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

/* ====================================================== */
/* MODERN CONSULTATION FILTER CARD                       */
/* ====================================================== */

/* Filter Card Wrapper */
.filter-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
    padding: 16px;
    margin-bottom: 24px;
}

/* Filter Labels */
.filter-card label,
.filter-card .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

/* Search Input Field */
.filter-card .form-control {
    height: 44px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #0F172A;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-card .form-control:hover {
    border-color: #D1D5DB;
}

.filter-card .form-control:focus {
    border-color: #1CBCCF;
    box-shadow: 0 0 0 3px rgba(28, 188, 207, 0.25);
    outline: none;
}

.filter-card .form-control::placeholder {
    color: #64748B;
    font-weight: 400;
}

/* ====================================================== */
/* SELECT2 UPC THEME - CONSULTATION FILTERS              */
/* ====================================================== */

/* Select2 Container */
.select2-container--upc {
    width: 100% !important;
}

.select2-container--upc .select2-selection--single {
    height: 44px !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    position: relative !important;
}

.select2-container--upc .select2-selection--single:hover {
    border-color: #D1D5DB !important;
}

.select2-container--upc.select2-container--focus .select2-selection--single {
    border-color: #1CBCCF !important;
    box-shadow: 0 0 0 3px rgba(28, 188, 207, 0.25) !important;
    outline: none !important;
}

/* Select2 Arrow (Chevron) */
.select2-container--upc .select2-selection__arrow {
    height: 40px !important;
    right: 12px !important;
    top: 2px !important;
    width: 20px !important;
}

.select2-container--upc .select2-selection__arrow b {
    border-color: #6B7280 transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    margin-left: -5px !important;
    margin-top: -3px !important;
    transition: all 0.2s ease !important;
}

.select2-container--upc.select2-container--open .select2-selection__arrow b {
    transform: rotate(180deg) !important;
    border-color: #1CBCCF transparent transparent transparent !important;
}

/* Select2 Selected Text */
.select2-container--upc .select2-selection__rendered {
    color: #0F172A !important;
    line-height: 40px !important;
    padding-left: 16px !important;
    padding-right: 40px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-overflow: ellipsis !important;
}

.select2-container--upc .select2-selection__placeholder {
    color: #64748B !important;
    font-weight: 400 !important;
}

/* Select2 Dropdown Panel */
.select2-container--upc .select2-dropdown {
    border-radius: 12px !important;
    border: 1px solid #EEF2F7 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
    background: #ffffff !important;
    z-index: 2000 !important;
    margin-top: 4px !important;
    overflow: hidden !important;
}

/* Select2 Results Container */
.select2-container--upc .select2-results {
    padding: 6px !important;
}

.select2-container--upc .select2-results__options {
    max-height: 280px !important;
    overflow-y: auto !important;
}

/* Select2 Individual Items */
.select2-container--upc .select2-results__option {
    height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    border-left: 4px solid transparent !important;
}

/* Item Hover State */
.select2-container--upc .select2-results__option--highlighted {
    background: rgba(28, 188, 207, 0.06) !important;
    color: #0F172A !important;
    border-left-color: rgba(28, 188, 207, 0.3) !important;
}

/* Selected Item */
.select2-container--upc .select2-results__option[aria-selected="true"] {
    background: rgba(28, 188, 207, 0.10) !important;
    color: #0F172A !important;
    font-weight: 600 !important;
    border-left: 4px solid #1CBCCF !important;
    padding-left: 8px !important;
}

/* Selected + Hovered Item */
.select2-container--upc .select2-results__option[aria-selected="true"].select2-results__option--highlighted {
    background: rgba(28, 188, 207, 0.14) !important;
    border-left-color: #1CBCCF !important;
}

/* Custom Scrollbar */
.select2-container--upc .select2-results__options::-webkit-scrollbar {
    width: 6px !important;
}

.select2-container--upc .select2-results__options::-webkit-scrollbar-track {
    background: #F1F5F9 !important;
    border-radius: 3px !important;
}

.select2-container--upc .select2-results__options::-webkit-scrollbar-thumb {
    background: #CBD5E1 !important;
    border-radius: 3px !important;
}

.select2-container--upc .select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #94A3B8 !important;
}

/* Search Field in Dropdown */
.select2-container--upc .select2-search--dropdown {
    padding: 6px 6px 4px 6px !important;
}

.select2-container--upc .select2-search__field {
    height: 36px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #E5E7EB !important;
    font-size: 14px !important;
}

.select2-container--upc .select2-search__field:focus {
    border-color: #1CBCCF !important;
    box-shadow: 0 0 0 2px rgba(28, 188, 207, 0.1) !important;
    outline: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-card {
        padding: 12px;
    }

    .select2-container--upc {
        width: 100% !important;
    }

    .select2-container--upc .select2-dropdown {
        margin-top: 2px !important;
    }

    .select2-container--upc .select2-results__options {
        max-height: 240px !important;
    }

    /* 2 columns on tablet */
    .filter-card .row .col-md-2,
    .filter-card .row .col-md-3 {
        -ms-flex: 0 0 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    /* Single column on mobile */
    .filter-card .row .col-md-2,
    .filter-card .row .col-md-3 {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 12px;
    }

    .filter-card .form-control,
    .select2-container--upc .select2-selection--single {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* RTL Support */
[dir="rtl"] .select2-container--upc .select2-selection__rendered {
    padding-left: 40px !important;
    padding-right: 16px !important;
    text-align: right !important;
}

[dir="rtl"] .select2-container--upc .select2-selection__arrow {
    left: 12px !important;
    right: auto !important;
}

[dir="rtl"] .select2-container--upc .select2-results__option {
    border-left: none !important;
    border-right: 4px solid transparent !important;
}

[dir="rtl"] .select2-container--upc .select2-results__option[aria-selected="true"] {
    border-left: none !important;
    border-right: 4px solid #1CBCCF !important;
    padding-right: 8px !important;
    padding-left: 12px !important;
}

/* Enhanced Dropdowns */
.dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.dropdown-item:hover {
    background: rgba(28, 188, 207, 0.1);
    color: var(--primary-color);
}

/* Enhanced Breadcrumbs */
.breadcrumb-item.active {
    color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-secondary);
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-primary-custom {
    background: var(--gradient-primary) !important;
    color: white;
}

.bg-secondary-custom {
    background: var(--gradient-secondary) !important;
    color: white;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.border-secondary-custom {
    border-color: var(--secondary-color) !important;
}

/* Common Page Styles */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    opacity: 0.1;
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(28, 188, 207, 0.3);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(28, 188, 207, 0.5);
    transform: translateY(-2px);
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-bg {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.filter-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.introduction-section {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    opacity: 0.1;
    animation: slide 20s linear infinite;
}

.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    display: inline-block;
}

.main-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

/* Timeline Styles */
.timeline {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--border-light);
}

.timeline-dot {
    position: absolute;
    left: -1.55rem;
    top: 0.6em;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--border-light);
    z-index: 1;
}

.timeline li {
    min-height: 3.5em;
}

.timeline-item:hover {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
    padding: 0.5rem;
}

/* Form Select Enhancements */
select.form-select {
    max-width: 100%;
    width: 100%;
}

select.form-select option {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Activity Item Styles */
.activity-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Profile Specific Styles */
.info-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.info-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.info-value {
    color: var(--text-primary);
    margin-bottom: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-edit {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 138, 0, 0.3);
    color: white;
}

.role-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
}

/* Page Navigation Styles for consultation pages */
#page-nav {
    max-height: 80vh;
    overflow-y: auto;
}

#page-nav .nav-link {
    border: 1px solid transparent;
    margin-bottom: .5rem;
    text-align: center;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    border-radius: .25rem;
    color: black;
    padding: .5rem;
}

#page-nav .nav-link.active {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    font-weight: 500;
}

section[id] {
    scroll-margin-top: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .search-container {
        padding: 1.5rem;
    }

    .hero-gradient {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    select.form-select {
        font-size: 14px;
    }

    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-success-custom,
    .btn-danger-custom,
    .btn-warning-custom,
    .btn-info-custom,
    .btn-dark-custom {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-lg.btn-primary-custom,
    .btn-lg.btn-secondary-custom,
    .btn-lg.btn-success-custom,
    .btn-lg.btn-danger-custom,
    .btn-lg.btn-warning-custom,
    .btn-lg.btn-info-custom,
    .btn-lg.btn-dark-custom {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

      .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1s ease-out forwards;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .page-header {
        background: linear-gradient(135deg, #1CBCCF 0%, #159AAB 100%);
        color: white;
        padding: 2rem 0;
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;
        border-radius: 20px;
    }

    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
            linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
            linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
        background-size: 60px 60px;
        background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
        opacity: 0.1;
        animation: slide 20s linear infinite;
    }

    @keyframes slide {
        0% { transform: translateX(0); }
        100% { transform: translateX(60px); }
    }

    .main-content {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .navigation-sidebar {
        position: sticky;
        top: 2rem;
        height: fit-content;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }

    .nav-card {
        background: white;
        border-radius: 20px;
        box-shadow: var(--shadow-md);
        padding: 1.5rem;
        border: 1px solid var(--border-light);
    }

    .nav-title {
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--primary-color);
    }

    .nav-link-custom {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
        color: var(--text-secondary);
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        font-weight: 500;
    }

    .nav-link-custom:hover {
        background: rgba(28, 188, 207, 0.1);
        color: var(--primary-color);
        transform: translateX(5px);
        border-color: var(--primary-color);
    }

    .nav-link-custom.active {
        background: var(--gradient-primary);
        color: white;
        box-shadow: var(--shadow-md);
        transform: translateX(5px);
        border-left: 4px solid var(--secondary-color);
    }

    .content-sections {
        background: white;
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
        overflow: hidden;
    }

    .section-content {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-light);
        position: relative;
        scroll-margin-top: 100px;
    }

    .section-content:last-child {
        border-bottom: none;
    }

    .section-title {
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--border-light);
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .section-title i {
        font-size: 1.3rem;
        color: var(--secondary-color);
    }

    .info-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 0.5rem;
    }

    .info-table th {
        font-weight: 600;
        color: var(--text-primary);
        padding: 0.75rem 1rem;
        background: var(--bg-light);
        border-radius: 8px 0 0 8px;
        width: 40%;
    }

    .info-table td {
        padding: 0.75rem 1rem;
        background: rgba(28, 188, 207, 0.05);
        border-radius: 0 8px 8px 0;
        color: var(--text-secondary);
    }

    .comment-section {
        background: var(--bg-light);
        border-radius: 15px;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .comment-form {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 2rem;
        box-shadow: var(--shadow-sm);
    }

    .comment-input {
        border: 2px solid var(--border-light);
        border-radius: 12px;
        padding: 1rem;
        transition: all 0.3s ease;
        resize: vertical;
        min-height: 120px;
    }

    .comment-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(28, 188, 207, 0.1);
        outline: none;
    }

    .comment-item {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 1rem;
        box-shadow: var(--shadow-sm);
        border-left: 4px solid var(--primary-color);
    }

    .document-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: var(--bg-light);
        border-radius: 12px;
        margin-bottom: 0.75rem;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }

    .document-item:hover {
        background: rgba(28, 188, 207, 0.1);
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .stakeholder-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .stakeholder-item {
        background: var(--bg-light);
        padding: 1rem;
        border-radius: 12px;
        border-left: 4px solid var(--primary-color);
        transition: all 0.3s ease;
    }

    .stakeholder-item:hover {
        background: rgba(28, 188, 207, 0.1);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

    .contact-card {
        background: var(--bg-light);
        padding: 1.5rem;
        border-radius: 15px;
        border: 1px solid var(--border-light);
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    @media (max-width: 992px) {
        .main-content {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .navigation-sidebar {
            position: static;
            order: -1;
        }

        .nav-card {
            padding: 1rem;
        }

        .nav-link-custom {
            padding: 0.5rem 0.75rem;
        }
    }

    @media (max-width: 768px) {
        .page-header {
            padding: 1rem 0;
        }

        .section-content {
            padding: 1rem 1.5rem;
        }

        .info-table th,
        .info-table td {
            display: block;
            width: 100%;
            padding: 0.5rem;
        }

        .info-table th {
            border-radius: 8px 8px 0 0;
            margin-top: 1rem;
        }

        .info-table td {
            border-radius: 0 0 8px 8px;
            margin-bottom: 0.5rem;
        }

        .stakeholder-list {
            grid-template-columns: 1fr;
        }
    }
}

/* === Consultation View-specific Styles === */

/* Main Content Grid for consultation pages */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Navigation Sidebar */
.navigation-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.nav-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.nav-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 500;
}

.nav-link-custom:hover {
    background: rgba(28, 188, 207, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.nav-link-custom.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    border-left: 4px solid var(--secondary-color);
}

/* Content Sections */
.content-sections {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.section-content {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    scroll-margin-top: 100px;
}

.section-content:last-child {
    border-bottom: none;
}

/* Consultation Header */
.consultation-header {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
}

.consultation-title-section {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    position: relative;
}

.consultation-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
}

.status-indicators {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.status-indicator {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Information Table */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.info-table th {
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px 0 0 8px;
    width: 40%;
}

.info-table td {
    padding: 0.75rem 1rem;
    background: rgba(28, 188, 207, 0.05);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}

/* Comments and Forms */
.comment-section {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.comment-form {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.comment-input {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.comment-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(28, 188, 207, 0.1);
    outline: none;
}

.comment-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.comment-action {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.comment-action:hover {
    color: var(--primary-color);
}

/* Documents and Downloads */
.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.document-item:hover {
    background: rgba(28, 188, 207, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Stakeholders */
.stakeholder-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stakeholder-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.stakeholder-item:hover {
    background: rgba(28, 188, 207, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Contact Information */
.contact-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-light);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Form Sections for Edit Pages */
.form-section {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.form-section-header {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.form-section-content {
    padding: 1.5rem;
}

.form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.form-table th {
    background: var(--bg-light);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    width: 25%;
    vertical-align: middle;
}

.form-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.form-table tr:last-child th,
.form-table tr:last-child td {
    border-bottom: none;
}

/* Survey Table */
.survey-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.survey-table .table th {
    background: var(--bg-light);
    color: var(--text-primary);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.survey-table .table td {
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    vertical-align: middle;
}

/* Action Buttons and Controls */
.action-buttons {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
    display: flex;
    justify-content: end;
    gap: 1rem;
    border: 1px solid var(--border-light);
}

.section-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.required-asterisk {
    color: #dc2626;
    font-weight: bold;
}

.file-input-wrapper {
    position: relative;
}

.file-current {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Survey Section */
.survey-section {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

/* Enhanced consultation page responsive design */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .navigation-sidebar {
        position: static;
        order: -1;
    }

    .nav-card {
        padding: 1rem;
    }

    .nav-link-custom {
        padding: 0.5rem 0.75rem;
    }

    .consultation-title-section {
        padding: 1.5rem;
    }

    .status-indicators {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .section-content {
        padding: 1rem 1.5rem;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 0.5rem;
    }

    .info-table th {
        border-radius: 8px 8px 0 0;
        margin-top: 1rem;
    }

    .info-table td {
        border-radius: 0 0 8px 8px;
        margin-bottom: 0.5rem;
    }

    .stakeholder-list {
        grid-template-columns: 1fr;
    }

    .form-section-content {
        padding: 1rem;
    }

    .form-table th,
    .form-table td {
        padding: 0.75rem;
        display: block;
        width: 100%;
    }

    .form-table th {
        background: var(--primary-color);
        color: white;
        border-radius: 8px 8px 0 0;
        margin-top: 1rem;
    }

    .form-table td {
        border-radius: 0 0 8px 8px;
        margin-bottom: 1rem;
    }

    .section-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .comment-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .status-indicators {
        gap: 0.5rem;
    }

    .consultation-title-section {
        padding: 1rem;
    }
}

/* =================================================================
   1280x800 Resolution Specific Optimizations
   ================================================================= */

/* Exact 1280x800 viewport targeting */
@media screen and (width: 1280px) and (height: 800px) {
    /* Optimize for exact resolution */
    :root {
        --optimal-font-size: 14px;
        --optimal-line-height: 1.4;
        --optimal-spacing: 12px;
    }

    html {
        font-size: var(--optimal-font-size) !important;
        line-height: var(--optimal-line-height) !important;
    }

    /* Main container optimization */
    .container,
    .container-fluid {
        max-width: 1240px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Header spacing */
    .page-title {
        font-size: 1.5rem !important;
        margin-bottom: var(--optimal-spacing) !important;
    }

    /* Card optimization */
    .card-title {
        font-size: 1.1rem !important;
    }

    .card-text {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    /* Button sizing */
    .btn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }

    .btn-sm {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* =================================================================
   FULL WIDTH LAYOUT GLOBAL OVERRIDES
   ================================================================= */

/* Apply comfortable width layout with extra space on right */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: calc(100vw - 100px) !important;
    width: calc(100vw - 100px) !important;
    margin-left: 40px !important;
    margin-right: 60px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Page wrappers full width */
.page-wrapper,
.body-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Content areas with comfortable padding */
.content-area,
.main-content {
    padding-left: 25px !important;
    padding-right: 25px !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Row and column adjustments for minimal gaps */
.row {
    margin-left: -7.5px !important;
    margin-right: -7.5px !important;
    width: calc(100% + 15px) !important;
}

.col,
[class*="col-"] {
    padding-left: 7.5px !important;
    padding-right: 7.5px !important;
}

/* Wider range for similar desktop resolutions */
@media screen and (min-width: 1200px) and (max-width: 1366px) and (min-height: 720px) and (max-height: 900px) {

    /* Consultation cards spacing optimization */
    .consultation-card {
        margin-bottom: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .consultation-content {
        max-height: 300px !important;
        overflow-y: auto !important;
    }

    /* Table responsive improvements */
    .table-responsive {
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }

    .table th {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
        font-weight: 600 !important;
    }

    .table td {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }

    /* Dashboard stats optimization */
    .stat-card {
        text-align: center !important;
        padding: 1rem !important;
    }

    .stat-number {
        font-size: 1.6rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.25rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
        color: var(--text-secondary) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* Form optimization */
    .form-group {
        margin-bottom: 1rem !important;
    }

    .form-label {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        margin-bottom: 0.25rem !important;
    }

    .form-control,
    .form-select {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* Navigation optimization */
    .nav-item {
        margin-right: 0.5rem !important;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Modal sizing */
    .modal-sm {
        max-width: 400px !important;
    }

    .modal-md {
        max-width: 600px !important;
    }

    .modal-lg {
        max-width: 900px !important;
    }

    .modal-xl {
        max-width: 1100px !important;
    }

    /* Alert spacing */
    .alert {
        padding: 0.75rem 1rem !important;
        margin-bottom: 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Breadcrumb optimization */
    .breadcrumb {
        font-size: 0.8rem !important;
        padding: 0.5rem 0 !important;
        margin-bottom: 1rem !important;
    }

    /* Sidebar optimization */
    .sidebar {
        width: 250px !important;
    }

    .sidebar .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* DataTable specific */
    .dataTables_wrapper .dataTables_filter input {
        width: 200px !important;
        font-size: 0.8rem !important;
    }

    .dataTables_wrapper .dataTables_length select {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    /* Chart containers */
    .chart-container {
        height: 300px !important;
        margin-bottom: 1rem !important;
    }

    /* Comment system optimization */
    .comment-item {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 6px !important;
        border: 1px solid var(--border-light) !important;
    }

    .comment-header {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    .comment-content {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    /* Notification improvements */
    .notification-item {
        padding: 0.75rem 1rem !important;
        font-size: 0.8rem !important;
        border-bottom: 1px solid var(--border-light) !important;
    }

    .notification-title {
        font-weight: 600 !important;
        margin-bottom: 0.25rem !important;
    }

    .notification-time {
        font-size: 0.7rem !important;
        color: var(--text-muted) !important;
    }

    /* Search and filter sections */
    .search-section {
        margin-bottom: 1.5rem !important;
        padding: 1rem !important;
        background: var(--bg-light) !important;
        border-radius: 8px !important;
    }

    .filter-group {
        margin-bottom: 1rem !important;
    }

    .filter-label {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        margin-bottom: 0.25rem !important;
    }

    /* Progress bars */
    .progress {
        height: 8px !important;
        border-radius: 4px !important;
    }

    /* Pagination optimization */
    .pagination {
        font-size: 0.8rem !important;
    }

    .page-link {
        padding: 0.375rem 0.75rem !important;
    }

    /* Footer adjustments */
    .footer-link {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }

    .footer-heading {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Component full width adjustments */
    .card,
    .table-responsive,
    .alert,
    .chart-container,
    .dashboard-card,
    .stat-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* DataTables wrapper full width */
    .dataTables_wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Footer full width */
    .footer,
    .modern-compact-footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .footer-container {
        padding-left: 25px !important;
        padding-right: 25px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
