:root {
    --primary: #3a86ff; /* Changed to a soft blue */
    --primary-light: #61a0ff;
    --primary-dark: #2667cc;
    --secondary: #f8f9fa;
    --dark: #2b2d42; /* Changed to a dark slate */
    --dark-secondary: #3d405b;
    --light: #ffffff;
    --border: #ddd;
    --success: #2a9d8f; /* Teal green */
    --warning: #e9c46a; /* Gold */
    --info: #4361ee; /* Blue */
    --danger: #e76f51; /* Coral */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e7e9ec 100%);
    background-attachment: fixed;
}




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

/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.login-container {
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    min-height: 100vh; /* Take full viewport height */
    width: 100%; /* Take full width */
    padding: 20px; /* Add some padding */
    background-image: linear-gradient(135deg, rgba(58, 134, 255, 0.1) 0%, rgba(231, 111, 81, 0.1) 100%); /* Subtle background */
}

.login-container .card {
    border: none; /* Remove default card border */
    border-radius: 15px; /* Match existing border-radius */
    overflow: hidden; /* Ensure header corners are rounded */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Stronger shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-container .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--light);
    padding: 25px 30px;
    text-align: center;
    border-bottom: none;
    margin-bottom: 20px; /* Space between header and body */
}

.login-container .card-header h3 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.login-container .card-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.login-container .card-body {
    padding: 30px;
}

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

.login-container .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--border);
}

.login-container .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.login-container .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 8px;
    background: var(--gradient-primary);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.login-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.4);
}

.login-container .btn-link {
    color: var(--primary);
    font-size: 0.95rem;
    text-decoration: none;
}

.login-container .btn-link:hover {
    text-decoration: underline;
}

/* Hamburger menu */
.hamburger-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    padding: 10px;
    z-index: 100;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background: #f8f9fa; /* Light background for minimalistic look */
    color: var(--dark);
    padding: 20px 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    transition: var(--transition);
    border-right: 1px solid #eaeaea;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.sidebar-header h2 {
    color: var(--dark);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: var(--text-shadow);
    margin-bottom: 10px;
}

.sidebar-header p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    font-style: italic;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    padding: 12px 25px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    color: var(--dark);
}

.nav-item i {
    width: 24px;
    text-align: center;
    color: var(--primary);
}

.nav-item:hover {
    background-color: rgba(58, 134, 255, 0.05);
    border-left: 4px solid var(--primary-light);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(58, 134, 255, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border-left: 4px solid var(--primary);
    font-weight: 600;
}
/* Main Content */
.main-content {
    flex: 1;
    padding: 25px;
    background-color: transparent;
    position: relative;
}

.main-content.full-width {
    margin-left: 0; /* Remove margin when sidebar is hidden */
    width: 100%; /* Take full width */
}

/* Header Styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    transition: var(--transition);
    border-left: 5px solid var(--danger);
}

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

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-bottom: 5px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
}

.user-role {
    font-size: 0.85rem;
    color: #666;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(142, 198, 235, 0.1);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border:1px dashed var(--danger);
    opacity: 0.5;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashboard-card:hover .card-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.card-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.card-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--text-shadow);
}

/* Table Container */
.table-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    margin-bottom: 30px;
    overflow-x: auto;
    transition: var(--transition);

}

.table-container:hover {
    box-shadow: var(--hover-shadow);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.table-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    position: relative;
    padding-bottom: 5px;
}

.table-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--info);
    border-radius: 2px;
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-btn {
    padding: 10px 18px;
    background: var(--info);
    color: var(--light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-btn:hover {
    background: #3652d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: wrap;
   
}

.data-table th {
    background-color: rgba(0,0,0,0.02);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--info);
    position: relative;
}

.data-table th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
   
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

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

.data-table tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
    transform: scale(1.01);
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.01);
}

