/* K3C Brand Colors - Official Palette */
:root {
    --k3c-deep-blue: #211F93;
    --k3c-deep-blue-dark: #1A1874;
    --k3c-coral: #FF846D;
    --k3c-coral-dark: #FF6B4D;
    --k3c-pale-yellow: #FFE483;
    --k3c-pale-yellow-dark: #FFD966;
    --k3c-blue-gray: #ECEFF8;
    --k3c-white: #FFFFFF;
    --k3c-gray: #6C757D;
    --k3c-gray-dark: #343A40;
    --k3c-text: #211F93;
}

body {
    background-color: var(--k3c-blue-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1002;
    background-color: var(--k3c-coral) !important;
    border: 2px solid var(--k3c-white) !important;
    color: var(--k3c-white) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px;
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.sidebar-toggle:hover {
    background-color: var(--k3c-coral-dark) !important;
    border-color: var(--k3c-pale-yellow) !important;
    transform: scale(1.05);
}

.sidebar-toggle .hamburger {
    width: 22px !important;
    height: 3px !important;
    background-color: var(--k3c-white) !important;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Sidebar Navigation - K3C Branding */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--k3c-deep-blue);
    color: var(--k3c-white);
    padding: 1.5rem 0 0 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .sidebar-brand-subtitle,
.sidebar.collapsed .sidebar-label {
    display: none;
}

.sidebar.collapsed .sidebar-brand {
    padding: 0.5rem;
    text-align: center;
}

.sidebar.collapsed .sidebar-nav a {
    padding: 0.75rem;
    text-align: center;
    justify-content: center;
}

.sidebar.collapsed .sidebar-user-text {
    display: none;
}

.sidebar-brand {
    padding: 0 1.5rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.sidebar-brand a {
    color: var(--k3c-white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar-brand-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.sidebar-brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.sidebar.collapsed .sidebar-brand a {
    align-items: center;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    min-width: 1.5rem;
    text-align: center;
}

.sidebar-label {
    transition: opacity 0.2s;
}

.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--k3c-pale-yellow);
    border-left-color: var(--k3c-coral);
}

.sidebar-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--k3c-pale-yellow);
    border-left-color: var(--k3c-coral);
    font-weight: 600;
}

.sidebar-section-header {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.sidebar-section-header:hover {
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-section-header:first-child {
    border-top: none;
    padding-top: 0.75rem;
    margin-top: 0;
}

.sidebar-chevron {
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--k3c-pale-yellow);
    transition: transform 0.2s;
    display: inline-block;
    opacity: 0.9;
}

.sidebar-chevron.collapsed {
    border-top: none;
    border-bottom: 8px solid var(--k3c-pale-yellow);
    transform: rotate(0deg);
}

.sidebar-section-header:hover .sidebar-chevron {
    opacity: 1;
    transform: scale(1.1);
}

.sidebar-section-items {
    list-style: none;
    padding: 0;
    margin: 0 0.5rem 0.5rem 0.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.sidebar-section-items.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0 0.5rem;
    padding: 0;
}

.sidebar-section-items li {
    margin: 0;
}

.sidebar-section-items a {
    padding-left: 2rem;
}

.sidebar.collapsed .sidebar-section-header {
    display: none;
}

.sidebar.collapsed .sidebar-section-items {
    display: none;
}

.sidebar-user {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background-color: var(--k3c-deep-blue);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: auto;
}

.sidebar-user a {
    color: var(--k3c-pale-yellow);
    text-decoration: none;
}

/* Main Content Area */
.main-content {
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: 60px;
}

/* Custom Multi-Select Dropdown */
.custom-select-wrapper {
    position: relative;
}

.custom-select-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    cursor: pointer;
    min-height: 38px;
    transition: all 0.2s;
}

.custom-select-display:hover {
    border-color: var(--k3c-coral);
}

.custom-select-display.active {
    border-color: var(--k3c-coral);
    box-shadow: 0 0 0 0.2rem rgba(255, 132, 109, 0.25);
}

.custom-select-placeholder {
    color: #6c757d;
    flex: 1;
}

.custom-select-count {
    background-color: var(--k3c-coral);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.custom-select-arrow {
    color: #6c757d;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.custom-select-display.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    border: none;
    padding: 0;
    margin: 0;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

.custom-select-dropdown-header {
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.custom-select-search {
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.custom-select-options {
    padding: 0.25rem 0;
}

.custom-select-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.custom-select-option:hover {
    background-color: #f8f9fa;
}

.custom-select-option input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.custom-select-option span {
    flex: 1;
    font-size: 0.875rem;
}

.selected-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    min-height: 2rem;
}

.pill-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: default;
}

.pill-filter .btn-close {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    opacity: 0.8;
    cursor: pointer;
}

.pill-filter .btn-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Compact Companies Table */
.companies-table {
    font-size: 0.875rem;
}

.companies-table th {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.5rem;
    white-space: nowrap;
    border-bottom: 2px solid var(--k3c-navy);
}

.companies-table td {
    padding: 0.5rem 0.5rem;
    vertical-align: middle;
}

.companies-table .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
}

.companies-table a {
    color: var(--k3c-navy);
    font-weight: 500;
}

.companies-table a:hover {
    color: var(--k3c-coral);
    text-decoration: underline;
}

.companies-table .small {
    font-size: 0.8rem;
}

/* Collapsible Sections */
.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    user-select: none;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.card-header {
    user-select: none;
}

/* Compact Table */
.table {
    font-size: 0.875rem;
}

.table thead th {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
}

.table tbody td {
    padding: 0.5rem 0.5rem;
}

/* Compact Form Controls */
.form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.form-control,
.form-select {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

/* Filter Summary Compact */
.filter-summary {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.row-count-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* Cards */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.card-header {
    background-color: var(--k3c-blue);
    color: var(--k3c-white);
    border-bottom: none;
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
}

/* Buttons - K3C Colors */
.btn-primary {
    background-color: var(--k3c-coral);
    border-color: var(--k3c-coral);
    color: white;
}

.btn-primary:hover {
    background-color: var(--k3c-coral-dark);
    border-color: var(--k3c-coral-dark);
    color: white;
}

.btn-success {
    background-color: var(--k3c-deep-blue);
    border-color: var(--k3c-deep-blue);
    color: white;
}

.btn-success:hover {
    background-color: var(--k3c-deep-blue-dark);
    border-color: var(--k3c-deep-blue-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--k3c-gray);
    border-color: var(--k3c-gray);
}

/* Tables */
.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--k3c-deep-blue);
    color: var(--k3c-white);
}

.table thead th {
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(255, 228, 131, 0.2);
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

.bg-primary {
    background-color: var(--k3c-deep-blue) !important;
}

.bg-secondary {
    background-color: var(--k3c-gray) !important;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--k3c-coral);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

/* Row Count Display */
.row-count-badge {
    display: inline-block;
    background-color: var(--k3c-pale-yellow);
    color: var(--k3c-deep-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-summary {
    background-color: var(--k3c-white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--k3c-coral);
}

/* Highlights */
.highlight-yellow {
    background-color: var(--k3c-pale-yellow);
    color: var(--k3c-deep-blue);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Links */
a {
    color: var(--k3c-deep-blue);
}

a:hover {
    color: var(--k3c-coral);
}

/* Alerts */
.alert-success {
    background-color: rgba(33, 31, 147, 0.1);
    border-color: var(--k3c-deep-blue);
    color: var(--k3c-deep-blue-dark);
}

.alert-danger {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: var(--k3c-coral);
    color: var(--k3c-coral-dark);
}

/* Pagination */
.page-link {
    color: var(--k3c-deep-blue);
}

.page-item.active .page-link {
    background-color: var(--k3c-coral);
    border-color: var(--k3c-coral);
}

.page-link:hover {
    color: var(--k3c-deep-blue-dark);
    background-color: rgba(33, 31, 147, 0.1);
}

/* Card Header */
.card-header {
    background-color: var(--k3c-deep-blue);
    color: var(--k3c-white);
    border-bottom: none;
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--k3c-deep-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-header .text-muted {
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.1rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: linear-gradient(135deg, var(--k3c-deep-blue) 0%, #1a1866 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.metric-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.metric-content {
    flex: 1;
}

.metric-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.metric-value {
    color: var(--k3c-white);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.metric-percentage {
    color: var(--k3c-pale-yellow);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Dashboard Sections */
.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-section h2 {
    color: var(--k3c-deep-blue);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-description {
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 1.5rem;
}

/* Segments Grid */
.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.segment-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.segment-card:hover {
    border-color: var(--k3c-deep-blue);
    box-shadow: 0 4px 12px rgba(33, 31, 147, 0.15);
    transform: translateY(-2px);
}

.segment-card.expanded {
    border-color: var(--k3c-deep-blue);
    box-shadow: 0 4px 12px rgba(33, 31, 147, 0.2);
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.segment-header:hover {
    opacity: 0.8;
}

.expand-icon {
    color: var(--k3c-deep-blue);
    font-size: 0.9rem;
    transition: transform 0.2s;
    margin-left: 0.5rem;
}

.segment-name {
    color: var(--k3c-deep-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.segment-count {
    background: var(--k3c-deep-blue);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.segment-percentage {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
}

/* Segment Details (Expandable) */
.segment-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subsegments-section,
.tiers-section {
    margin-bottom: 1.5rem;
}

.subsegments-section h4,
.tiers-section h4 {
    color: var(--k3c-deep-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.subsegments-list,
.tiers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subsegment-item,
.tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: background 0.2s;
}

.subsegment-item:hover,
.tier-item:hover {
    background: #f3f4f6;
}

.subsegment-name,
.tier-name {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.subsegment-count,
.tier-count {
    background: var(--k3c-deep-blue);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.tier-item.tier-1 .tier-count {
    background: #10b981; /* Green for Tier 1 */
}

.tier-item.tier-2 .tier-count {
    background: #f59e0b; /* Amber for Tier 2 */
}

.tier-item.tier-3 .tier-count {
    background: #ef4444; /* Red for Tier 3 */
}

.segment-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.btn-view-companies {
    display: inline-block;
    color: var(--k3c-deep-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.btn-view-companies:hover {
    color: #1a1866;
    text-decoration: underline;
}

/* All Segments Table */
.all-segments-section {
    margin-top: 2rem;
}

.btn-toggle-table {
    background: var(--k3c-deep-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
    margin-bottom: 1rem;
}

.btn-toggle-table:hover {
    background: #1a1866;
}

.btn-toggle-table .chevron {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.segments-table-container {
    overflow-x: auto;
    animation: slideDown 0.3s ease;
}

.segments-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.segments-table thead {
    background: var(--k3c-deep-blue);
    color: white;
}

.segments-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.segments-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.segments-table tbody tr:hover {
    background: #f9fafb;
}

.btn-link {
    color: var(--k3c-deep-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.btn-link:hover {
    color: #1a1866;
    text-decoration: underline;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--k3c-deep-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: #1a1866;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.action-icon {
    font-size: 1.5rem;
}

.action-text {
    font-size: 1rem;
}

/* Shared Page Container Styles */
.page-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--k3c-deep-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .text-muted {
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.1rem;
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.modern-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.modern-card-header h2 {
    color: var(--k3c-deep-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modern-card-header h3 {
    color: var(--k3c-deep-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* Modern Filter Summary */
.filter-summary-modern {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--k3c-deep-blue);
}

.filter-summary-modern .summary-label {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    margin-right: 0.5rem;
}

.filter-summary-modern .summary-value {
    background: var(--k3c-deep-blue);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

/* Modern Table Container */
.table-container-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.table-modern {
    margin: 0;
    width: 100%;
}

.table-modern thead {
    background: var(--k3c-deep-blue);
    color: white;
}

.table-modern thead th {
    padding: 1rem;
    font-weight: 600;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-modern tbody tr {
    transition: background-color 0.2s;
    border-bottom: 1px solid #e5e7eb;
}

.table-modern tbody tr:hover {
    background-color: rgba(33, 31, 147, 0.05);
}

.table-modern tbody tr:last-child {
    border-bottom: none;
}

.table-modern tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Modern Badge Styles */
.badge-modern {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
}

.badge-segment {
    background: var(--k3c-deep-blue);
    color: white;
}

.badge-tag {
    background: #6b7280;
    color: white;
}

.badge-tier-1 {
    background: #10b981;
    color: white;
}

.badge-tier-2 {
    background: #f59e0b;
    color: white;
}

.badge-tier-3 {
    background: #ef4444;
    color: white;
}

.badge-warning {
    background: #fbbf24;
    color: #78350f;
}

.badge-danger {
    background: #ef4444;
    color: white;
}

.badge-success {
    background: #10b981;
    color: white;
}

/* Modern Form Styles */
.form-modern {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: block;
    color: var(--k3c-deep-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--k3c-deep-blue);
    box-shadow: 0 0 0 3px rgba(33, 31, 147, 0.1);
}

/* Modern Button Styles */
.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modern-primary {
    background: var(--k3c-deep-blue);
    color: white;
}

.btn-modern-primary:hover {
    background: #1a1866;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 31, 147, 0.2);
}

.btn-modern-secondary {
    background: #6b7280;
    color: white;
}

.btn-modern-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-modern-success {
    background: #10b981;
    color: white;
}

.btn-modern-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Modern Nav Tabs */
.nav-tab-modern {
    flex: 1;
    padding: 1rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    background: white;
}

.nav-tab-modern:hover {
    color: var(--k3c-deep-blue);
    background: rgba(33, 31, 147, 0.05);
    text-decoration: none;
}

.nav-tab-modern.active {
    color: var(--k3c-deep-blue);
    border-bottom-color: var(--k3c-deep-blue);
    background: rgba(33, 31, 147, 0.05);
}

