/* ==========================================================================
   PROFESSIONAL COMPACT STYLING - ORGANIZED & CONSOLIDATED
   ========================================================================== */

/* ------------------------------
   CSS VARIABLES
   ------------------------------ */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-gray: #f8f9fa;
    --border-radius: 4px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ------------------------------
   LAYOUT & CONTAINERS
   ------------------------------ */
.dual-pane-container {
    min-height: calc(100vh - 100px);
    padding-bottom: 1.5rem;
}

.dual-pane-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 200px);
}

@media (min-width: 992px) {
    .dual-pane-container {
        flex-direction: row;
        gap: 20px;
    }
    
    .left-pane {
        flex: 0 0 36%;
        max-width: 36%;
    }
    
    .right-pane {
        flex: 0 0 64%;
        max-width: 64%;
    }
}

@media (max-width: 1200px) {
    .dual-pane-container .col-xl-9 {
        width: 70%;
    }
    .dual-pane-container .col-xl-3 {
        width: 30%;
    }
}

@media (max-width: 992px) {
    .dual-pane-container,
    .dual-pane-container .col-xl-9,
    .dual-pane-container .col-xl-3 {
        width: 100%;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .dual-pane-container {
        margin-top: 0.5rem !important;
    }
}

.col-xl-7,
.col-xl-5 {
    transition: none !important;
}

.right-pane-section {
    margin-bottom: 1.5rem;
}

.right-pane-section .card {
    margin-bottom: 0;
}

.container-fluid.mt-4 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* ------------------------------
   CARDS
   ------------------------------ */
.card {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.card {
    border: 1px solid var(--neutral-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: none !important;
}

.card-header:hover {
    background-color: inherit !important;
    color: inherit !important;
    cursor: default !important;
}

.card-body {
    padding: 0.75rem;
}

/* Reinforce Bootstrap bg classes */
.bg-primary,
.bg-secondary,
.bg-success,
.bg-info,
.bg-warning,
.bg-danger,
.bg-light,
.bg-dark {
    transition: none !important;
}

.bg-primary:hover,
.bg-secondary:hover,
.bg-success:hover,
.bg-info:hover,
.bg-warning:hover,
.bg-danger:hover,
.bg-light:hover,
.bg-dark:hover {
    background-color: inherit !important;
}

/* ------------------------------
   COMPLIANCE REFERENCE CARD (SPECIAL)
   ------------------------------ */
.compliance-reference-card {
    height: auto;
}

.compliance-reference-card {
    padding: 1rem;
}

.compliance-reference-card .compliance-iframe-container {
    height: 500px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: height 0.3s ease;
}

@media (max-width: 1200px) {
    .compliance-reference-card .compliance-iframe-container {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .compliance-reference-card .compliance-iframe-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .compliance-reference-card .compliance-iframe-container {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .compliance-reference-card .compliance-iframe-container {
        height: 200px;
    }
}

/* ------------------------------
   IFRAME CONTAINERS
   ------------------------------ */
.compliance-iframe-container {
    height: 300px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.compliance-iframe-container {
    height: 500px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.compliance-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ------------------------------
   GAUGES (MICRO)
   ------------------------------ */
.gauge-bar-micro {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 2px;
    position: relative;
    flex-grow: 1;
}

.gauge-bar-micro {
    background-color: var(--neutral-light);
    border-radius: 3px;
    height: 6px;
    position: relative;
    flex: 1;
    margin-right: 0.25rem;
}

.gauge-fill-proposed-micro {
    height: 100%;
    background-color: #dc3545;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.gauge-fill-proposed-micro {
    background-color: var(--danger-color);
    border-radius: 3px;
    height: 100%;
    transition: width 0.3s ease;
}

.gauge-fill-reference-micro {
    height: 100%;
    background-color: #28a745;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.gauge-fill-reference-micro {
    background-color: var(--success-color);
    border-radius: 3px;
    height: 100%;
    transition: width 0.3s ease;
}

.gauge-target-micro {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #6c757d;
    z-index: 2;
}

.gauge-target-micro {
    position: absolute;
    top: -2px;
    width: 2px;
    height: 10px;
    background-color: var(--primary-dark);
    transform: translateX(-50%);
}

.updated-micro {
    animation: pulse 0.3s ease;
}

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

/* ------------------------------
   TABLES (BASE STYLES)
   ------------------------------ */
.table {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.table {
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    padding: 0.5rem;
    white-space: nowrap;
}

.table th {
    padding: 0.375rem 0.5rem;
    background-color: var(--neutral-light);
    border-bottom: 2px solid var(--neutral-border);
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
}

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

.table td {
    padding: 0.375rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--neutral-border);
}

.table tfoot td {
    font-weight: 600;
    background-color: #f8f9fa;
    padding: 0.75rem 0.5rem;
}

.table tfoot td {
    padding: 0.5rem;
    background-color: var(--neutral-light);
    border-top: 2px solid var(--neutral-border);
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: var(--primary-light);
}

.table-responsive {
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
}

@media (max-width: 768px) {
    .table-responsive {
        margin-bottom: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table th,
    .table td {
        white-space: nowrap;
    }
}

/* Alignment improvements */
.table td.text-start {
    padding-left: 0.5rem;
}

.table td.text-center {
    text-align: center;
}

/* Input styling in tables */
.table .form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    height: calc(1.5em + 0.5rem + 2px);
}

.table .input-group-sm {
    min-width: 100px;
}

.table .input-group-text {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.assembly-name {
    font-weight: 500;
    color: var(--primary-dark);
}

.ua-value {
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--primary-dark);
}

/* ------------------------------
   NECB PURPLE TABLE
   ------------------------------ */
.necb-purple-table thead {
    background-color: #6f42c1;
    color: white;
}

.necb-purple-table thead {
    background: linear-gradient(135deg, #6f42c1, #8a6dd1);
    color: white;
}

.necb-purple-table thead th {
    font-size: 0.85rem;
    padding: 0.5rem;
    font-weight: 600;
}

.necb-purple-table thead th {
    border-bottom: none;
    font-weight: 600;
    padding: 0.875rem 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.necb-purple-table {
    border: 1px solid rgba(111, 66, 193, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.05);
}

.necb-purple-table tbody tr {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.necb-purple-table tbody tr:hover {
    background-color: rgba(111, 66, 193, 0.04);
    border-left: 3px solid #6f42c1;
}

.necb-purple-table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-top: 1px solid rgba(111, 66, 193, 0.08);
}

.necb-purple-table tfoot {
    background-color: rgba(111, 66, 193, 0.06);
    border-top: 2px solid #6f42c1;
}

.necb-purple-table tfoot td {
    padding: 1rem;
    font-weight: 600;
    color: #6f42c1;
}

.necb-purple-table tbody td:last-child {
    text-align: center;
}

.necb-purple-table tbody tr:nth-child(even) {
    background-color: rgba(111, 66, 193, 0.02);
}

@media (max-width: 768px) {
    .necb-purple-table {
        font-size: 0.9rem;
    }
    
    .necb-purple-table thead th,
    .necb-purple-table tbody td {
        padding: 0.625rem 0.75rem;
    }
}

/* Purple action buttons & inputs */
.necb-purple-table .btn-outline-purple {
    color: #6f42c1;
    border: 1px solid #6f42c1;
    background: transparent;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.necb-purple-table .btn-outline-purple:hover {
    background-color: #6f42c1;
    color: white;
    transform: translateY(-1px);
}

.necb-purple-table .form-control {
    border: 1px solid rgba(111, 66, 193, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.necb-purple-table .form-control:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.15);
    background-color: white;
}

.necb-purple-table .input-group-text {
    background-color: rgba(111, 66, 193, 0.08);
    border: 1px solid rgba(111, 66, 193, 0.2);
    color: #6f42c1;
    font-weight: 500;
}

/* ------------------------------
   NECB GREEN TABLE
   ------------------------------ */
.necb-green-table thead {
    background-color: #198754;
    color: white;
}

.necb-green-table thead {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
}

.necb-green-table thead th {
    font-size: 0.85rem;
    padding: 0.5rem;
    font-weight: 600;
}

.necb-green-table thead th {
    border-bottom: none;
    font-weight: 600;
    padding: 0.875rem 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.necb-green-table {
    border: 1px solid rgba(25, 135, 84, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.05);
}

.necb-green-table tbody tr {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.necb-green-table tbody tr:hover {
    background-color: rgba(25, 135, 84, 0.04);
    border-left: 3px solid #198754;
}

.necb-green-table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-top: 1px solid rgba(25, 135, 84, 0.08);
}

.necb-green-table tfoot {
    background-color: rgba(25, 135, 84, 0.06);
    border-top: 2px solid #198754;
}

.necb-green-table tfoot td {
    padding: 1rem;
    font-weight: 600;
    color: #198754;
}

.necb-green-table tbody td:last-child {
    text-align: center;
}

.necb-green-table tbody tr:nth-child(even) {
    background-color: rgba(25, 135, 84, 0.02);
}

@media (max-width: 768px) {
    .necb-green-table {
        font-size: 0.9rem;
    }
    
    .necb-green-table thead th,
    .necb-green-table tbody td {
        padding: 0.625rem 0.75rem;
    }
}

/* Green action buttons & inputs */
.necb-green-table .btn-outline-green {
    color: #198754;
    border: 1px solid #198754;
    background: transparent;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.necb-green-table .btn-outline-green:hover {
    background-color: #198754;
    color: white;
    transform: translateY(-1px);
}

.necb-green-table .form-control {
    border: 1px solid rgba(25, 135, 84, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.necb-green-table .form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
    background-color: white;
}

.necb-green-table .input-group-text {
    background-color: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.2);
    color: #198754;
    font-weight: 500;
}

/* ------------------------------
   TABS (BASE STYLING)
   ------------------------------ */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1rem;
}

.nav-tabs {
    border-bottom: 1px solid var(--neutral-border);
    margin-bottom: 0.75rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    color: var(--neutral-dark);
    background-color: var(--neutral-light);
    margin-right: 0.25rem;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(44, 62, 80, 0.05);
}

.nav-tabs .nav-link:hover {
    border-color: var(--neutral-border);
    color: var(--primary-dark);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 3px solid var(--accent-color);
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    background-color: white;
    border-color: var(--neutral-border) var(--neutral-border) white;
    color: var(--primary-dark);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* ------------------------------
   TAB-SPECIFIC STYLING
   ------------------------------ */
#tradeoffTabs {
    border-bottom: 2px solid #6f42c1;
}

/* Remove default Bootstrap border */
.nav-tabs .nav-link {
    border-radius: 0.375rem 0.375rem 0 0;
    transition: all 0.2s ease;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 1.5rem;
    border-radius: 0 0 0.375rem 0.375rem;
    background-color: #fff;
}

/* VERTICAL ASSEMBLIES TAB - Purple Theme */
#vertical-tab {
    color: #6f42c1 !important;
    font-weight: 600;
    background-color: rgba(111, 66, 193, 0.05);
    border: 1px solid rgba(111, 66, 193, 0.2) !important;
    border-bottom: none !important;
    margin-bottom: -1px;
}

#vertical-tab .fas {
    color: #6f42c1 !important;
}

#vertical-tab.active {
    color: #fff !important;
    background-color: #6f42c1 !important;
    border-color: #6f42c1 #6f42c1 transparent !important;
    border-top: 3px solid #6f42c1 !important;
    margin-top: -3px;
}

#vertical-tab.active .fas {
    color: #fff !important;
}

#vertical-tab:hover:not(.active) {
    color: #5a32a8 !important;
    background-color: rgba(111, 66, 193, 0.1) !important;
    border-color: rgba(111, 66, 193, 0.3) !important;
}

/* HORIZONTAL ASSEMBLIES TAB - Light Green Theme */
#horizontal-tab {
    color: #198754 !important;
    font-weight: 600;
    background-color: rgba(25, 135, 84, 0.08) !important;
    border: 1px solid rgba(25, 135, 84, 0.15) !important;
    border-bottom: none !important;
    margin-bottom: -1px;
}

#horizontal-tab .fas {
    color: #198754 !important;
}

#horizontal-tab.active {
    color: #fff !important;
    background-color: #198754 !important;
    border-color: #198754 #198754 transparent !important;
    border-top: 3px solid #198754 !important;
    margin-top: -3px;
}

#horizontal-tab.active .fas {
    color: #fff !important;
}

#horizontal-tab:hover:not(.active) {
    color: #157347 !important;
    background-color: rgba(25, 135, 84, 0.12) !important;
    border-color: rgba(25, 135, 84, 0.25) !important;
}

/* QUESTIONS TAB */
#questions-tab {
    font-weight: 600;
    background-color: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.1) !important;
    border-bottom: none !important;
    margin-bottom: -1px;
}

