/**
 * Modern Admin Panel Styles
 * shadcn/ui inspired design with Bootstrap 5
 */

:root {
    /* Colors */
    --primary: #0f172a;
    --primary-dark: #020617;
    --secondary: #64748b;
    --accent: #755048;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --muted: #f8fafc;
    --muted-foreground: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--muted);
    color: var(--primary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: var(--spacing-lg) 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--spacing-lg);
}

.sidebar-brand img {
    height: 40px;
    width: auto;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
    padding: 0 var(--spacing-md);
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--muted-foreground);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-nav li a i {
    width: 20px;
    margin-right: var(--spacing-sm);
    font-size: 1.1rem;
}

.sidebar-nav li a:hover {
    background: var(--muted);
    color: var(--primary);
}

.sidebar-nav li a.active {
    background: var(--accent);
    color: white;
}

.sidebar-nav .sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    padding: 1rem 1rem 0.25rem;
    margin-top: 0.5rem;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--muted);
}

/* Top Navbar */
.top-navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-md) var(--spacing-lg);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-brand-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.navbar-search {
    position: relative;
    max-width: 400px;
}

.navbar-search input {
    padding-left: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.navbar-search i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.navbar-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

.navbar-icon-btn:hover {
    background: var(--muted);
    color: var(--primary);
}

.navbar-icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.625rem;
    border-radius: 9px;
}

/* User Dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s;
}

.user-dropdown:hover {
    background: var(--muted);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Content Area */
.content-area {
    padding: var(--spacing-xl);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* Stat Cards */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s;
    height: 100%;
}

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

.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-card-info h6 {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.stat-card-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    margin-top: var(--spacing-xs);
}

.stat-card-trend.up {
    color: var(--success);
}

.stat-card-trend.down {
    color: var(--danger);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background: rgba(15, 23, 42, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* Cards */
.card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-modern .card-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-lg);
}

.card-modern .card-body {
    padding: var(--spacing-lg);
}

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

/* Modern Table */
.table-modern {
    width: 100%;
    margin: 0;
}

.table-modern thead {
    background: var(--muted);
}

.table-modern thead th {
    padding: var(--spacing-md);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    border: none;
}

.table-modern tbody td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover {
    background: var(--muted);
}

/* Badges */
.badge-modern {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-modern.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-modern.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-modern.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-modern.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* Buttons */
.btn-modern {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-modern:active {
    transform: translateY(0);
}

/* Small button variant for tables */
.btn-sm-modern {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
}

/* Button group for action buttons */
.btn-group-sm {
    gap: var(--spacing-xs);
}

.btn-group {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.btn-group .btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
}

.btn-modern-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-modern-primary:hover {
    background: #644038;
    border-color: #644038;
    color: white;
}

.btn-modern-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}

.btn-modern-secondary:hover {
    background: var(--muted);
}

.btn-modern-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}

