/* Custom Styles for Blood Donor System */

.hero-section {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    margin-bottom: 2rem;
}

.card {
    border: none;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #b02a37;
    border-color: #b02a37;
    transform: scale(1.05);
}

.progress-bar {
    background-color: #dc3545;
    transition: width 0.5s ease;
}

.list-group-item {
    border: none;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #343a40 !important;
    padding-left: 30px;
}

.message-item {
    transition: all 0.3s ease;
}

.message-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Form styling */
.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Table styling */
.table thead th {
    background-color: #dc3545;
    color: white;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Post content styling */
.post-content {
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1rem;
}

/* Dashboard stats cards */
.card .card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

/* Animation for alerts */
.alert {
    animation: slideIn 0.5s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b02a37;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #dc3545;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Badge styling */
.badge {
    padding: 5px 10px;
    font-weight: 500;
}

/* Footer styling */
footer {
    margin-top: auto;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}