#questions-tab.active {
    color: #000 !important;
    background-color: #ffc107 !important;
    border-color: #ffc107 #ffc107 transparent !important;
    border-top: 3px solid #ffc107 !important;
    margin-top: -3px;
}

/* RESULTS TAB */
#results-tab {
    font-weight: 600;
    background-color: rgba(13, 110, 253, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.1) !important;
    border-bottom: none !important;
    margin-bottom: -1px;
}

#results-tab.active {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd #0d6efd transparent !important;
    border-top: 3px solid #0d6efd !important;
    margin-top: -3px;
}

/* Responsive tabs */
@media (max-width: 992px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .nav-tabs .nav-item {
        flex-shrink: 0;
    }
    
    .nav-tabs .nav-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* ------------------------------
   SECTION HEADERS
   ------------------------------ */
.section-header-vertical {
    background-color: #6f42c1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.section-header-horizontal {
    background-color: #198754;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.section-header {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--neutral-border);
}

.section-header-vertical {
    color: #6f42c1;
    border-bottom-color: rgba(111, 66, 193, 0.3);
}

.section-header-horizontal {
    color: #198754;
    border-bottom-color: rgba(25, 135, 84, 0.3);
}

/* ------------------------------
   BUTTONS (BASE)
   ------------------------------ */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}

.btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
}

.btn-group-sm > .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
}

/* ------------------------------
   BUTTON VARIANTS (SOLID)
   ------------------------------ */
.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success {
    background: var(--success-gradient);
    border-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    border-color: #229954;
}

.btn-primary {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-gradient);
    border-color: var(--danger-color);
    color: white;
}

/* ------------------------------
   BUTTON VARIANTS (OUTLINE)
   ------------------------------ */
.btn-outline-primary {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.btn-outline-success {
    background-color: transparent;
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.btn-outline-success:hover {
    background-color: var(--success-light);
    color: var(--success-dark);
}

.btn-outline-danger {
    background-color: transparent;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--danger-light);
    color: var(--danger-dark);
}

.btn-outline-warning {
    background-color: transparent;
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.btn-outline-warning {
    color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    background-color: transparent !important;
}

.btn-outline-warning {
    color: #b36b00 !important;
    border-color: #ffb347 !important;
    background-color: rgba(255, 179, 71, 0.08) !important;
    font-weight: 500;
}

.btn-outline-warning:hover {
    background-color: var(--warning-light);
    color: var(--warning-dark);
}

.btn-outline-warning:hover {
    background-color: var(--warning-color) !important;
    color: white !important;
    border-color: var(--warning-color) !important;
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, #ffb347 0%, #ff9500 100%) !important;
    color: white !important;
    border-color: #ff9500 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 149, 0, 0.2);
}

.btn-outline-warning:active {
    background: linear-gradient(135deg, #ff9500 0%, #e67700 100%) !important;
    transform: translateY(0);
}

.btn-outline-info {
    background-color: transparent;
    border: 1px solid #17a2b8;
    color: #17a2b8;
}

.btn-outline-info:hover {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Row action buttons */
.btn-sm i {
    font-size: 0.7rem;
}

/* Paste button colors */
.vertical-paste-btn {
    color: #6f42c1 !important;
    border-color: #6f42c1 !important;
}

.vertical-paste-btn:hover {
    background-color: #6f42c1 !important;
    color: white !important;
}

.horizontal-paste-btn {
    color: #228B22 !important;
    border-color: #228B22 !important;
}

.horizontal-paste-btn:hover {
    background-color: #228B22 !important;
    color: white !important;
}

/* Responsive buttons */
@media (max-width: 576px) {
    .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .text-start .btn {
        width: auto;
        margin-bottom: 0.25rem;
    }
}

/* ------------------------------
   FORM CONTROLS
   ------------------------------ */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.form-control {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--neutral-border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.form-text {
    font-size: 0.75rem;
}

/* Checkbox styling */
.form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.form-check-label {
    font-size: 0.875rem;
    line-height: 1.4;
}

.mandatory-question .form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ------------------------------
   COMPLIANCE QUESTIONS
   ------------------------------ */
.mandatory-question {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.mandatory-question {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--neutral-border);
    border-radius: var(--border-radius-sm);
    background-color: white;
}

.mandatory-question:hover {
    background-color: var(--neutral-light);
}

.mandatory-question:last-child {
    border-bottom: none;
}

/* ------------------------------
   ALERTS & NOTIFICATIONS
   ------------------------------ */
.alert {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8125rem;
    border: 1px solid transparent;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-warning {
    background-color: var(--warning-light);
    border-color: var(--warning-color);
    color: var(--warning-dark);
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-success {
    background-color: var(--success-light);
    border-color: var(--success-color);
    color: var(--success-dark);
}

/* ------------------------------
   BADGES & INDICATORS
   ------------------------------ */
.badge {
    font-weight: 600;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
}

.sync-indicator {
    font-size: 0.8rem;
    opacity: 0.8;
}

.sync-indicator {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Compliance badges */
.compliance-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compliance-pass {
    background-color: var(--success-light);
    color: var(--success-dark);
    border: 1px solid var(--success-color);
}

.compliance-fail {
    background-color: var(--danger-light);
    color: var(--danger-dark);
    border: 1px solid var(--danger-color);
}

.compliance-incomplete {
    background-color: var(--warning-light);
    color: var(--warning-dark);
    border: 1px solid var(--warning-color);
}

.compliance-summary {
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 0.75rem;
}

.compliance-summary.pass {
    background-color: var(--success-light);
    border-left: 4px solid var(--success-color);
}

.compliance-summary.fail {
    background-color: var(--danger-light);
    border-left: 4px solid var(--danger-color);
}

.compliance-summary.incomplete {
    background-color: var(--warning-light);
    border-left: 4px solid var(--warning-color);
}

/* Compliance status classes */
.action-compliant {
    color: var(--success-color);
    font-weight: 600;
}

.action-noncompliant {
    color: var(--danger-color);
    font-weight: 600;
}

.status-compliant { color: var(--success-color); }
.status-noncompliant { color: var(--danger-color); }
.status-warning { color: var(--warning-color); }
.status-neutral { color: var(--neutral-dark); }

/* ------------------------------
   UTILITY CLASSES
   ------------------------------ */
.text-small {
    font-size: 0.75rem;
}

.text-xsmall {
    font-size: 0.7rem;
}

.font-monospace {
    font-family: 'Consolas', 'Monaco', monospace;
}

.fw-medium {
    font-weight: 500;
}

/* Transition for collapse toggle */
.transition-transform {
    transition: transform 0.3s ease;
}

.collapsed .transition-transform {
    transform: rotate(0deg);
}

:not(.collapsed) .transition-transform {
    transform: rotate(180deg);
}

/* ------------------------------
   CLIPBOARD TRANSFER SYSTEM
   ------------------------------ */
.clipboard-help {
    background: var(--neutral-light);
    border: 1px solid var(--neutral-border);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.75rem;
}

.clipboard-help h6 {
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
    font-size: 0.8125rem;
}

.clipboard-help ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.clipboard-help li {
    margin-bottom: 0.125rem;
}

.paste-hint {
    font-size: 0.7rem;
    color: var(--neutral-dark);
    margin-top: 0.25rem;
    font-style: italic;
}

/* ------------------------------
   PRINT STYLES
   ------------------------------ */
@media print {
    .dual-pane-container {
        margin: 0;
        padding: 0;
        display: block;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        break-inside: avoid;
    }
    
    .compliance-iframe-container,
    .btn,
    .nav-tabs,
    .sync-indicator,
    .alert {
        display: none !important;
    }
    
    .btn,
    .nav-tabs,
    .sync-indicator {
        display: none !important;
    }
    
    .table {
        font-size: 0.75rem;
    }
}