body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f4f4f7;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
}

.logo {
    color: #003366;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.logo span {
    color: #7e020d;
}

.choice-container {
    display: flex;
    gap: 20px;
}

.choice-btn {
    background: white;
    border: none;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1.1rem;
    color: #003366;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 180px;
}

.choice-btn:hover {
    transform: translateY(-5px);
    background: #003366;
    color: white;
}

.screen {
    display: none;
    width: 100%;
    justify-content: center;
    padding: 20px 0;
}

.registration-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.registration-card h3 {
    margin: 0;
    color: #003366;
    text-align: center;
}

.input-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 12px;
}

.input-box i {
    color: #7e020d;
    width: 20px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.input-box input, .input-box select, .input-box textarea {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 13px;
}

.input-box textarea {
    height: 40px;
    resize: none;
}

.action-btn {
    background: #7e020d;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.action-btn:hover {
    background: #7e020d;
}

.back-link {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8rem;
}

.dashboard {
    max-width: 450px !important;
}

.user-info {
    text-align: center;
    padding: 20px 0;
}

.user-info i {
    font-size: 4rem;
    color: #7e020d;
}

.blood-badge {
    background: #7e020d;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.stat-item i { color: #003366; margin-bottom: 5px; }

.urgent-btn {
    background: #003366 !important;
}

.donor-list {
    text-align: left;
    margin-top: 15px;
}

.donor-card {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f1f1f1;
    margin-bottom: 5px;
    border-radius: 5px;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 5px solid #9b0b17; 
}

.donor-meta-info {
    display: flex;
    align-items: center;
    gap: 15px; 
    margin-top: 5px;
}

.badge {
    background: #7e020d;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease; 
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); 
}


.action-btn:hover {
    background-color: #040876; 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(16, 2, 120, 0.91); 
}


.action-btn:active {
    transform: scale(0.95); 
}


@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(129, 2, 12, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.action-btn {
    animation: pulse 2s infinite; 
}
.margin-bottom-15 {
    margin-bottom: 15px;
}

.urgent-form-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.form-row select, .form-row input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}


.donor-item {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 5px solid #930612;
}

.blood-type-tag {
    background: #87030e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.donor-actions button {
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    margin-left: 5px;
    cursor: pointer;
}

.call-btn { background: #028639; color: white; }
.msg-btn { background: #0776c0; color: white; }


.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08); 
    border-radius: 20px 20px 0 0; 
    z-index: 1000;
}


.nav-item {
    text-align: center;
    color: #a0a0a0;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-item i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}


.nav-item.active {
    color: #a20a17;
}

.nav-item.active i {
    transform: translateY(-5px); 
    color: #a90e1b;
    text-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}


.nav-item.active::after {
    content: '';
    width: 5px;
    height: 5px;
    background-color: #8f0a15;
    border-radius: 50%;
    margin-top: 2px;
}


.nav-item:active {
    transform: scale(0.9);
}


.section-title {
    color: #003366;
    margin-bottom: 20px;
}




.user-avatar {
    width: 50px;
    height: 50px;
    background: #71060f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}


#hospital-home-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

.scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 0 10px;
}

.scroll-btn {
    background: #f1f1f1;
    color: #9b0b17;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.scroll-btn:hover {
    background: #e0e0e0;
}

.donor-card-row {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 0 0 220px;
    margin: 0;
    box-sizing: border-box;
    width: 300px;
}

.donors-list-section{
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 20px;
    width: 30%;
    padding: 20px;
    scroll-behavior: smooth;
    align-items: flex-start;
    box-sizing: border-box;
    scrollbar-width: none;
}

.donors-list-section::-webkit-scrollbar {
    display: none;
    height: 6px;
}

.donors-list-section::-webkit-scrollbar-thumb {
    background: #9b0b17;
    border-radius: 10px;
}

.btns { display: flex; gap: 10px; }
.c-btn { background: #2ecc71; color: white; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.m-btn { background: #3498db; color: white; width: 35px; height: 35px; border-radius: 50%; border: none; }