/**
 * Alert Death Sahyog Suchi - Styles
 * Displays alerts in a professional card-based grid layout
 */

.alerts-container {
    max-width: 900px;
    margin: 0 auto;
}

.alerts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Alert Card Styles */
.alert-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0631f1 0%, #d3b200 100%);
}

.alert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #0631f1;
}

.alert-card:nth-child(1) { animation-delay: 0.1s; }
.alert-card:nth-child(2) { animation-delay: 0.2s; }
.alert-card:nth-child(3) { animation-delay: 0.3s; }
.alert-card:nth-child(4) { animation-delay: 0.4s; }
.alert-card:nth-child(5) { animation-delay: 0.5s; }

/* Alert Info */
.alert-info {
    margin-bottom: 1.2rem;
    flex: 1;
}

/* Alert Badge */
.alert-badge {
    display: inline-block;
    background: linear-gradient(32deg, #0631f1 0%, #d3b200 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.alert-badge i {
    margin-right: 0.3rem;
}

/* Alert Number */
.alert-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Alert Label */
.alert-label {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Alert Count */
.alert-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.alert-count i {
    color: #0631f1;
    font-size: 1.1rem;
}

/* View Details Button */
.view-details-btn {
    background: linear-gradient(32deg, #0631f1 0%, #d3b200 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(6, 49, 241, 0.3);
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 49, 241, 0.4);
    color: white;
    text-decoration: none;
}

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

/* No Alerts Message */
.no-alerts {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    border: 1px dashed #e0e0e0;
}

.no-alerts i {
    font-size: 3.5rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

.no-alerts h3 {
    color: #666;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-alerts p {
    color: #999;
    margin: 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .alerts-list {
        grid-template-columns: 1fr;
    }

    .alert-number {
        font-size: 1.5rem;
    }

    .view-details-btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .alerts-container {
        margin: 0 auto;
        padding: 0 1rem;
    }

    .alert-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .alert-number {
        font-size: 1.3rem;
    }

    .alert-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }
}
