:root {
    --sidebar-bg: #172436;
    --sidebar-active-bg: #00A3A3;
    --sidebar-text: #aeb7c2;
    --sidebar-active-text: #ffffff;

    /* New Premium Palette */
    --primary-color: #00A3A3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;

    /* Ensure app color tokens exist for buttons used in modals */
    --card-users: #FFB000;
    --card-buttons: #00B4D8;
}
    --card-bg: #ffffff;
    --body-bg: #f8f9fa;
    --text-primary: #343a40;
    --text-secondary: #6c757d;

    --border-radius: 16px;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    --card-hover-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--body-bg);
    font-family: 'Inter', sans-serif;
    /* Assuming Inter or similar is loaded, otherwise falls back */
}

/* Sidebar Background */
.main-sidebar {
    background-color: var(--sidebar-bg) !important;
}

/* Brand Logo Area */
.brand-link {
    background-color: var(--sidebar-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Sidebar Navigation */
.nav-sidebar .nav-item {
    margin-bottom: 5px;
}

.nav-sidebar .nav-link {
    color: var(--sidebar-text);
    border-radius: 8px !important;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.nav-sidebar .nav-link i {
    margin-right: 10px;
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.nav-sidebar .nav-link p {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Active State */
.nav-sidebar .nav-link.active {
    background-color: var(--sidebar-active-bg) !important;
    color: var(--sidebar-active-text) !important;
    box-shadow: none !important;
}

/* Hover State */
.nav-sidebar .nav-link:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.elevation-4 {
    box-shadow: none !important;
}

/* Page Background */
.content-wrapper {
    background-color: var(--body-bg) !important;
}

/* --- Dashboard Styles --- */

/* Premium Card (Base) */
.premium-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: none;
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

/* Top Stats Cards (New Design) */
.stats-card-new {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}

.stats-card-new:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}

.stats-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.stats-icon-wrapper.users {
    background-color: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
}

.stats-icon-wrapper.buttons {
    background-color: rgba(0, 180, 216, 0.1);
    color: #00B4D8;
}

.stats-icon-wrapper.groups {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.stats-icon-wrapper.uses {
    background-color: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stats-growth {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-subtext {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: auto;
    text-align: right;
}

/* Quick Access Section */
.quick-access-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-access-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #fff;
    border: 1px solid #f1f3f5;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-access-item:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    transform: translateX(4px);
}

.quick-access-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-access-icon i {
    font-size: 1.1rem;
}

.quick-access-icon.users i {
    color: #FF8C00;
}

.quick-access-icon.buttons i {
    color: #00B4D8;
}

.quick-access-icon.groups i {
    color: #4CAF50;
}

/* Lists & Tables (Top 5, Active Groups) */
.premium-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.premium-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.premium-table {
    width: 100%;
}

.premium-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #adb5bd;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
}

.premium-table td {
    padding: 16px 0;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* Recent Activity Timeline (Clean) */
.clean-timeline {
    position: relative;
    padding-left: 20px;
}

.clean-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 0;
    width: 2px;
    background-color: #f1f3f5;
    display: none;
    /* Hidden for now as per image style which looks like list */
}

.activity-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-icon.edit {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.activity-icon.delete {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.activity-icon.create {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.activity-content {
    flex-grow: 1;
}

.activity-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.activity-text strong {
    color: #007bff;
    /* Or theme color */
    font-weight: 600;
}

.activity-time {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Group Avatar */
.group-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #e9ecef;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 12px;
}

.group-avatar.admin {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.group-avatar.user {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}


.stats-title {
    color: var(--card-users);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.stat-item {
    margin-bottom: 25px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #343a40;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #f0f2f5;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Quick Guide */
.quick-guide-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    border: none;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #5a6268;
    font-size: 1rem;
    font-weight: 500;
}

.guide-list li i {
    color: var(--card-groups);
    margin-right: 12px;
    font-size: 1.1rem;
}

/* --- User Management Styles --- */

.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px 20px;
    /* Reduced padding */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    /* Softer shadow */
}

.search-input {
    flex-grow: 1;
    border: 1px solid #f1f3f5;
    /* Lighter border */
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.95rem;
    color: #495057;
    background-color: #f8f9fa;
    /* Light gray bg */
}

.search-input:focus {
    outline: none;
    background-color: #fff;
    border-color: #dee2e6;
    box-shadow: none;
}

.filter-select {
    border: 1px solid #f1f3f5;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.95rem;
    color: #495057;
    background-color: #f8f9fa;
    min-width: 160px;
}

.btn-add-user {
    background-color: #17a2b8;
    /* Cyan color */
    color: #fff;
    border: none;
    border-radius: 50px;
    /* Rounded pill shape */
    padding: 8px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.btn-add-user:hover {
    background-color: #138496;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.custom-table-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: none;
}

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

.custom-table thead th {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-top: none;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 15px 20px;
    letter-spacing: 0.5px;
}

.custom-table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    border-top: 1px solid #f1f3f5;
    color: #343a40;
    font-size: 0.95rem;
}

.custom-table tbody tr:hover {
    background-color: #f8f9fa;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.action-btn {
    border: none;
    background: none;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn.edit {
    color: var(--card-buttons);
}

.action-btn.delete {
    color: #dc3545;
}

/* --- Modal Redesign --- */

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #f1f3f5;
    padding: 20px 25px;
    align-items: center;
}

.modal-title {
    font-weight: 700;
    color: #343a40;
    font-size: 1.25rem;
}

.modal-body {
    padding: 25px;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    height: 45px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    font-size: 1rem;
    color: #495057;
}

.form-control:focus {
    border-color: var(--card-buttons);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.modal-footer {
    border-top: 1px solid #f1f3f5;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    /* Excluir left, others right */
    background-color: #f8f9fa;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.modal-footer .right-buttons {
    display: flex;
    gap: 10px;
}

.btn-cancel {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
}

.btn-cancel:hover {
    background-color: #dee2e6;
    color: #212529;
}

.btn-save {
    background-color: var(--card-users);
    /* Orange */
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
}

.btn-save:hover {
    background-color: #e67e00;
    color: #fff;
}

.btn-delete-modal {
    background-color: #dc3545;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
}

.btn-delete-modal:hover {
    background-color: #c82333;
    color: #fff;
}

/* Checkbox Group Styling */
.access-groups-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: block;
    font-size: 0.95rem;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #495057;
}

.custom-checkbox input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* --- Buttons Grid System --- */
.qcb-grid {
    margin: -5px;
    display: flex;
    flex-wrap: wrap;
}

.qcb-item {
    flex: 0 0 calc(10% - 10px);
    /* 10 items per row */
    max-width: calc(10% - 10px);
    margin: 5px;
}

@media (max-width: 1400px) {
    .qcb-item {
        flex: 0 0 calc(12.5% - 10px);
        max-width: calc(12.5% - 10px);
    }
}

/* --- Groups and Sectors Specific Styles --- */

/* Status toggle button */
.action-btn.status {
    color: #ffc107;
    transition: transform 0.2s;
}

.action-btn.status:hover {
    transform: scale(1.1);
}

/* Badge colors for different levels */
.badge-danger {
    background-color: #dc3545 !important;
}

.badge-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge-info {
    background-color: #17a2b8 !important;
}

.badge-success {
    background-color: #28a745 !important;
}

.badge-secondary {
    background-color: #6c757d !important;
}

/* Consistent table hover effects */
.custom-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Modal consistency for groups and sectors */
#groupModal .modal-content,
#sectorModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#groupModal .modal-header,
#sectorModal .modal-header {
    border-bottom: 1px solid #f1f3f5;
    padding: 20px 25px;
    align-items: center;
}

#groupModal .modal-title,
#sectorModal .modal-title {
    font-weight: 700;
    color: #343a40;
    font-size: 1.25rem;
}

#groupModal .modal-body,
#sectorModal .modal-body {
    padding: 25px;
}

#groupModal .modal-footer,
#sectorModal .modal-footer {
    border-top: 1px solid #f1f3f5;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* User Modal specific styles */
#userModal .modal-body {
    padding: 25px;
}

#userModal .modal-footer {
    border-top: 1px solid #f1f3f5;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

#userModal .form-control {
    height: 45px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    font-size: 1rem;
    color: #495057;
}

#userModal .form-control:focus {
    border-color: var(--card-buttons);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

#userModal .btn-delete-modal {
    background-color: #dc3545;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
}

#userModal .btn-delete-modal:hover {
    background-color: #c82333;
    color: #fff;
}

#userModal .btn-cancel {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
}

#userModal .btn-cancel:hover {
    background-color: #d5d9df;
    color: #495057;
}

