@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* ─── Sidebar Base ─────────────────────────────────────────────────────────── */
#sidebar {
    transition: transform 0.25s ease, width 0.25s ease;
}

/* ─── Sidebar Dropdown Smooth Animation ────────────────────────────────────── */
.sidebar-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 0;
}
.sidebar-dropdown.open {
    max-height: 2000px;
    opacity: 1;
    overflow-y: auto;
}

/* ─── Sidebar Dropdown items smaller font ──────────────────────────────────── */
[id$="-dropdown"] a span {
    font-size: 12px;
}
[id$="-dropdown"] a {
    font-size: 12px;
}

/* ─── Mobile: sidebar hidden off-screen by default ────────────────────────── */
/* On mobile (< lg), sidebar starts as -translate-x-full (hidden)             */
/* toggleSidebar() removes that class to slide it in as overlay                */

/* Desktop (lg+): sidebar is always visible, no translate needed               */
@media (min-width: 1024px) {
    #sidebar {
        position: relative;
        transform: none !important;
        width: 16rem; /* w-64 */
    }

    /* Desktop collapsed state */
    #sidebar.sidebar-collapsed {
        width: 3.5rem;
    }
}

/* Mobile open state */
#sidebar.sidebar-mobile-open {
    transform: translateX(0) !important;
}

/* ─── Hide sidebar scrollbar (keep scroll functionality) ──────────────────── */
#sidebar nav::-webkit-scrollbar,
#sidebar .sidebar-dropdown.open::-webkit-scrollbar {
    display: none;
}
#sidebar nav,
#sidebar .sidebar-dropdown.open {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ─── Sidebar Collapsed (desktop only) ────────────────────────────────────── */
#sidebar.sidebar-collapsed .sidebar-label {
    display: none;
}

#sidebar.sidebar-collapsed .sidebar-logo {
    height: 2rem;
    width: 2rem;
    object-fit: cover;
    border-radius: 4px;
}

#sidebar.sidebar-collapsed nav a,
#sidebar.sidebar-collapsed nav button {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

#sidebar.sidebar-collapsed nav a i,
#sidebar.sidebar-collapsed nav button i:first-child {
    width: auto;
    font-size: 1rem;
    margin: 0 auto;
}

#sidebar.sidebar-collapsed .sidebar-dropdown {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
}

/* ─── Responsive Utilities ─────────────────────────────────────────────────── */

/* Scrollable tables on small screens */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Page content padding adjustments */
@media (max-width: 640px) {
    #main-content {
        padding: 0.75rem;
    }
}

/* Cards stack on mobile */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ─── Doctor Profile Hero Card ─────────────────────────────────────────────── */
.doc-profile-hero-card {
    background: #ffffff;
    border: 1px solid #f1ece8 !important;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
}
@media (min-width: 768px) {
    .doc-profile-hero-card {
        padding: 3rem;
    }
}

.doc-profile-photo-wrapper {
    width: 120px;
    height: 120px;
    background: #fee2e2;
    border: 3px solid #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.doc-profile-photo-placeholder {
    font-size: 60px;
}

.doc-profile-name {
    font-size: 28px;
}

.doc-profile-spec {
    font-size: 14px;
}

.doc-profile-branch {
    font-size: 13px;
}

/* Action Pills */
.doc-profile-action-pill-email,
.doc-profile-action-pill-phone {
    font-size: 12.5px;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
}

.doc-profile-action-pill-email {
    background: #e8eaf6;
}
.doc-profile-action-pill-email:hover {
    background: #c5cae9;
    transform: translateY(-1px);
}

.doc-profile-action-pill-phone {
    background: #ffebee;
}
.doc-profile-action-pill-phone:hover {
    background: #ffcdd2;
    transform: translateY(-1px);
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Meta Data */
.doc-profile-meta {
    font-size: 12px;
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.hover-text-danger:hover i,
.hover-text-danger:hover {
    color: #dc3545 !important;
}