/* Status badges */
.status {
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

.status-available {
    background-color: rgba(42, 157, 143, 0.15);
    color: var(--success);
    border: 1px solid rgba(42, 157, 143, 0.3);
}

.status-low {
    background-color: rgba(233, 196, 106, 0.15);
    color: var(--warning);
    border: 1px solid rgba(233, 196, 106, 0.3);
}

.status-critical {
    background-color: rgba(231, 111, 81, 0.15);
    color: var(--danger);
    border: 1px solid rgba(231, 111, 81, 0.3);
}

/* Buttons */
.btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e2e6ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #218380 100%);
    color: var(--light);
    box-shadow: 0 4px 10px rgba(42, 157, 143, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 157, 143, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #f4a261 100%);
    color: #664d03;
    box-shadow: 0 4px 10px rgba(233, 196, 106, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 196, 106, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #d62828 100%);
    color: var(--light);
    box-shadow: 0 4px 10px rgba(231, 111, 81, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 111, 81, 0.4);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* Form Container */
.form-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    margin-bottom: 30px;
    display: none;
    border-left: 5px solid var(--success);
    transition: var(--transition);
}

.form-container:hover {
    box-shadow: var(--hover-shadow);
}

.form-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--success);
    border-radius: 2px;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

/* Blood Inventory */
.blood-inventory {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.blood-type {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.blood-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

}

.blood-type:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.blood-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--danger);
    text-shadow: var(--text-shadow);
}

.blood-count {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 400;
}

.blood-status {
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
}

/* Tab Container */
.tab-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.tab-container:hover {
    box-shadow: var(--hover-shadow);
}

.tabs {
    display: flex;
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
    color: var(--dark);
    position: relative;
}

