/* 
===================================================
    Altahera Medical Center - Modern UI CSS
===================================================
*/

:root {
    /* TRC Logo Color Palette */
    --primary: #661A57;
    /* Logo Main Plum/Purple */
    --primary-light: #8e307c;
    /* Lighter Purple */
    --primary-dark: #400d36;
    /* Deep dark purple */
    --secondary: #00d2ff;
    /* Tech Electric Blue Accent */
    --accent: #ff4757;
    /* Tech Red Warning/Error */
    --success: #2ed573;
    /* High-visibility green */
    --warning: #ffa502;
    /* Tech Yellow */
    --text-main: #2f3542;
    --text-muted: #747d8c;
    --bg-main: #f1f2f6;
    --bg-card: #ffffff;
    --border-color: #dfe4ea;

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    --sidebar-mobile-width: 280px;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(102, 26, 87, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(102, 26, 87, 0.1), 0 4px 6px -2px rgba(102, 26, 87, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(102, 26, 87, 0.15), 0 10px 10px -5px rgba(102, 26, 87, 0.04);
    --shadow-glow: 0 0 15px rgba(0, 210, 255, 0.4);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

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

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

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

.text-muted {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Screens View Management */
.view-screen {
    display: none;
    min-height: 100vh;
    width: 100vw;
}

.view-screen.active {
    display: flex;
    flex-direction: column;
}

.content-view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.content-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 213, 115, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
    }
}

@keyframes floatBackground {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-panel:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* -------------------------------------
   Login Screen
-------------------------------------- */
#login-screen {
    background: linear-gradient(-45deg, var(--primary-dark), var(--primary), #2c0b25, #11040f);
    background-size: 400% 400%;
    animation: floatBackground 15s ease infinite;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#login-screen.active {
    display: flex;
}

/* Background Decoration */
#login-screen::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 60%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    filter: blur(60px);
}

#login-screen::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(142, 48, 124, 0.2) 0%, transparent 60%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    filter: blur(40px);
}

.login-wrapper {
    z-index: 10;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-branding {
    text-align: center;
    margin-bottom: 2rem;
}

.login-branding h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-top: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-branding p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.trc-logo-login {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: fadeIn 1s ease;
}

.login-box {
    width: 100%;
    padding: 3rem;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 2.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg-main);
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 204, 0.1);
}

.role-cards {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.role-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.role-card:hover::before {
    left: 100%;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--secondary);
}

.role-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.role-card:hover i {
    color: var(--secondary);
    transform: scale(1.15) rotate(5deg);
}

.role-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.role-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* -------------------------------------
   App Shell Layout
-------------------------------------- */
#app-shell.active {
    display: flex;
    flex-direction: row;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sidebar-brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
}

.trc-logo-sidebar {
    width: 40px;
    height: auto;
}

.sidebar-brand h2 {
    font-size: 1.3rem;
    font-weight: 800;
}

