/* ========== LAYOUT STYLES ========== */
/* Grid system, containers, and main layout structure */

/* ========== Main Layout Structure ========== */
.row-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: calc(100vh - 80px);
    /* Ensure this creates actual scrollable content */
    position: relative;
}

/* ========== Main Content Spacing ========== */
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    /* Ensure main has enough height for sticky to work */
    min-height: 100vh;
}

/* ========== Content Areas ========== */
.col-12 {
    flex: 1;
    max-width: 100%;
    padding: 0 20px;
    width: 100%;
}

/* ========== Cards ========== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--light-color);
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px !important;
}

/* ========== Loading & Overlays ========== */
.loading-overlay, #loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========== Alert Container ========== */
#alert-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

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

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

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

.animate-slide-in {
    animation: slideIn 0.5s ease;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}