/* Clinical Clarity Design System - Alfared */

:root {
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --bg-main: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --radius-standard: 12px;
    --radius-lg: 16px;
}

.clinical-clarity-container {
    background-color: var(--bg-main);
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* Override AdminLTE boxes */
.box.box-primary, .box.box-success, .box.box-solid {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-standard) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    border-top: none !important;
}

.box-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 15px 20px !important;
}

.box-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-standard);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
}

.glass-card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.glass-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Form Elements */
.clarity-input, .form-control {
    display: block !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease !important;
    height: auto !important;
}

.clarity-input:focus, .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
    outline: none !important;
}

/* Content Header */
.content-header {
    padding: 20px 20px 10px 20px !important;
}

.content-header h1 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

/* Buttons */
.btn-clarity-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-clarity-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Table styles */
.clarity-table, .table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
    background: transparent !important;
}

.clarity-table th, .table th {
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    padding: 12px 16px !important;
    border: none !important;
    background: rgba(0, 0, 0, 0.02) !important;
}

.clarity-table td, .table td {
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    vertical-align: middle !important;
}

.clarity-table tr:hover td, .table tr:hover td {
    background: rgba(255, 255, 255, 0.9) !important;
}

.table-bordered {
    border: none !important;
}

/* Badge styles */
.clarity-badge, .label {
    padding: 5px 12px !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.label-primary { background-color: #e0f2fe !important; color: #0369a1 !important; border: none !important; }
.label-success { background-color: #dcfce7 !important; color: #166534 !important; border: none !important; }
.label-warning { background-color: #fef9c3 !important; color: #854d0e !important; border: none !important; }
.label-danger { background-color: #fee2e2 !important; color: #991b1b !important; border: none !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* RTL Adjustments */
[dir="rtl"] .clarity-table tr td:first-child {
    border-left: none;
    border-right: 1px solid #f1f5f9;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

[dir="rtl"] .clarity-table tr td:last-child {
    border-right: none;
    border-left: 1px solid #f1f5f9;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