.user-info {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    color: var(--secondary);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-role {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.user-branch {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-right: 4px solid transparent;
}

.nav-item:hover {
    background-color: var(--bg-main);
    color: var(--primary);
}

.nav-item.active {
    background-color: rgba(0, 115, 204, 0.05);
    color: var(--primary);
    border-right-color: var(--primary);
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-section-title {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-logout {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background: var(--accent);
    color: white;
}

.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    /* Accommodate fixed sidebar RTL */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    display: none;
    height: var(--header-height);
    background: var(--primary-dark);
    color: white;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-md);
}

.mobile-header .logo {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trc-logo-mobile {
    width: 30px;
    height: auto;
}

.mobile-nav-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.view-container {
    padding: 2rem;
    flex: 1;
}

@media (max-width: 992px) {
    #app-shell.active {
        flex-direction: column;
    }

    .main-content {
        margin-right: 0;
    }

    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.mobile-active {
        transform: translateX(0);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 95;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 576px) {
    .login-box {
        padding: 1.5rem;
    }

    .view-container {
        padding: 1rem;
    }
}

/* -------------------------------------
   Views Specific Styles
-------------------------------------- */
/* ── Data Tables ── */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Forces scroll on mobile */
    text-align: right;
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-main);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background-color: rgba(102, 26, 87, 0.03);
}

.data-table td {
    font-size: 0.95rem;
    color: var(--text-main);
    vertical-align: middle;
}

.view-header {
    margin-bottom: 2rem;
}

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

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.search-box {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-box i {
    color: var(--primary);
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    outline: none;
    color: var(--text-main);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.cards-grid>* {
    animation: fadeIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.cards-grid>*:nth-child(1) {
    animation-delay: 0.05s;
}

.cards-grid>*:nth-child(2) {
    animation-delay: 0.1s;
}

.cards-grid>*:nth-child(3) {
    animation-delay: 0.15s;
}

.cards-grid>*:nth-child(4) {
    animation-delay: 0.2s;
}

.cards-grid>*:nth-child(5) {
    animation-delay: 0.25s;
}

.cards-grid>*:nth-child(6) {
    animation-delay: 0.3s;
}

/* Test Card */
.test-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.disabled-card {
    opacity: 0.85;
    border: 1px solid var(--accent);
}

.disabled-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0.05);
    pointer-events: none;
}

.test-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.test-category {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
}

.cat-rad {
    background: rgba(0, 115, 204, 0.1);
    color: var(--primary);
}

.cat-lab {
    background: rgba(32, 201, 151, 0.1);
    color: var(--success);
}

.test-price {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.test-en-name {
    margin-bottom: 1rem;
    font-family: sans-serif;
    font-size: 0.9rem;
    direction: ltr;
    text-align: left;
}

.test-details p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.test-status {
    font-weight: 700;
    margin-top: 1rem;
}

.status-available {
    color: var(--success);
}

.status-unavailable {
    color: var(--accent);
}

.test-warning {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

/* Device Card */
.device-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.device-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 179, 166, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

.badge-success {
    background: rgba(46, 213, 115, 0.15);
    color: var(--success);
    border: 1px solid rgba(46, 213, 115, 0.3);
}

/* Pulsing dot for available status */
.badge-success i {
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}

.badge-warning {
    background: rgba(255, 165, 2, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.badge-danger {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.device-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.status-select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* Doctors Schedule Table */
.table-responsive {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(0, 77, 128, 0.05);
    color: var(--primary-dark);
    font-weight: 700;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.doc-name {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-name i {
    color: var(--secondary);
}

/* -------------------------------------
   Universal Modals
-------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.app-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.95);
    width: 90%;
    max-width: 500px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.app-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary);
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.form-group-modal {
    margin-bottom: 1.2rem;
}

.form-group-modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group-modal input,
.form-group-modal select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-group-modal input:focus,
.form-group-modal select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 26, 87, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-group input {
    width: auto;
    cursor: pointer;
}

/* =====================================================
   PREMIUM AI PORTAL LOGIN SCREEN
   ===================================================== */

/* Base */
#login-screen {
    background: #000;
    overflow: hidden;
    position: relative;
}

/* Only when active, set flex centering */
#login-screen.active {
    align-items: center;
    justify-content: center;
}

/* Particle canvas */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Hex Grid */
.hex-grid {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image:
        radial-gradient(circle, rgba(0, 255, 247, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    animation: hexPulse 8s ease-in-out infinite;
}

@keyframes hexPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* HUD Lines */
.hud-lines {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hud-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 247, 0.15), transparent);
    animation: lineScan 6s linear infinite;
}

.hud-line-h {
    width: 100%;
    height: 1px;
}

.hud-line-v {
    height: 100%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 247, 0.12), transparent);
}

@keyframes lineScan {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Light Rays */
.light-rays {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.ray {
    position: absolute;
    width: 2px;
    height: 200%;
    top: -50%;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 247, 0.12), transparent);
    animation: raySweep 12s ease-in-out infinite;
    transform-origin: center top;
}

.ray-1 {
    left: 30%;
    animation-delay: 0s;
}

.ray-2 {
    left: 60%;
    animation-delay: 4s;
}

.ray-3 {
    left: 80%;
    animation-delay: 8s;
}

@keyframes raySweep {
    0% {
        opacity: 0;
        transform: rotate(-20deg);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(20deg);
    }
}

/* Portal wrapper */
.ai-portal-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Portal State */
.portal-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-state.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Corner brackets for cyberpunk feel */
.corner-bracket {
    position: fixed;
    width: 40px;
    height: 40px;
    border-color: rgba(0, 255, 247, 0.4);
    border-style: solid;
    z-index: 3;
}

.corner-bracket.top-left {
    top: 20px;
    left: 20px;
    border-width: 2px 0 0 2px;
}

.corner-bracket.top-right {
    top: 20px;
    right: 20px;
    border-width: 2px 2px 0 0;
}

.corner-bracket.bottom-left {
    bottom: 20px;
    left: 20px;
    border-width: 0 0 2px 2px;
}

.corner-bracket.bottom-right {
    bottom: 20px;
    right: 20px;
    border-width: 0 2px 2px 0;
}

/* Portal Header Text */
.portal-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-align: right;
}

.portal-logo {
    height: 55px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 247, 0.5));
}

.portal-system-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(0, 255, 247, 0.6);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.portal-main-title {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 247, 0.5);
}

/* The Animated Portal Ring */
.portal-container {
    position: relative;
    width: clamp(220px, 30vw, 300px);
    height: clamp(220px, 30vw, 300px);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portal-container:hover {
    transform: scale(1.05);
}

.portal-container:hover .ring-outer {
    filter: drop-shadow(0 0 30px #00fff7);
}

.ring {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    border-color: transparent;
    inset: 0;
}

.ring-outer {
    inset: 0;
    border-width: 3px;
    border-top-color: #00fff7;
    border-right-color: rgba(0, 255, 247, 0.3);
    animation: spinCW 6s linear infinite;
    filter: drop-shadow(0 0 12px #00fff7);
}

.ring-mid {
    inset: 18px;
    border-width: 2px;
    border-bottom-color: rgba(0, 255, 247, 0.7);
    border-left-color: rgba(0, 255, 247, 0.2);
    animation: spinCCW 4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 255, 247, 0.6));
}

.ring-inner {
    inset: 36px;
    border-width: 1.5px;
    border-top-color: rgba(102, 26, 87, 0.9);
    border-right-color: rgba(102, 26, 87, 0.4);
    animation: spinCW 2.5s linear infinite;
    filter: drop-shadow(0 0 6px rgba(102, 26, 87, 0.7));
}

.ring-core {
    inset: 54px;
    border-width: 1px;
    border-bottom-color: rgba(0, 255, 247, 0.5);
    animation: spinCCW 3.5s linear infinite;
}

@keyframes spinCW {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinCCW {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Light streaks inside ring */
.streak {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    animation: streakAnim 3s ease-in-out infinite;
    pointer-events: none;
}

.streak::before {
    content: '';
    position: absolute;
    width: 40%;
    height: 2px;
    border-radius: 50%;
    top: 50%;
    left: 10%;
    background: linear-gradient(90deg, transparent, #00fff7);
    filter: blur(2px);
}

.streak-1 {
    animation-duration: 3s;
}

.streak-2 {
    animation-duration: 5s;
    animation-delay: 1.5s;
    transform: rotate(120deg);
}

@keyframes streakAnim {
    0% {
        transform: rotate(0deg);
        opacity: 0.6;
    }

    100% {
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

/* Center of portal */
.portal-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.portal-icon {
    font-size: 2.8rem;
    color: #00fff7;
    animation: iconPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px #00fff7);
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.portal-click-hint {
    font-size: 0.75rem;
    color: rgba(0, 255, 247, 0.5);
    letter-spacing: 1px;
    animation: hintFade 2.5s ease-in-out infinite;
}

@keyframes hintFade {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Glow reflection below ring */
.portal-glow-floor {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 255, 247, 0.25), transparent);
    filter: blur(6px);
    animation: iconPulse 2.5s ease-in-out infinite;
}

/* Status bar */
.portal-status-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(0, 255, 247, 0.6);
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00fff7;
    animation: dotBlink 1.2s ease-in-out infinite;
    box-shadow: 0 0 6px #00fff7;
}

@keyframes dotBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

/* ---- LOGIN PANEL ---- */
.login-panel {
    position: absolute;
    width: clamp(320px, 90vw, 430px);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.4);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-panel.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

/* Scan overlay */
.scan-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
}

.scan-overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00fff7, transparent);
    top: -10px;
    animation: scanLine 1.5s linear forwards;
    animation-play-state: paused;
    box-shadow: 0 0 10px #00fff7;
}

.scan-overlay.scanning::before {
    animation-play-state: running;
}

@keyframes scanLine {
    0% {
        top: -10px;
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

/* Panel inner */
.panel-inner {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 247, 0.25);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(0, 255, 247, 0.05),
        0 40px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(0, 255, 247, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Panel header */
.panel-logo-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.panel-sys-label {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(0, 255, 247, 0.5);
    font-family: 'Courier New', monospace;
}

.panel-title-ar {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-top: 3px;
}

.panel-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 247, 0.3), transparent);
    margin-top: 0.5rem;
}

/* Neon input fields */
.neon-field {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    right: 14px;
    color: rgba(0, 255, 247, 0.4);
    font-size: 0.9rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.neon-input {
    width: 100%;
    padding: 1rem 2.8rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 50, 80, 0.4);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    direction: rtl;
    box-shadow: 0 0 8px rgba(255, 50, 80, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.neon-input:focus {
    border-color: rgba(0, 255, 247, 0.7);
    box-shadow: 0 0 20px rgba(0, 255, 247, 0.2), inset 0 0 10px rgba(0, 255, 247, 0.03);
    background: rgba(0, 255, 247, 0.04);
}

.neon-input:focus~.field-icon {
    color: #00fff7;
}

.neon-input:focus~.neon-label,
.neon-input:not(:placeholder-shown)~.neon-label {
    top: -10px;
    font-size: 0.7rem;
    color: #00fff7;
    background: #000;
    padding: 0 6px;
}

.neon-label {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.25s ease;
    background: transparent;
    font-family: 'Tajawal', sans-serif;
}

.field-glow {
    position: absolute;
    inset: -1px;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 247, 0.2);
}

.neon-input:focus~.field-glow {
    opacity: 1;
}

/* Cyber Login Button */
.cyber-btn {
    position: relative;
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    color: #fff;
    font-size: 1.05rem;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}

.cyber-btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 247, 0.15), rgba(102, 26, 87, 0.4));
    border: 1px solid rgba(0, 255, 247, 0.4);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cyber-btn:hover .cyber-btn-bg {
    background: linear-gradient(135deg, rgba(0, 255, 247, 0.3), rgba(102, 26, 87, 0.7));
    border-color: rgba(0, 255, 247, 0.8);
}

.cyber-btn-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.cyber-btn-glow {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 247, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cyber-btn:hover .cyber-btn-glow {
    opacity: 1;
}

.cyber-btn:active {
    transform: scale(0.98);
}

/* Panel footer */
.panel-footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* Zoom in animation for portal click */
.portal-state.zoom-in {
    animation: portalZoomIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes portalZoomIn {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.3);
        opacity: 0;
    }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
    .portal-container {
        width: 200px;
        height: 200px;
    }

    .panel-inner {
        padding: 1.5rem;
    }

    .portal-header {
        flex-direction: column;
        text-align: center;
    }

    .corner-bracket {
        display: none;
    }
}

/* ─── Login Status Message ─── */
.login-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    text-align: center;
    animation: statusSlideIn 0.3s ease;
    transition: all 0.3s ease;
}

.login-status.hidden {
    display: none;
}

.login-status.loading {
    background: rgba(0, 255, 247, 0.08);
    border: 1px solid rgba(0, 255, 247, 0.3);
    color: #00fff7;
}

.login-status.error {
    background: rgba(255, 50, 80, 0.1);
    border: 1px solid rgba(255, 50, 80, 0.4);
    color: #ff5266;
}

.login-status.success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.4);
    color: #2ed573;
}

