/* AMG Premium Design System */

:root {
    --amg-purple: #5B4A9C;
    --amg-purple-dark: #312663;
    --amg-purple-light: #f5f3ff;
    --amg-red: #E11D48;
    --amg-red-dark: #BE123C;
}

.fw-600 { font-weight: 600; }
.cursor-pointer { cursor: pointer; }
.transition-all { transition: all 0.2s ease-in-out; }

/* Dashboard Typography & Badges */
.text-amg-purple { color: var(--amg-purple); }
.bg-amg-purple { 
    background-color: var(--amg-purple) !important; 
    color: white !important;
    transition: all 0.3s ease;
}
.bg-amg-purple:hover {
    background-color: var(--amg-purple-dark) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 38, 99, 0.3) !important;
}

.bg-amg-purple-light { background-color: var(--amg-purple-light); }
.cat-badge { 
    background: var(--amg-purple); 
    color: white; 
    border-radius: 4px; 
    padding: 4px 12px; 
    font-size: 0.7rem; 
    font-weight: 600; 
    text-transform: uppercase; 
}

/* Custom Radio & Checkbox Styling */
.custom-radio {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    border: 1px solid #e2e8f0;
}
.custom-radio:hover {
    background-color: #f8f9fa;
    border-color: var(--amg-purple) !important;
    transform: translateY(-2px);
}
.custom-radio:has(input:checked) {
    border-color: var(--amg-purple) !important;
    background-color: var(--amg-purple-light);
    border-width: 2px !important;
}
.custom-radio:has(input:checked) label {
    color: var(--amg-purple);
}
.hover-shadow:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important; }

/* Global Button Fixes */
.btn:disabled, .btn.disabled,
.btn:disabled:hover, .btn.disabled:hover {
    background-color: #e2e8f0 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Mobile Table Optimization */
@media (max-width: 768px) {
    .mobile-stack thead { display: none; }
    .mobile-stack td {
        display: block;
        text-align: right;
        padding-left: 50% !important;
        position: relative;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    .mobile-stack td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        font-weight: 600;
        text-align: left;
        color: #64748b;
    }
    .mobile-stack tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
}

/* Tab Styling */
.nav-tabs .nav-link { 
    border: none; 
    color: #64748b; 
    border-bottom: 3px solid transparent; 
    padding: 1rem 1.5rem; 
    transition: all 0.3s; 
}
.nav-tabs .nav-link.active { 
    color: var(--amg-purple); 
    border-bottom: 3px solid var(--amg-purple); 
    background: transparent; 
}
.tab-badge { 
    background: var(--amg-purple); 
    color: white; 
    padding: 2px 8px; 
    border-radius: 8px; 
    font-size: 0.75rem; 
    margin-left: 5px; 
}