#userModal .btn-save {
    background-color: var(--card-buttons);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
}

#userModal .btn-save:hover {
    background-color: #e67e00;
    color: #fff;
}

/* Ensure modal footer stays inside modal */
.modal-footer {
    position: relative !important;
    width: 100% !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

/* Fix for user modal footer positioning */
#userModal .modal-footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
}

/* Ensure buttons stay inside footer */
#userModal .btn-delete-modal,
#userModal .btn-cancel,
#userModal .btn-save {
    position: relative !important;
    float: none !important;
    display: inline-block !important;
}

/* Override any potential positioning issues */
#userModal .modal-dialog {
    position: relative !important;
}

#userModal .modal-content {
    position: relative !important;
    overflow: visible !important;
}

/* Ensure footer is properly contained */
#userModal .modal-footer {
    box-sizing: border-box !important;
    clear: both !important;
    width: 100% !important;
    margin-top: auto !important;
}

/* Fix potential Bootstrap conflicts */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-dialog {
    z-index: 1060 !important;
}

/* Form control consistency */
#groupModal .form-control,
#sectorModal .form-control {
    height: 45px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    font-size: 1rem;
    color: #495057;
}

#groupModal .form-control:focus,
#sectorModal .form-control:focus {
    border-color: var(--card-buttons);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

