/* assets/css/style.css */
/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-color: #f8f9ff;
    color: #0b1c30;
    min-height: 100vh;
}

.app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: #f8f9ff;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Utility classes for layout basics */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Login Page Styles */
.login-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    min-height: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .login-container {
        flex-direction: row;
    }
}

.login-image-side {
    display: none;
    position: relative;
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .login-image-side {
        display: block;
        width: 50%;
    }
}

.login-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.login-branding {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.login-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.login-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 9999px;
    padding: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-brand-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.login-description {
    font-size: 0.875rem;
    line-height: 1.625;
    font-weight: 500;
    color: #e2e8f0;
}

.login-form-side {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

@media (min-width: 768px) {
    .login-form-side {
        width: 50%;
        padding: 3rem;
    }
}

.login-mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .login-mobile-logo {
        display: none;
    }
}

.login-mobile-logo img {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #f1f5f9;
}

.login-mobile-logo span {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.25rem;
}

.login-title-wrapper {
    margin-bottom: 2rem;
    display: none;
}

@media (min-width: 768px) {
    .login-title-wrapper {
        display: block;
    }
}

.login-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #475569;
}

.error-alert {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-alert i {
    flex-shrink: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
}

.form-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1e293b;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #475569;
}

.btn-primary {
    width: 100%;
    background-color: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #4338ca;
}

/* Sidebar Styles */
.sidebar {
    width: 18rem;
    background-color: #0f172a;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 30;
    position: relative;
    border-right: 1px solid #1e293b;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    background-color: rgba(2, 6, 23, 0.4);
}

.sidebar-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