@keyframes statusSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* ── Weekly Calendar Grid & Toolbar ── */
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    background: var(--bg-card, #fff);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border, #e5e7eb);
    gap: 1rem;
    flex-wrap: wrap;
}

.cal-nav-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cal-week-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary, #661A57);
    min-width: 140px;
    text-align: center;
}

.cal-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-sidebar, #f9fafb);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border, #e5e7eb);
}

.cal-filter-group select {
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main, #111827);
    outline: none;
    cursor: pointer;
}

.weekly-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.cal-day-col {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    min-height: 150px;
    transition: box-shadow 0.2s;
}

.cal-day-col:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cal-day-col.cal-today {
    border-color: var(--primary, #661A57);
    box-shadow: 0 0 0 2px var(--primary, #661A57)33;
}

.cal-day-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-sidebar, #f8f5ff);
    border-bottom: 1px solid var(--border, #e5e7eb);
    flex-wrap: wrap;
}

.cal-today .cal-day-header {
    background: var(--primary, #661A57);
    color: #fff;
}

.cal-day-icon {
    font-size: 1rem;
}

.cal-day-name {
    font-weight: 700;
    font-size: 0.85rem;
    flex: 1;
}

.cal-today-badge {
    background: #fff3;
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 20px;
    border: 1px solid #fff6;
}

.cal-count {
    background: var(--primary, #661A57);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-today .cal-count {
    background: #fff3;
    border: 1px solid #fff6;
}

.cal-cards {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 80px;
}

.cal-doc-card {
    background: var(--bg-main, #f9fafb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    padding: 0.6rem;
    font-size: 0.78rem;
    transition: transform 0.15s;
}

.cal-doc-card:hover {
    transform: translateY(-1px);
}

.cal-doc-name {
    font-weight: 700;
    color: var(--primary, #661A57);
    margin-bottom: 2px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cal-doc-specialty {
    color: var(--text-muted, #6b7280);
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.cal-doc-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #374151;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.cal-doc-status {
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.cal-status-select {
    width: 100%;
    padding: 0.25rem 0.4rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 6px;
    font-size: 0.72rem;
    background: #fff;
    cursor: pointer;
}

.cal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 1rem 0.5rem;
    color: var(--text-muted, #9ca3af);
    font-size: 0.78rem;
    text-align: center;
}

.cal-empty i {
    font-size: 1.2rem;
    opacity: 0.4;
}

/* Responsive calendar & Toolbar */
@media (max-width: 1200px) {
    .weekly-calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .weekly-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cal-nav-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cal-filter-group {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .weekly-calendar-grid {
        grid-template-columns: 1fr;
    }

    .cal-nav-group .btn-icon {
        padding: 0.4rem;
    }

    .cal-week-label {
        font-size: 0.85rem;
        min-width: 110px;
    }

    .view-header.flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ── Day Detail Overlay ── */
.day-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

.day-detail-panel {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    width: 100%;
    max-width: 860px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.day-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary, #661A57), var(--secondary, #8B2E78));
    color: #fff;
}

.day-detail-header h3,
.day-detail-header p {
    color: #fff;
}

.day-detail-header .btn {
    background: #ffffff22;
    color: #fff;
    border: 1px solid #ffffff44;
}

.day-detail-header .btn:hover {
    background: #ffffff33;
}

.day-detail-filters {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-sidebar, #f9fafb);
    border-bottom: 1px solid var(--border, #e5e7eb);
    flex-wrap: wrap;
}

.day-filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    flex: 1;
    min-width: 160px;
}

.day-filter-group i {
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
}

.day-filter-group input,
.day-filter-group select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    width: 100%;
    font-family: inherit;
    color: var(--text-main, #111827);
}

.day-detail-cards {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
}

.day-doc-card {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 1rem;
    transition: box-shadow 0.15s;
    background: var(--bg-main, #f9fafb);
}

.day-doc-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.day-doc-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.day-doc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.day-doc-info {
    flex: 1;
}

.day-doc-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main, #111827);
    margin-bottom: 2px;
}

.day-doc-meta {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    margin-bottom: 3px;
}

.day-doc-time {
    font-size: 0.82rem;
    color: var(--text-main, #374151);
    display: flex;
    align-items: center;
    gap: 4px;
}

.day-doc-status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.day-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.day-status-select {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 6px;
    font-size: 0.78rem;
    background: #fff;
    cursor: pointer;
    min-width: 120px;
}

.day-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted, #9ca3af);
}

.day-no-results i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 0.75rem;
    display: block;
}

.day-no-results p {
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .day-detail-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .day-detail-panel {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
    }

    .day-doc-main {
        flex-wrap: wrap;
    }

    .day-doc-status-col {
        align-items: flex-start;
    }
}

/* --- Notifications & Reports --- */
.unread-notif {
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.15);
    /* using var(--accent) rgb roughly */
    border: 1px solid rgba(255, 71, 87, 0.2);
    animation: pulseNotif 2s infinite;
}

@keyframes pulseNotif {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
}