/* * File: medical-pro-theme.css
 * Description: Professional Medical Studio Theme (Clean, Trustworthy, Modern)
 */

/* ====================================
   1. Color Palette (Medical Pro)
   ==================================== */
:root {
    /* Primary: Sky Blue 600 - Trustworthy, Clean */
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    /* Sky 700 */
    --primary-light: #e0f2fe;
    /* Sky 100 */

    /* Secondary/Accents */
    --secondary-color: #64748b;
    /* Slate 500 */
    --success-color: #059669;
    /* Emerald 600 */
    --danger-color: #dc2626;
    /* Red 600 */
    --warning-color: #d97706;
    /* Amber 600 */
    --info-color: #0891b2;
    /* Cyan 600 */

    /* Backgrounds & Text */
    --bg-body: #f8fafc;
    /* Slate 50 - Cool Light Gray */
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    /* Slate 900 - Professional Dark */
    --text-main: #334155;
    /* Slate 700 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Shapes */
    --radius-card: 12px;
    --radius-btn: 8px;
    --radius-input: 8px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ====================================
   2. Typography (Inter)
   ==================================== */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1e293b;
    /* Slate 800 */
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ====================================
   3. Cards & Containers
   ==================================== */
.card {
    background-color: var(--bg-card);
    border: none;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.card-body {
    padding: 1.5rem;
}

/* ====================================
   4. Sidebar (Professional Dark)
   ==================================== */
.main-sidebar {
    background-color: var(--bg-sidebar) !important;
}

.brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-sidebar .nav-link p {
    font-weight: 500;
    color: #cbd5e1;
    /* Slate 300 */
}

.nav-sidebar .nav-link i {
    color: #94a3b8;
    /* Slate 400 */
}

/* Active State */
.nav-pills .nav-link.active,
.nav-pills .nav-link.active:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-sm);
}

.nav-pills .nav-link.active i {
    color: #ffffff !important;
}

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

/* Section Headers */
.nav-header {
    color: #64748b !important;
    /* Slate 500 */
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding-top: 1.5rem;
}

/* ====================================
   5. Buttons
   ==================================== */
.btn {
    border-radius: var(--radius-btn);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-sm);
}

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

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

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

/* ====================================
   6. Forms & Inputs
   ==================================== */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    padding: 0.6rem 1rem;
    color: var(--text-main);
    background-color: #fff;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Global Compact Override */
.form-control-sm {
    height: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Select2 Modernization */
.select2-container .select2-selection--single {
    height: 42px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-input) !important;
    padding: 6px 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}

/* ====================================
   7. Tables (DataTables)
   ==================================== */
table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
    width: 100% !important;
}

table.dataTable thead th {
    background-color: #f1f5f9;
    /* Slate 100 */
    color: #475569;
    /* Slate 600 */
    font-weight: 600;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 1rem !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

table.dataTable tbody td {
    padding: 1rem !important;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

table.dataTable.no-footer {
    border-bottom: 1px solid var(--border-color);
}

/* ====================================
   8. Navbar & Top
   ==================================== */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar-light .navbar-nav .nav-link {
    color: #64748b;
}

/* ====================================
   9. Text Utilities Overrides
   ==================================== */
.text-info {
    color: var(--info-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

/* Small Box Overrides (Dashboard) */
.small-box {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.small-box .icon {
    opacity: 0.2;
}

/* FullCalendar */
.fc-event {
    border-radius: 4px;
    border: none;
    padding: 2px 5px;
}

/* Compact Table Inputs for Trainers Management */
.table td .form-control.form-control-sm {
    height: 30px !important;
    padding: 2px 5px !important;
    font-size: 0.85rem !important;
    width: auto !important;
    display: inline-block;
}

.table td .btn-sm {
    padding: 2px 6px !important;
    font-size: 0.85rem !important;
    line-height: 1.5;
}

/* Fix select width specifically for start/end times */
.table td select.form-control-sm {
    min-width: 65px;
}

/* Ensure flex container works */
.table td .d-flex {
    gap: 5px;
    /* Modern browsers */
}