.sidebar-logo {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 0.025em;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.sidebar-brand-subtext {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-toggle-btn {
    color: #cbd5e1;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.8);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn:hover {
    color: #ffffff;
    background-color: #334155;
}

.sidebar-role-container {
    padding: 0.875rem 1.25rem;
    background-color: rgba(30, 41, 59, 0.4);
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-role-container:hover {
    background-color: rgba(30, 41, 59, 0.8);
}

.sidebar-role-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #94a3b8;
    text-transform: uppercase;
}

.sidebar-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.sidebar-role-badge.admin {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.sidebar-role-badge.dokter {
    background-color: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.sidebar-role-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.sidebar-role-dot.admin {
    background-color: #34d399;
}

.sidebar-role-dot.dokter {
    background-color: #fbbf24;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sidebar-menu-title {
    padding: 0 0.75rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    color: #94a3b8;
    text-decoration: none;
}

.sidebar-menu-item:hover {
    color: #ffffff;
    background-color: rgba(30, 41, 59, 0.7);
}

.sidebar-menu-item.active {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.sidebar-menu-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.sidebar-menu-item.active .sidebar-menu-icon {
    color: #ffffff;
}

.sidebar-menu-text {
    font-size: 0.875rem;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #f8f9ff;
}

/* Header Styles */
.top-header {
    height: 5rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 20;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-sidebar-toggle {
    display: none;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-sidebar-toggle:hover {
    background-color: #f1f5f9;
}

@media (max-width: 768px) {
    .mobile-sidebar-toggle {
        display: block;
    }
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-time {
    display: none;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

@media (min-width: 1024px) {
    .header-time {
        display: flex;
    }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
    border-left: 1px solid #e2e8f0;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.user-info {
    display: none;
    flex-direction: column;
}

@media (min-width: 640px) {
    .user-info {
        display: flex;
    }
}

.user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

.user-role {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: capitalize;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #ef4444;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s;
    text-decoration: none;
}

.logout-btn:hover {
    background-color: #fef2f2;
}

.main-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.sidebar.collapsed {
    width: 7rem;
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .sidebar-brand-subtext,
.sidebar.collapsed .sidebar-role-container,
.sidebar.collapsed .sidebar-menu-title,
.sidebar.collapsed .sidebar-menu-text {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 0;
    justify-content: center;
}

.sidebar.collapsed .sidebar-logo-wrapper {
    justify-content: center;
}

.sidebar.collapsed .sidebar-menu-item {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .sidebar-menu-icon {
    margin: 0;
}

/* Role Select Styles */
.role-select-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.25rem;
}

.btn-role-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-role-select:disabled {
    cursor: default;
}

.role-select-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.role-select-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.role-select-text {
    text-align: left;
}

.role-select-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.875rem;
}

.role-select-desc {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.role-select-badge {
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
}

/* Dashboard Components */
.welcome-banner {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(to right, #1d4ed8, #2563eb, #4338ca);
    color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(29, 78, 216, 0.15);
    padding: 0.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .welcome-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.welcome-decor-1 {
    position: absolute;
    right: -2.5rem;
    bottom: -2.5rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.welcome-decor-2 {
    position: absolute;
    right: 10rem;
    top: -2.5rem;
    width: 12rem;
    height: 12rem;
    background-color: rgba(96, 165, 250, 0.2);
    border-radius: 50%;
    filter: blur(24px);
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #dbeafe;
    width: max-content;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0;
}

@media (min-width: 768px) {
    .welcome-title {
        font-size: 1.875rem;
    }
}

.welcome-desc {
    color: #dbeafe;
    font-size: 0.875rem;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .welcome-desc {
        font-size: 1rem;
    }
}

.welcome-actions {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-light:hover {
    background-color: #eff6ff;
    transform: translateY(-2px);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    background-color: rgba(30, 64, 175, 0.6);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-glass:hover {
    background-color: rgba(30, 64, 175, 0.9);
    transform: translateY(-2px);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stat-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background-color: #eff6ff;
    color: #2563eb;
}

.stat-icon.indigo {
    background-color: #eef2ff;
    color: #4f46e5;
}

.stat-icon.amber {
    background-color: #fffbeb;
    color: #d97706;
}

.stat-icon.emerald {
    background-color: #ecfdf5;
    color: #059669;
}

.stat-body {
    margin-top: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1e293b;
}

.stat-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid;
}

.stat-badge.amber {
    background-color: #fffbeb;
    color: #d97706;
    border-color: rgba(253, 230, 138, 0.6);
}

.stat-desc {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0;
}

/* Layout & Panels */
.dashboard-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-col-2 {
        grid-column: span 2 / span 2;
    }
}

.panel {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.panel-header {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-desc {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.panel-body {
    padding: 1.25rem;
}

.panel-body.empty-state {
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
}

.empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    opacity: 0.5;
}

.panel-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.panel-link:hover {
    text-decoration: underline;
}

/* Quick Action Links */
.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.quick-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.7);
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}

.quick-action-item:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.quick-action-item.emerald:hover {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.quick-action-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-action-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: rgba(219, 234, 254, 0.7);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.quick-action-item:hover .quick-action-icon {
    transform: scale(1.05);
}

.quick-action-item.emerald .quick-action-icon {
    background-color: rgba(209, 250, 229, 0.7);
    color: #059669;
}

.quick-action-text {
    text-align: left;
}

.quick-action-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
}

.quick-action-desc {
    font-size: 0.6875rem;
    color: #94a3b8;
}

.quick-action-arrow {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.quick-action-item:hover .quick-action-arrow {
    color: #2563eb;
}

.quick-action-item.emerald:hover .quick-action-arrow {
    color: #059669;
}

/* Queue List & Pagination */
.queue-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.queue-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

@media (min-width: 1024px) {

    /* Previously queue-item became row here, but for grid we keep it column */
    .queue-item {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .queue-actions-wrap {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed rgba(226, 232, 240, 0.8);
        padding-top: 0.75rem;
        margin-top: 0.5rem;
    }
}

.queue-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: #f8fafc;
}

.queue-info-wrap {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.queue-number-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    height: 4rem;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    color: #475569;
    padding: 0.25rem;
}

.queue-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

.queue-reg-id {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-top: 0.25rem;
    color: #94a3b8;
}

.queue-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    justify-content: center;
}

.queue-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.queue-rm {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
}

.queue-type-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background-color: #f1f5f9;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.queue-patient-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .queue-actions-wrap {
        align-items: flex-end;
    }
}

.queue-status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-status.waiting {
    background-color: #f1f5f9;
    color: #475569;
}

.badge-status.waiting .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #94a3b8;
}

.badge-status.success {
    background-color: #ecfdf5;
    color: #059669;
}

.badge-status.success .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #10b981;
}

.queue-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-outline:hover {
    background-color: #f1f5f9;
}

.btn-outline-primary {
    background-color: #eff6ff;
    color: #2563eb;
}

.btn-outline-primary:hover {
    background-color: #dbeafe;
}

.btn-outline-danger {
    background-color: #fef2f2;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background-color: #fee2e2;
}

/* Pagination & Search */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.pagination-info {
    font-size: 0.75rem;
    color: #64748b;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}

.page-btn:hover:not(.disabled) {
    background-color: #f1f5f9;
}

.page-btn.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 2.75rem;
    padding-left: 2.5rem;
    padding-right: 1rem;
    border-radius: 0.75rem;
    background-color: #f1f5f9;
    border: 1px solid transparent;
    font-size: 0.875rem;
    color: #1e293b;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8;
}

/* Tables, Modals, Forms */
.table-container {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    color: #334155;
}

.data-table tr:hover {
    background-color: #f8fafc;
}

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

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-backdrop.hidden {
    display: none;
}

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 28rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: modalIn 0.2s ease-out forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.form-col-2 {
    grid-column: span 2 / span 2;
}

.form-col-3 {
    grid-column: span 3 / span 3;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: -2.5rem;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-breadcrumb-active {
    color: #2563eb;
}

.page-header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .page-header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.page-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Page Hero Banner */
.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .page-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 2rem;
    }
}

.page-hero-decor {
    position: absolute;
    right: 0;
    top: 0;
    margin-top: -1.5rem;
    margin-right: -1.5rem;
    width: 24rem;
    height: 24rem;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 50%;
    filter: blur(24px);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 10;
}

.page-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.page-hero-tag span.badge {
    padding: 0.25rem 0.5rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-hero-tag span.dot {
    color: #94a3b8;
    font-size: 0.75rem;
}

.page-hero-tag span.text {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

.page-hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

.page-hero-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    max-width: 48rem;
    line-height: 1.5;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 1rem;
    align-self: flex-start;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-metrics {
        align-self: auto;
    }
}

.metric-pill {
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}

.metric-value-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.metric-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
}

.metric-number.tertiary {
    color: #059669;
}

.metric-unit {
    font-size: 0.875rem;
    color: #64748b;
}

/* Enhanced Form Panel */
.bento-panel {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: -1rem;
}

.bento-header {
    padding: 0.5rem 2rem;
    background-color: #f8fafc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.bento-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bento-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.bento-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.bento-reg-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.bento-reg-icon {
    color: #2563eb;
}

.bento-reg-text {
    display: flex;
    flex-direction: column;
}

.bento-reg-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.bento-reg-val {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.025em;
}

.bento-body {
    display: flex;
    flex-direction: column;
}

.bento-actions {
    /* padding-top: 1.5rem; */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    /* gap: 1rem; */
    background-color: #f8fafc;
    padding: 0.5rem;
    border-radius: 0.5rem;
    /* margin-top: 0.5rem; */
}

/* Enhanced Select/Input Fields */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.field-label-icon {
    color: #2563eb;
    width: 1rem;
    height: 1rem;
}

.field-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.field-link:hover {
    text-decoration: underline;
}

.field-input-wrap {
    position: relative;
}

.field-input {
    width: 100%;
    height: 2.75rem;
    padding-left: 1rem;
    padding-right: 2.5rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    appearance: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.field-input:focus {
    outline: none;
    background-color: #f8fafc;
    border-color: #bfdbfe;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field-select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}