#groupModal textarea.form-control,
#sectorModal textarea.form-control {
    height: auto;
    min-height: 90px;
}

/* Button consistency across modals */
#groupModal .btn-cancel,
#sectorModal .btn-cancel {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
}

#groupModal .btn-cancel:hover,
#sectorModal .btn-cancel:hover {
    background-color: #dee2e6;
    color: #212529;
}

#groupModal .btn-save,
#sectorModal .btn-save {
    background-color: var(--card-users);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
}

#groupModal .btn-save:hover,
#sectorModal .btn-save:hover {
    background-color: #e67e00;
    color: #fff;
}

#groupModal .btn-delete-modal,
#sectorModal .btn-delete-modal {
    background-color: #dc3545;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
}

#groupModal .btn-delete-modal:hover,
#sectorModal .btn-delete-modal:hover {
    background-color: #c82333;
    color: #fff;
}

/* Filter row consistency */
.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Responsive adjustments for filter row */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-input,
    .filter-select {
        width: 100%;
    }

    .btn-add-user {
        width: 100%;
        justify-content: center;
    }
}

/* Loading state consistency */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
}

@media (max-width: 1200px) {
    .qcb-item {
        flex: 0 0 calc(16.666% - 10px);
        max-width: calc(16.666% - 10px);
    }
}

@media (max-width: 768px) {
    .qcb-item {
        flex: 0 0 calc(25% - 10px);
        max-width: calc(25% - 10px);
    }
}

@media (max-width: 576px) {
    .qcb-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

.qcb-tile {
    background: #FFB000;
    color: #fff;
    border-radius: 12px;
    height: 80px;
    /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.qcb-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.qcb-tile .qcb-icon {
    font-size: 20px;
    line-height: 1;
    color: #fff;
    margin-bottom: 4px;
}

.qcb-tile .qcb-emoji {
    font-size: 24px;
    line-height: 1;
}

.qcb-tile .qcb-text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
    white-space: pre-line;
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* --- Buttons Page Redesign --- */

.color-picker-wrapper {
    position: relative;
    height: 45px;
    /* Match input height */
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #ced4da;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 5px;
}

.color-picker-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.color-preview-bar {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.preview-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
    /* Fixed height for consistency */
    border: 1px dashed #dee2e6;
    margin-top: 30px;
    /* Align with inputs */
}

.preview-tile {
    width: 100%;
    max-width: 200px;
    height: 110px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    gap: 8px;
    transition: all 0.3s ease;
}

.preview-tile i {
    font-size: 28px;
}

.preview-tile span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    text-align: center;
    padding: 0 10px;
    line-height: 1.2;
}

.modal-body-columns {
    display: flex;
    gap: 30px;
}

.modal-left-col {
    flex: 1;
}

.modal-right-col {
    width: 320px;
    display: flex;
    flex-direction: column;
}

.preview-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .modal-body-columns {
        flex-direction: column;
    }

    .modal-right-col {
        width: 100%;
        margin-top: 20px;
    }

    .preview-card {
        margin-top: 0;
        height: auto;
        padding: 40px 20px;
    }
}
