/* ===================================
   PUBLIC PAGE FLEXBOX UTILITIES
   =================================== */

/* Page Header Layouts */
.page-header-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.page-header-content {
    flex: 1 1 500px;
}

.page-header-actions {
    flex: 0 0 auto;
    text-align: right;
}

/* Filter Forms */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filter-input {
    flex: 2 1 250px;
}

.filter-select {
    flex: 1 1 150px;
}

.filter-button {
    flex: 0 0 auto;
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-stat-card {
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 250px;
}

/* Footer Grid */
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1 1 calc(25% - 2rem);
    min-width: 200px;
    margin-bottom: 1rem;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.footer-info {
    flex: 0 0 auto;
}

.footer-social {
    flex: 0 0 auto;
}

/* Footer Credits (Developer Info) */
.footer-credits {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-credits p {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

.developer-link,
.phone-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.developer-link {
    color: var(--third-color);
    font-weight: 600;
}

.developer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.phone-link:hover {
    color: var(--third-color);
    text-decoration: underline;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-decoration: none;
    margin-right: var(--spacing-sm);
    transition: var(--transition-normal);
}

.social-link:last-child {
    margin-right: 0;
}

.social-link:hover {
    background: var(--third-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Two Column Layout */
.two-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.main-column {
    flex: 1 1 600px;
}

.side-column {
    flex: 1 1 350px;
}

/* Form Fields Two Column */
.form-fields-two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-field-half {
    flex: 1 1 250px;
}

/* Auth Centered Container */
.auth-centered {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.auth-container-wide {
    width: 100%;
    max-width: 600px;
}

/* Info Cards Grid (for session details) */
.info-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-card-item {
    flex: 1 1 calc(25% - 1rem);
    min-width: 150px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .dashboard-stat-card {
        flex: 1 1 calc(50% - 1.5rem);
    }

    .footer-column {
        flex: 1 1 calc(50% - 2rem);
    }

    .info-card-item {
        flex: 1 1 calc(50% - 1rem);
    }

    /* Features grid - 2 columns on tablet */
    .features-card-wrapper {
        flex: 1 1 calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .page-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header-actions {
        width: 100%;
        text-align: left;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-input,
    .filter-select {
        flex: 1 1 100%;
        width: 100%;
    }

    .dashboard-stat-card,
    .footer-column,
    .info-card-item,
    .form-field-half {
        flex: 1 1 100%;
    }

    .two-column-layout {
        flex-direction: column;
    }

    /* Features grid - 1 column on mobile */
    .features-card-wrapper {
        flex: 1 1 100%;
    }

    /* Footer Bottom Responsive */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-info,
    .footer-social {
        width: 100%;
    }

    .social-links {
        display: flex;
        justify-content: center;
    }
}