.tab:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.tab.active {
    background-color: var(--light);
    color: var(--primary);
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.tab-content {
    padding: 25px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section visibility */
#donor-section,
#inventory-section,
#requests-section,
#crossmatch-section,
#reports-section,
#transfusion-section,
#recipient-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

#dashboard-section {
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .hamburger-icon {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1000;
        background: var(--light);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar {
        display: none;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 900;
    }

    .sidebar.open {
        display: block;
        animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }

    .main-content {
        padding: 15px;
        margin-top: 60px; /* Space for fixed hamburger menu */
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .search-container {
        width: 100%;
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

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

    /* Data Tables Responsive */
    .table-container {
        padding: 15px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .data-table thead,
    .data-table tbody,
    .data-table tr,
    .data-table td,
    .data-table th {
        display: block;
    }

    .data-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .data-table tr {
        border: 1px solid #eee;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .data-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

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

    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        top: 50%;
        left: 15px;
        width: 45%;
        transform: translateY(-50%);
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--dark);
        text-align: left;
    }

    /* Action buttons in mobile view */
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons .btn {
        margin-bottom: 5px;
        width: 100%;
    }

    /* Form adjustments */
    .form-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 10px;
    }

    .form-group {
        min-width: auto;
    }

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

    .form-actions .btn {
        width: 100%;
    }

    /* Tab adjustments */
    .tab {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Add data attributes to cells for responsive view */
@media (max-width: 768px) {
    .data-table td:nth-of-type(1) { content: attr(data-label); }
    .data-table td:nth-of-type(1)::before { content: "Bag No."; }
    .data-table td:nth-of-type(2)::before { content: "Blood Group"; }
    .data-table td:nth-of-type(3)::before { content: "Component Type"; }
    .data-table td:nth-of-type(4)::before { content: "Collection Date"; }
    .data-table td:nth-of-type(5)::before { content: "Expiry Date"; }
    .data-table td:nth-of-type(6)::before { content: "Status"; }
    .data-table td:nth-of-type(7)::before { content: "Actions"; }
}

/* Custom Animated Elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading Animation */
.loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading div:nth-child(1) {
    left: 8px;
    animation: loading1 0.6s infinite;
}

.loading div:nth-child(2) {
    left: 8px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(3) {
    left: 32px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(4) {
    left: 56px;
    animation: loading3 0.6s infinite;
}

@keyframes loading1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loading2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* Blood Drop Animation for Blood Type Cards */
.blood-type::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-light);
    opacity: 0.1;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    z-index: -1;
}

/* Add glass morphism effect to cards */
.glass-effect {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Add nice scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* Print styles */
@media print {
    .sidebar, .header, .search-container, .action-buttons, .hamburger-icon {
        display: none !important;
    }
    
    .container {
        display: block;
    }
    
    .main-content {
        width: 100%;
        padding: 0;
    }
    
    .table-container, .dashboard-card, .blood-type {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .data-table th, .data-table td {
        padding: 8px;
    }
}

/* Custom File Input */
.file-input-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gradient-primary);
    color: var(--light);
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.file-input-container:hover .file-input-label {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4);
}

.file-name {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
}

/* Custom Radio Button */
.custom-radio {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
}

.radio-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
    transition: all 0.3s;
}

.custom-radio:hover input ~ .radio-mark {
    background-color: #ccc;
}

.custom-radio input:checked ~ .radio-mark {
    background-color: var(--primary);
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.custom-radio input:checked ~ .radio-mark:after {
    display: block;
}



.select2-container .select2-selection--single {
    height: calc(3rem + 2px);
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: .4rem;
}
/* Modern Flexbox Grid Alternative */
#component-input-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

/* Dynamic column sizing based on content */
#component-input-grid > div {
    flex: 1;
    min-width: 250px;
    max-width: calc(50% - 0.5rem);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    #component-input-grid > div {
        max-width: 100%;
        min-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    #component-input-grid > div {
        max-width: calc(50% - 0.5rem);
    }
}

@media (min-width: 1201px) {
    #component-input-grid > div {
        max-width: calc(33.333% - 0.67rem);
    }
}

/* Form styling to match your existing design */
.component-form-group {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.component-form-group:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.component-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.component-input-wrapper {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.component-prefix {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-right: 1px solid;
}

.component-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.component-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Bootstrap Grid System (if not already included) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Bootstrap Utilities */
.mb-3 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.text-danger {
    color: #dc3545;
}

.small {
    font-size: 0.875em;
}

/* Custom Radio Button Styles */
.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

.custom-radio .custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1rem;
    height: 1.25rem;
    opacity: 0;
}

.custom-radio .custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
}

.custom-radio .custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    background-color: #fff;
    border: 1px solid #adb5bd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: var(--primary);
    background-color: var(--primary);
}

.custom-radio .custom-control-label::after {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background: no-repeat 50%/50% 50%;
    transition: all 0.3s ease;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
    background-image: radial-gradient(circle, #fff 30%, transparent 30%);
}

/* Enhanced Radio Button Styling */
.custom-radio .custom-control-label {
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    background: #f8f9fa;
    margin-left: -1.5rem;
    padding-left: calc(1.5rem + 15px);
}

.custom-radio .custom-control-label:hover {
    border-color: var(--primary-light);
    background: rgba(58, 134, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-radio .custom-control-input:checked ~ .custom-control-label {
    border-color: var(--primary);
    background: rgba(58, 134, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

/* Component combo specific styling */
.component-combo-radio + .custom-control-label {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.component-combo-radio:checked + .custom-control-label {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1) 0%, rgba(58, 134, 255, 0.05) 100%);
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .col-md-6 {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .custom-radio .custom-control-label {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Main container with animated gradient background */
    .login-page {
        min-height: 100vh;
        background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
        background-size: 400% 400%;
        animation: gradientShift 15s ease infinite;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        padding: 2rem 0;
    }

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

    /* Floating particles background effect */
    .login-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
            radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
            radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
        background-size: 100px 100px, 50px 50px;
        animation: float 20s linear infinite;
        pointer-events: none;
    }

    @keyframes float {
        0% { transform: translate(0, 0); }
        100% { transform: translate(-100px, -100px); }
    }

    /* Glassmorphism card with enhanced styling */
    .login-card-custom {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 24px;
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.1);
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
        animation: slideUp 0.8s ease-out;
    }

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

    .login-card-custom:hover {
        transform: translateY(-5px);
        box-shadow: 
            0 35px 70px -12px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.15);
    }

    /* Enhanced branding panel with medical theme */
    .login-image-side {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem;
        text-align: center;
        overflow: hidden;
    }

    .login-image-side::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: repeating-conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            rgba(255, 255, 255, 0.03) 10deg,
            transparent 20deg
        );
        animation: rotate 30s linear infinite;
    }

    @keyframes rotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .brand-content {
        position: relative;
        z-index: 2;
        color: white;
    }

    .brand-icon {
        font-size: 5rem;
        margin-bottom: 2rem;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
        animation: heartbeat 2s ease-in-out infinite;
    }

    @keyframes heartbeat {
        0%, 100% { 
            transform: scale(1); 
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
        }
        50% { 
            transform: scale(1.05); 
            filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
        }
    }

    .brand-title {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        letter-spacing: -0.5px;
    }

    .brand-subtitle {
        font-size: 1.1rem;
        font-weight: 300;
        opacity: 0.9;
        line-height: 1.6;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Beautiful form styling */
    .login-form-side {
        padding: 4rem 3rem;
        background: rgba(255, 255, 255, 0.1);
    }

    .welcome-header {
        margin-bottom: 3rem;
        animation: fadeInUp 0.8s ease-out 0.2s both;
    }

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

    .welcome-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 0.5rem;
        letter-spacing: -1px;
    }

    .welcome-subtitle {
        color: #64748b;
        font-size: 1.1rem;
        font-weight: 400;
    }

    /* Enhanced input styling */
    .form-group {
        margin-bottom: 1.5rem;
        animation: fadeInUp 0.8s ease-out calc(0.4s + var(--delay, 0s)) both;
    }

    .input-group {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .input-group-text {
        background: linear-gradient(135deg, #f8fafc, #e2e8f0);
        border: 2px solid #e2e8f0;
        border-right: none;
        color: #64748b;
        font-size: 1.1rem;
        padding: 1rem;
        transition: all 0.3s ease;
    }

    .form-control {
        border: 2px solid #e2e8f0;
        border-left: none;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
    }

    .input-group:focus-within {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }

    .input-group:focus-within .input-group-text {
        border-color: #667eea;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
    }

    .input-group:focus-within .form-control {
        border-color: #667eea;
        background: white;
        box-shadow: none;
    }

    /* Error styling */
    .invalid-feedback {
        font-size: 0.875rem;
        color: #ef4444;
        font-weight: 500;
    }

    .form-control.is-invalid {
        border-color: #ef4444 !important;
    }

    .input-group:has(.is-invalid) .input-group-text {
        border-color: #ef4444 !important;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
    }

    /* Remember me and forgot password section */
    .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        animation: fadeInUp 0.8s ease-out 0.8s both;
    }

    .form-check {
        display: flex;
        align-items: center;
    }

    .form-check-input {
        width: 1.2rem;
        height: 1.2rem;
        margin-right: 0.5rem;
        border: 2px solid #d1d5db;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .form-check-input:checked {
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-color: #667eea;
    }

    .form-check-label {
        font-weight: 500;
        color: #374151;
        user-select: none;
        cursor: pointer;
    }

    .forgot-password {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
    }

    .forgot-password::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        transition: width 0.3s ease;
    }

    .forgot-password:hover {
        color: #5a67d8;
        transform: translateY(-1px);
    }

    .forgot-password:hover::after {
        width: 100%;
    }

    /* Stunning login button */
    .btn-login {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        border: none;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1.1rem;
        padding: 1rem 2rem;
        color: white;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        animation: fadeInUp 0.8s ease-out 1s both;
    }

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

    .btn-login:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px -5px rgba(102, 126, 234, 0.4);
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 50%, #ec4899 100%);
    }

    .btn-login:hover::before {
        left: 100%;
    }

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

    /* Sign up link */
    .signup-section {
        text-align: center;
        animation: fadeInUp 0.8s ease-out 1.2s both;
    }

    .signup-text {
        color: #64748b;
        font-weight: 400;
    }

    .signup-link {
        color: #667eea;
        text-decoration: none;
        font-weight: 700;
        transition: all 0.3s ease;
        position: relative;
    }

    .signup-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        transition: width 0.3s ease;
    }

    .signup-link:hover {
        color: #5a67d8;
        transform: translateY(-1px);
    }

    .signup-link:hover::after {
        width: 100%;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .login-card-custom {
            margin: 1rem;
            border-radius: 20px;
        }

        .login-form-side {
            padding: 2.5rem 2rem;
        }

        .welcome-title {
            font-size: 2rem;
        }

        .brand-title {
            font-size: 1.8rem;
        }

        .brand-icon {
            font-size: 4rem;
        }
    }

 
    /* 3. PAGE-SPECIFIC COMPONENTS ========================= */
    /* Page Header */
    .page-header h1 {
        font-weight: 700;
        color: var(--text-dark);
    }
    .page-header .text-muted {
        color: var(--text-light) !important;
    }

    /* Quick Action Cards */
    .quick-action-card .icon-wrapper {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.75rem;
        font-size: 1.25rem;
    }
    .quick-action-card .icon-wrapper.bg-primary { background-color: rgba(79, 70, 229, 0.1) !important; color: var(--primary-color) !important; }
    .quick-action-card .icon-wrapper.bg-success { background-color: rgba(16, 185, 129, 0.1) !important; color: var(--success-color) !important; }
    .quick-action-card .icon-wrapper.bg-warning { background-color: rgba(245, 158, 11, 0.1) !important; color: var(--warning-color) !important; }

    /* User Management Table Card */
    .user-table-card .card-header {
        background-color: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }
    .user-table-card .table {
        margin-bottom: 0;
    }
    .user-table-card thead th {
        background-color: var(--light-gray);
        border-bottom: none;
        color: var(--text-light);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 0.75rem;
        padding: 1rem 1.5rem;
    }
    .user-table-card tbody tr {
        transition: background-color 0.15s ease-in-out;
    }
    .user-table-card tbody tr:hover {
        background-color: #fcfcfd;
    }
    .user-table-card tbody td {
        padding: 1rem 1.5rem;
        vertical-align: middle;
    }
    .user-table-card tbody tr:last-child td {
        border-bottom: none;
    }

    /* Avatar Circle */
    .avatar-circle {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.875rem;
        text-transform: uppercase;
        flex-shrink: 0;
    }

    /* Role Badges */
    .badge.bg-info {
        background-color: rgba(59, 130, 246, 0.1) !important;
        color: #2563eb !important;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    /* Action Buttons */
    .action-buttons {
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }
    .user-row:hover .action-buttons {
        opacity: 1;
    }

    /* Empty State */
    .empty-state {
        padding: 4rem 2rem;
        text-align: center;
        color: var(--text-light);
    }
    .empty-state i {
        font-size: 4rem;
        opacity: 0.3;
        margin-bottom: 1.5rem;
    }

    /* Pagination Footer */
    .card-footer {
        background-color: var(--card-bg);
        border-top: 1px solid var(--border-color);
        padding: 1rem 1.5rem;
    }
    .pagination {
        margin-bottom: 0;
    }

    /* Delete Modal */
    #deleteUserModal .modal-content {
        border: none;
        border-radius: 0.75rem;
        box-shadow: var(--card-shadow-hover);
    }
    #deleteUserModal .modal-header {
        border-bottom: none;
        padding: 1.5rem 1.5rem 0;
    }
    #deleteUserModal .modal-body {
        padding: 0.5rem 1.5rem 1rem;
    }
    #deleteUserModal .modal-footer {
        border-top: none;
        padding: 0 1.5rem 1.5rem;
    }

/* Pagination Styling */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    padding: 10px 15px;
    display: block;
    color: var(--primary);
    background-color: var(--light);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-light);
    color: var(--light);
    border-color: var(--primary-light);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    color: var(--light);
    border-color: var(--primary);
    z-index: 1;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item:first-child .page-link {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 100px;
}

.data-table th:nth-child(5),
.data-table td:nth-child(5),
.data-table th:nth-child(6),
.data-table td:nth-child(6) {
    width: 120px;
}

/* .data-table th {
    white-space: normal;
    word-break: break-word;
} */



