/* Error Card Styles */
.card-error {
    position: relative;
    padding: 8px;
    border: 1px solid #DC3545; /* Red border for error */
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(220, 53, 69, 0.2);
    overflow: hidden;
    text-align: left;
}

.card-error h2 {
    font-size: 24px;
    color: #DC3545; /* Red for error */
    margin: 0 0 6px;
    font-weight: 600;
}

.card-error-message {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

/* Decorative overlay */
.card-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ensure content is above overlay */
.card-error h2,
.card-error-message {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments for mobile (up to 768px) */
@media (max-width: 768px) {
    .card-error {
        width: 100%;
        max-width: 400px;
        padding: 16px; /* Doubled */
        margin: 8px 0;
    }

    .card-error h2 {
        font-size: 32px; /* Doubled */
        margin-bottom: 12px; /* Doubled */
    }

    .card-error-message {
        font-size: 24px; /* Doubled */
    }
}