
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    --success-hover: #059669;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
}

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

body {
    height: 100vh;
   
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.88)), 
                url('hospital.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hidden {
    display: none !important;
}


.auth-wrapper {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1000px;
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
        overflow-y: auto;
        height: 90vh;
        padding: 20px;
    }
}

.glass-auth-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.brand-logo {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.brand-logo i {
    color: #ff4d6d;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.auth-subtitle {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.input-box {
    position: relative;
    margin-bottom: 1.2rem;
    text-align: left;
}

.input-box label {
    color: #e2e8f0;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    display: block;
}

.input-box input, .input-box select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.input-box input::placeholder {
    color: #cbd5e1;
}

.input-box input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

.btn-action-primary {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-action-primary:hover {
    filter: brightness(1.1);
}

/* ==================== MAIN DASHBOARD LAYOUT ==================== */
.portal-layout {
    width: 95%;
    height: 90vh;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.6s ease-out;
}

.sidebar {
    background: rgba(15, 23, 42, 0.6);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-menu {
    list-style: none;
    margin-top: 2rem;
}

.sidebar-menu li {
    margin-bottom: 0.8rem;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-menu li.active a, .sidebar-menu li a:hover {
    background: var(--primary);
    color: #fff;
}

.user-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-widget img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-widget h4 {
    color: #fff;
    font-size: 0.9rem;
}

.user-widget p {
    color: #94a3b8;
    font-size: 0.75rem;
}

.workspace {
    padding: 2.5rem;
    overflow-y: auto;
    color: #fff;
}

.workspace::-webkit-scrollbar { width: 6px; }
.workspace::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }

.ws-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ws-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}

.stat-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.stat-info p {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.glass-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glass-card label { color: #cbd5e1; }
.glass-card input, .glass-card select {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.glass-card select option { background: #1e293b; color: white; }

.search-container {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 15px;
    align-items: center;
    gap: 10px;
    width: 250px;
}

.search-container input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    font-size: 0.9rem;
}

.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
th { background: rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: #cbd5e1; }
td { font-size: 0.9rem; }

.status-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.action-btns-wrapper { display: flex; gap: 8px; }
.action-btn { background: none; border: none; cursor: pointer; font-size: 1rem; transition: transform 0.2s; }
.edit-btn { color: #60a5fa; }
.delete-btn { color: #f87171; }
.edit-btn:hover, .delete-btn:hover { transform: scale(1.2); }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
