/* Modern Dental Clinic Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0f766e;
    --primary-hover: #0d9488;
    --primary-light: #ccfbf1;
    --secondary: #3b82f6;
    --dark-bg: #0f172a;
    --sidebar-bg: #1e293b;
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --accent-blue: #0284c7;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-lg: 16px;
    --radius-md: 12px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar Styling */
.wrapper {
    display: flex;
    min-height: 100vh;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--sidebar-bg);
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

#sidebar .sidebar-header {
    padding: 1.5rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#sidebar .sidebar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
}

#sidebar ul.components {
    padding: 1rem 0;
}

#sidebar ul li a {
    padding: 0.85rem 1.5rem;
    font-size: 0.925rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#sidebar ul li a:hover, #sidebar ul li a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--primary-hover);
}

#sidebar ul li a i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Page Content */
#content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar Styling */
.topbar {
    height: 70px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.topbar .search-input {
    width: 350px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    background: #f1f5f9;
}

/* Metric Stats Cards */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.teal { background: #ccfbf1; color: #0d9488; }
.stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-icon.purple { background: #f3e8ff; color: #7c3aed; }
.stat-icon.amber { background: #fef3c7; color: #d97706; }
.stat-icon.green { background: #d1fae5; color: #059669; }
.stat-icon.red { background: #fee2e2; color: #dc2626; }

/* Custom Timeline View */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-badge {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* Custom Table Styling */
.card-table {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table > :not(caption) > * > * {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.badge-status {
    padding: 0.4em 0.8em;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #f3f4f6; color: #4b5563; }
.badge-scheduled { background: #dbeafe; color: #1e40af; }
.badge-confirmed { background: #ccfbf1; color: #0f766e; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-noshow { background: #fef3c7; color: #92400e; }

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-rounded {
    border-radius: 30px;
}

/* Glassmorphism accent */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