.btn-modern-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-sm-modern {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* Forms */
.form-control-modern {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-control-modern:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(117, 80, 72, 0.1);
}

.form-label-modern {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

/* Search Bar */
.search-bar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.search-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(117, 80, 72, 0.1);
}

/* Filter Bar */
.filter-bar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-area {
        padding: var(--spacing-md);
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .navbar-search {
        display: none;
    }
}

/* Utilities */
.text-muted-modern {
    color: var(--muted-foreground);
}

.border-modern {
    border: 1px solid var(--border);
}

.shadow-modern-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-modern-md {
    box-shadow: var(--shadow-md);
}

.shadow-modern-lg {
    box-shadow: var(--shadow-lg);
}

/* Avatar Circle */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.avatar-circle.vip-avatar {
    background: linear-gradient(135deg, #f0c14b, #d4a634);
    color: #333;
    box-shadow: 0 2px 8px rgba(240, 193, 75, 0.3);
}

/* Modern Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--spacing-lg);
}

.nav-tabs .nav-link {
    color: var(--muted-foreground);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    background: var(--muted);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--accent);
    background: transparent;
    border-color: var(--accent);
}

.tab-content {
    animation: fadeIn 0.3s ease-in;
}

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

/* Input Groups */
.input-group-text {
    background: var(--muted);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: 1px solid var(--accent);
}

.input-group .btn-outline-secondary {
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    background: var(--muted);
}

.input-group .btn-outline-secondary:hover {
    background: var(--border);
    color: var(--primary);
}

/* Password Strength */
.progress {
    height: 5px;
    background: var(--muted);
}

.progress-bar {
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Alert Info */
.alert-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1px solid #7dd3fc;
    color: #0c4a6e;
}

.alert-info strong {
    color: #075985;
}

/* ============================================================
   Calendar View
   ============================================================ */

/* Navigation bar */
.cal-nav {
    background: var(--muted);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Day-of-week header */
.cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--muted);
    border-bottom: 1px solid var(--border);
}

.cal-grid-header > div {
    text-align: center;
    padding: 0.5rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Grid */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
    min-height: 82px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.35rem 0.45rem;
    cursor: pointer;
    transition: background 0.12s;
    position: relative;
    user-select: none;
}

.cal-cell:nth-child(7n) {
    border-right: none;
}

.cal-cell:hover {
    background: rgba(117, 80, 72, 0.04);
}

/* Faded days from prev/next month */
.cal-cell-other {
    opacity: 0.38;
}

/* Today highlight */
.cal-cell-today .cal-day-num {
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Selected day */
.cal-cell-selected {
    background: rgba(117, 80, 72, 0.07) !important;
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

/* Day number */
.cal-day-num {
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 3px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Appointment indicator dots */
.cal-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
    margin-top: 2px;
}

.cal-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cal-dot-warning  { background: var(--warning); }
.cal-dot-success  { background: var(--success); }
.cal-dot-info     { background: var(--info); }
.cal-dot-danger   { background: var(--danger); }
.cal-dot-secondary { background: var(--secondary); }

.cal-more {
    font-size: 0.65rem;
    color: var(--muted-foreground);
    font-weight: 600;
    line-height: 1;
}

/* ---- Day Detail Panel ---- */
.cal-day-panel {
    min-height: 450px;
    max-height: 600px;
    border-left: 1px solid var(--border);
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cal-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0.5rem;
    color: var(--muted-foreground);
    padding: 2rem 0;
}

.cal-panel-empty i {
    font-size: 2.2rem;
    opacity: 0.3;
}

.cal-panel-empty p {
    margin: 0;
    font-size: 0.875rem;
}

.cal-panel-date {
    font-weight: 600;
    font-size: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Individual appointment entry in panel */
.cal-apt-item {
    display: flex;
    gap: 0.7rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    border-left: 3px solid transparent;
    padding-left: 6px;
    transition: background 0.15s;
}

.cal-apt-item:last-child {
    border-bottom: none;
}

.cal-apt-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
}

.cal-apt-time {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 38px;
    padding-top: 2px;
    flex-shrink: 0;
}

.cal-apt-info {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.cal-apt-info small {
    display: block;
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.cal-apt-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

/* Tiny icon button */
.btn-xs-icon {
    background: none;
    border: 1px solid var(--border);
    padding: 2px 6px;
    cursor: pointer;
    color: var(--muted-foreground);
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    transition: color 0.12s, background 0.12s, border-color 0.12s;
    line-height: 1.5;
}

.btn-xs-icon:hover {
    color: var(--primary);
    background: var(--muted);
    border-color: var(--secondary);
}

.btn-xs-icon.text-success { color: var(--success); }
.btn-xs-icon.text-success:hover { background: rgba(16,185,129,0.1); border-color: var(--success); }

/* Responsive */
@media (max-width: 767px) {
    .cal-cell {
        min-height: 48px;
        padding: 0.2rem 0.25rem;
    }
    .cal-day-num {
        font-size: 0.72rem;
        width: 20px;
        height: 20px;
    }
    .cal-dot {
        width: 6px;
        height: 6px;
    }
    .cal-day-panel {
        border-left: none;
        border-top: 1px solid var(--border);
        min-height: 250px;
        max-height: none;
    }
    .cal-grid-header > div {
        font-size: 0.65rem;
        padding: 0.3rem 0;
    }
}

/* ====== Daily Hourly Schedule View ====== */
.daily-body {
    overflow-y: auto;
    max-height: 580px;
}

.daily-row {
    display: flex;
    min-height: 50px;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}

.daily-row:last-child { border-bottom: none; }

.daily-row.daily-row-half {
    min-height: 40px;
    background: rgba(0,0,0,0.01);
}

.daily-row:hover { background: var(--muted); }

.daily-time {
    width: 64px;
    min-width: 64px;
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    background: rgba(0,0,0,0.02);
    flex-shrink: 0;
    user-select: none;
}

.daily-time.daily-time-full {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--foreground);
    border-right: 2px solid var(--secondary);
    background: var(--muted);
}

.daily-slot {
    flex: 1;
    padding: 5px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: inherit;
}

.daily-apt-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ede8e6;
    border-radius: 12px;
    padding: 8px 12px 8px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    min-width: 220px;
    max-width: 340px;
}

.daily-apt-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.daily-apt-card.status-pending   { background: #fffbf5; }
.daily-apt-card.status-confirmed  { background: #f6fbf9; }
.daily-apt-card.status-completed  { background: #f0f8ff; }
.daily-apt-card.status-cancelled  { opacity: 0.55; }

.daily-apt-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
}

.daily-apt-body {
    flex: 1;
    min-width: 0;
}

.daily-apt-top {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}

.daily-apt-time {
    font-weight: 600;
    font-size: 0.74rem;
    color: #999;
    flex-shrink: 0;
    min-width: 36px;
}

.daily-apt-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.daily-apt-meta {
    font-size: 0.71rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.daily-apt-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.daily-apt-actions {
    display: flex;
    gap: 3px;
    align-items: center;
}

.daily-apt-actions .daa-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    color: #999;
}

.daily-apt-actions .daa-btn:hover { background: #f3f4f6; color: #374151; }
.daily-apt-actions .daa-btn.daa-approve:hover { background: #d1fae5; color: #059669; }
.daily-apt-actions .daa-btn.daa-edit:hover    { background: #dbeafe; color: #2563eb; }
.daily-apt-actions .daa-btn.daa-delete:hover  { background: #fee2e2; color: #dc2626; }

.daily-apt-badge {
    font-size: 0.66rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}

.daily-no-apts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0;
    color: var(--muted-foreground);
    gap: 0.5rem;
    width: 100%;
}

.daily-no-apts i { font-size: 2rem; opacity: 0.3; }
.daily-no-apts p { margin: 0; font-size: 0.875rem; }

@media (max-width: 767px) {
    .daily-time { width: 46px; min-width: 46px; font-size: 0.68rem; padding: 6px 5px; }
    .daily-apt-card { min-width: 120px; max-width: 260px; }
}
