/* ========================================
   PMI SMART BLOOD - MODERN UI STYLES
   ======================================== */

:root {
    --pmi-red: #dc3545;
    --pmi-dark-red: #c82333;
    --pmi-light-red: #f8d7da;
    --pmi-gradient: linear-gradient(135deg, #dc3545 0%, #ff6b7a 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    position: relative;
    overflow: hidden;
}

.login-inner {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
}

/* Left: Welcome Side */
.login-welcome {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 20px 40px;
}

.welcome-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--pmi-gradient);
    top: -100px;
    right: -60px;
    animation: shapeFloat 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #667eea;
    bottom: -60px;
    left: -50px;
    animation: shapeFloat 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: var(--pmi-red);
    top: 50%;
    left: 10%;
    animation: shapeFloat 6s ease-in-out infinite 2s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.05); }
}

.welcome-content-left {
    position: relative;
    z-index: 1;
    max-width: 480px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.welcome-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    margin-bottom: 20px;
}

.welcome-logo svg {
    width: 32px;
    height: 32px;
    fill: var(--pmi-red);
    background: rgba(220, 53, 69, 0.15);
    padding: 5px;
    border-radius: 8px;
}

.welcome-logo span {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.welcome-photo-section {
    margin-bottom: 14px;
}

.welcome-photo-img {
    width: 130px;
    height: 165px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.welcome-title-left {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.welcome-subtitle-left {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.welcome-quote-left {
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 4px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border-left: 2px solid var(--pmi-red);
    text-align: left;
}

.welcome-author {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    margin-bottom: 0;
}

.welcome-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.welcome-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.welcome-stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.welcome-stat-icon svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.welcome-stat-icon.blood-icon { background: rgba(220, 53, 69, 0.6); }
.welcome-stat-icon.cal-icon { background: rgba(102, 126, 234, 0.6); }
.welcome-stat-icon.stock-icon { background: rgba(40, 167, 69, 0.6); }

.welcome-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.welcome-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

/* Right: Login Card */
.login-right {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    background: white;
    animation: fadeInRight 0.8s ease-out;
    overflow: hidden;
}

.login-card-right {
    width: 100%;
    max-width: 380px;
}

.login-header-right {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo-right {
    width: 48px;
    height: 48px;
    background: var(--pmi-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.login-logo-right svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.login-title-right {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.login-subtitle-right {
    font-size: 12px;
    color: #6c757d;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}

.login-form .form-control {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 13px 16px 13px 44px;
    font-size: 14px;
    transition: all 0.3s ease;
    height: auto;
}

.login-form .form-control:focus {
    border-color: var(--pmi-red);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    outline: none;
}

.login-form .input-icon {
    position: relative;
}

.login-form .input-icon::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.login-form .input-icon.username::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc3545'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.login-form .input-icon.password::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc3545'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.form-check .form-check-label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--pmi-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220, 53, 69, 0.4);
}

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

.login-footer-right {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.login-footer-right p {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

/* Login Animations */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Login Responsive */
@media (max-width: 992px) {
    .login-wrapper {
        height: auto;
        min-height: 100vh;
    }
    .login-inner {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: hidden;
    }
    .login-welcome {
        padding: 32px 24px;
    }
    .welcome-content-left {
        max-width: 100%;
    }
    .welcome-title-left {
        font-size: 26px;
    }
    .welcome-stats {
        flex-wrap: wrap;
    }
    .login-right {
        width: 100%;
        padding: 32px 24px;
    }
    .login-card-right {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .login-welcome {
        padding: 24px 16px;
    }
    .login-right {
        padding: 24px 16px;
    }
    .welcome-title-left {
        font-size: 22px;
    }
    .welcome-stats {
        flex-direction: column;
        align-items: center;
    }
    .welcome-stat-item {
        width: 100%;
        max-width: 240px;
    }
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */

.dashboard-wrapper {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-welcome {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.dashboard-date {
    color: #6c757d;
    font-size: 14px;
}

/* Summary Card */
.summary-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.summary-col {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
}

.summary-col .summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-col .summary-icon svg {
    width: 22px;
    height: 22px;
}

.summary-info {
    flex: 1;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.summary-label {
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
}

.summary-red {
    background: rgba(220, 53, 69, 0.08);
}
.summary-red .summary-icon {
    background: #dc3545;
}
.summary-red .summary-icon svg {
    fill: white;
}
.summary-red .summary-value {
    color: #dc3545;
}
.summary-red .summary-label {
    color: #dc3545;
}

.summary-blue {
    background: rgba(13, 110, 253, 0.08);
}
.summary-blue .summary-icon {
    background: #0d6efd;
}
.summary-blue .summary-icon svg {
    fill: white;
}
.summary-blue .summary-value {
    color: #0d6efd;
}
.summary-blue .summary-label {
    color: #0d6efd;
}

.summary-green {
    background: rgba(25, 135, 84, 0.08);
}
.summary-green .summary-icon {
    background: #198754;
}
.summary-green .summary-icon svg {
    fill: white;
}
.summary-green .summary-value {
    color: #198754;
}
.summary-green .summary-label {
    color: #198754;
}

.summary-orange {
    background: rgba(255, 193, 7, 0.1);
}
.summary-orange .summary-icon {
    background: #ffc107;
}
.summary-orange .summary-icon svg {
    fill: white;
}
.summary-orange .summary-value {
    color: #cc9a06;
}
.summary-orange .summary-label {
    color: #cc9a06;
}

@media (max-width: 992px) {
    .summary-card {
        padding: 14px 16px;
    }
    .summary-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .summary-col {
        padding: 10px 12px;
        gap: 10px;
    }
    .summary-col .summary-icon {
        width: 34px;
        height: 34px;
    }
    .summary-col .summary-icon svg {
        width: 17px;
        height: 17px;
    }
    .summary-value {
        font-size: 18px;
    }
    .summary-label {
        font-size: 11px;
    }
}

/* Welcome Card */
.welcome-card {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    text-align: left;
    animation: welcomeSlide 0.8s ease-out;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--pmi-gradient);
}

@keyframes welcomeSlide {
    0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-photo-wrap {
    flex-shrink: 0;
}

.welcome-img {
    width: 200px;
    height: 260px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: block;
}

.welcome-img-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pmi-red);
    text-align: center;
}

.welcome-text {
    flex: 1;
}

.welcome-greeting {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.welcome-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pmi-red);
    margin-bottom: 10px;
}

.welcome-desc {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 12px;
}

.welcome-desc strong {
    color: #495057;
}

.welcome-quote {
    font-size: 13px;
    font-style: italic;
    color: #495057;
    line-height: 1.6;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--pmi-red);
    text-align: left;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--pmi-gradient);
}

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

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.donor { background: rgba(220, 53, 69, 0.1); }
.stat-icon.event { background: rgba(102, 126, 234, 0.1); }
.stat-icon.stock { background: rgba(40, 167, 69, 0.1); }
.stat-icon.request { background: rgba(255, 193, 7, 0.1); }

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.donor svg { fill: var(--pmi-red); }
.stat-icon.event svg { fill: #667eea; }
.stat-icon.stock svg { fill: #28a745; }
.stat-icon.request svg { fill: #ffc107; }

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.stat-change {
    font-size: 12px;
    margin-top: 8px;
}

.stat-change.positive { color: #28a745; }
.stat-change.negative { color: var(--pmi-red); }

/* Module Cards */
.modules-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--pmi-gradient);
    border-radius: 2px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.module-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-icon.donor { background: var(--pmi-gradient); }
.module-icon.event { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.module-icon.stock { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.module-icon.request { background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%); }
.module-icon.doctor { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }
.module-icon.tools { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); }

.module-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.module-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.module-description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.module-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-module {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-module.secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e8e8e8;
}

.btn-module:hover {
    transform: translateY(-2px);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-quick {
    padding: 12px 20px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-quick:hover {
    border-color: var(--pmi-red);
    color: var(--pmi-red);
    transform: translateY(-2px);
}

.btn-quick svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Recent Activity */
.activity-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.success { background: rgba(40, 167, 69, 0.1); }
.activity-icon.warning { background: rgba(255, 193, 7, 0.1); }
.activity-icon.info { background: rgba(102, 126, 234, 0.1); }

.activity-icon svg {
    width: 20px;
    height: 20px;
}

.activity-icon.success svg { fill: #28a745; }
.activity-icon.warning svg { fill: #ffc107; }
.activity-icon.info svg { fill: #667eea; }

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #6c757d;
}

/* Navbar Modern */
.navbar-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar-brand-modern {
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
}

.navbar-brand-logo {
    width: 40px;
    height: 40px;
    background: var(--pmi-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand-logo svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.nav-link-modern {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link-modern:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link-modern.active {
    background: var(--pmi-gradient);
    color: white !important;
}

/* Footer */
.footer-modern {
    background: #f8f9fa;
    padding: 24px 0;
    margin-top: auto;
    border-top: 1px solid #e8e8e8;
}

.footer-text {
    color: #6c757d;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-welcome {
        font-size: 22px;
    }
}

/* Alert Modern */
.alert-modern {
    border: none;
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.alert-modern.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-modern.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-modern.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll Animation */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* ========================================
   SIDEBAR LAYOUT STYLES
   ======================================== */

.sidebar-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    background: var(--pmi-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-logo svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.sidebar-brand-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.sidebar-brand-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-top: 2px;
}

.sidebar-menu {
    padding: 12px 16px;
    flex: 1;
    overflow-y: auto;
}

.menu-section {
    margin-bottom: 24px;
}

.menu-section-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.menu-item {
    margin-bottom: 4px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(4px);
}

.menu-link.active {
    background: var(--pmi-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.menu-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.menu-badge {
    margin-left: auto;
    background: var(--pmi-red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Sidebar without footer - logout in header */

/* Cart Widget Styles */
.cart-widget {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.cart-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-title svg {
    width: 20px;
    height: 20px;
    fill: var(--pmi-red);
}

.cart-count {
    background: var(--pmi-gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.cart-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-icon.blood { background: rgba(220, 53, 69, 0.1); }
.cart-item-icon.event { background: rgba(102, 126, 234, 0.1); }
.cart-item-icon.urgent { background: rgba(255, 193, 7, 0.1); }

.cart-item-icon svg {
    width: 20px;
    height: 20px;
}

.cart-item-icon.blood svg { fill: var(--pmi-red); }
.cart-item-icon.event svg { fill: #667eea; }
.cart-item-icon.urgent svg { fill: #ffc107; }

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 12px;
    color: #6c757d;
}

.cart-item-action {
    flex-shrink: 0;
}

.btn-cart-action {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
}

.cart-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 14px;
    color: #6c757d;
}

.cart-total strong {
    color: var(--pmi-red);
    font-size: 18px;
}

.btn-view-all {
    padding: 8px 16px;
    background: var(--pmi-gradient);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Empty cart state */
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.cart-empty svg {
    width: 48px;
    height: 48px;
    fill: #e0e0e0;
    margin-bottom: 12px;
}

/* ========================================
   MODERN TABLE STYLES
   ======================================== */

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border: none;
    white-space: nowrap;
}

.table-modern thead th:first-child {
    border-radius: 8px 0 0 0;
}

.table-modern thead th:last-child {
    border-radius: 0 8px 0 0;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: rgba(220, 53, 69, 0.04);
    transform: scale(1.001);
}

.table-modern tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
    font-size: 14px;
    color: #333;
}

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

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-badge.success::before {
    background: #28a745;
}

.status-badge.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-badge.warning::before {
    background: #ffc107;
}

.status-badge.danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--pmi-red);
}

.status-badge.danger::before {
    background: var(--pmi-red);
}

.status-badge.info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.status-badge.info::before {
    background: #17a2b8;
}

.status-badge.secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-badge.secondary::before {
    background: #6c757d;
}

/* Blood Type Badges */
.blood-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.blood-type-badge.a { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); }
.blood-type-badge.b { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); }
.blood-type-badge.o { background: linear-gradient(135deg, #198754 0%, #146c43 100%); }
.blood-type-badge.ab { background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%); color: #333; }

/* Action Buttons in Table */
.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-table-action {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-table-action svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.btn-table-action.view {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.btn-table-action.view:hover {
    background: #0d6efd;
    color: white;
}

.btn-table-action.edit {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.btn-table-action.edit:hover {
    background: #ffc107;
    color: #333;
}

.btn-table-action.delete {
    background: rgba(220, 53, 69, 0.1);
    color: var(--pmi-red);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.btn-table-action.delete:hover {
    background: var(--pmi-red);
    color: white;
}

/* Table Card Wrapper */
.table-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-card-header {
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.table-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-card-title svg {
    width: 22px;
    height: 22px;
    fill: var(--pmi-red);
}

.table-card-body {
    padding: 0;
}

.table-responsive {
    overflow-x: auto;
}

/* Empty Table State */
.table-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.table-empty svg {
    width: 64px;
    height: 64px;
    fill: #e0e0e0;
    margin-bottom: 16px;
}

.table-empty h5 {
    color: #495057;
    margin-bottom: 8px;
}

/* Pagination Modern */
.pagination-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #e8e8e8;
}

.pagination-info {
    color: #6c757d;
    font-size: 13px;
}

.pagination .page-item .page-link {
    border: none;
    color: #495057;
    padding: 8px 14px;
    margin: 0 2px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background: var(--pmi-gradient);
    color: white;
}

.pagination .page-item .page-link:hover {
    background: #f8f9fa;
    color: var(--pmi-red);
}

/* Filter/Search Bar */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.table-search {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.table-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.table-search input:focus {
    border-color: var(--pmi-red);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    outline: none;
}

.table-search::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.table-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-filter:hover,
.btn-filter.active {
    border-color: var(--pmi-red);
    color: var(--pmi-red);
    background: rgba(220, 53, 69, 0.05);
}

.btn-filter svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    background: white;
    padding: 12px 24px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Notification Bell */
.header-notification {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #6c757d;
}

.header-notification:hover {
    background: #f0f0f0;
    color: var(--pmi-red);
}

.header-notification svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--pmi-red);
    border-radius: 50%;
    border: 2px solid white;
}

/* User Profile Dropdown */
.header-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.header-user-profile:hover {
    background: #f8f9fa;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    background: var(--pmi-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.user-name-small {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 13px;
}

.user-role-small {
    font-size: 11px;
    color: #6c757d;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    padding: 8px;
    display: none;
    z-index: 1000;
    border: 1px solid #e8e8e8;
}

.profile-dropdown-menu.show {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

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

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
    font-size: 14px;
}

.profile-dropdown-item:hover {
    background: #f8f9fa;
}

.profile-dropdown-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    color: #6c757d;
}

.profile-dropdown-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 8px 0;
}

.profile-dropdown-item.logout {
    color: var(--pmi-red);
}

.profile-dropdown-item.logout svg {
    color: var(--pmi-red);
}

.main-body {
    padding: 24px 32px;
    flex: 1;
}

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

/* Bottom Navigation for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e8e8e8;
    z-index: 1001;
    padding: 6px 0 env(safe-area-inset-bottom);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    text-decoration: none;
    color: #6c757d;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.bottom-nav-item.active {
    color: var(--pmi-red);
}

.bottom-nav-item:hover {
    color: var(--pmi-red);
}

@media (max-width: 992px) {
    .bottom-nav {
        display: flex;
    }

    .main-content {
        padding-bottom: 60px;
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-overlay.active {
        display: block;
        animation: overlayFade 0.3s ease;
    }

    @keyframes overlayFade {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
    
    .main-header {
        padding: 10px 14px;
    }
    
    .main-body {
        padding: 12px;
    }

    .main-header-title {
        font-size: 16px;
    }

    .module-card {
        padding: 18px;
    }

    .stat-card {
        padding: 18px;
    }

    .cart-widget {
        padding: 16px;
    }

    .welcome-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .welcome-img {
        width: 160px;
        height: 210px;
    }

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

    .btn-quick {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    .quick-actions {
        flex-direction: column;
    }

    .module-actions {
        flex-direction: column;
    }

    .module-actions .btn-module {
        width: 100%;
        justify-content: center;
    }

    .cart-items {
        max-height: 220px;
    }

    .header-right {
        gap: 6px;
    }

    .user-name-small,
    .user-role-small {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-body {
        padding: 10px;
    }

    .welcome-card {
        padding: 20px 16px;
    }

    .welcome-img {
        width: 140px;
        height: 180px;
    }

    .welcome-greeting {
        font-size: 17px;
    }

    .stat-value {
        font-size: 26px;
    }

    .summary-value {
        font-size: 20px;
    }

    .summary-col {
        padding: 12px 14px;
    }

    .section-title {
        font-size: 17px;
    }
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.sidebar-toggle:hover {
    background: #f0f0f0;
}

.sidebar-toggle svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

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

/* Submenu Styles */
.submenu {
    padding-left: 20px;
    margin-top: 4px;
}

.submenu .menu-link {
    font-size: 13px;
    padding: 8px 12px;
}

.menu-item.has-submenu > .menu-link::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    border: 4px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.menu-item.has-submenu.open > .menu-link::after {
    transform: translateY(-50%) rotate(0deg);
}

.menu-item.has-submenu > .menu-link {
    position: relative;
}


