/* Modern UI styling for SAHMEE IBS */
:root {
    --primary: #6638CD;
    --primary-dark: #4a2a9b;
    --primary-light: #8a5dd6;
    --secondary: #2AB36C;
    --secondary-dark: #1f8c54;
    --secondary-light: #4dc584;
    --dark: #000000;
    --dark-light: #1a1a1a;
    --light: #e2e8f0;
    --light-muted: #94a3b8;
    --success: #2AB36C;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #6638CD;
}

/* Base Styles */
body { 
    background: var(--dark); 
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Card Styles */
.card { 
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem; 
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,.4);
}

.card-header {
    background: rgba(15, 23, 42, 0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
}

/* Form Elements */
.form-control, .form-select { 
    background: rgba(15, 23, 42, 0.6); 
    color: var(--light); 
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus { 
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.input-group-text {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-right: none;
    color: var(--light-muted);
}

/* Button Styles */
.btn-primary { 
    background: linear-gradient(135deg, #6638CD 0%, #2AB36C 100%);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 56, 205, 0.3);
}

.btn-primary:hover { 
    background: linear-gradient(135deg, #4a2a9b 0%, #1f8c54 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 56, 205, 0.4);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.2);
    color: var(--light);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* Table Styles */
.table { 
    color: var(--light); 
}

.table thead th { 
    color: var(--light-muted); 
    font-weight: 600;
    border-bottom-color: rgba(255,255,255,0.1);
}

.table td {
    vertical-align: middle;
    border-color: rgba(255,255,255,0.05);
}

/* Badge Styles */
.badge-soft { 
    background: rgba(15, 23, 42, 0.6); 
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--light-muted);
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
}

/* Switch Styles */
.form-switch .form-check-input {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.form-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .card-body {
        padding: 1.25rem;
    }
}
