:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Logo Styling */
.navbar-logo {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.00);
}

.footer-logo {
    height: 100px;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.asheville-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

.navbar-logo, .footer-logo {
    background: rgba(255,255,255,0.85);
    padding: 6px;
    border-radius: 50%;
}

.navbar-logo-wrapper {
    background: rgba(0,0,0,0.1);
    padding: 4px 6px;
    border-radius: 4px;
}

.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.feature-box {
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cta-section {
    background-color: #f8f9fa;
    border-top: 5px solid #007bff;
    border-bottom: 5px solid #007bff;
}

.cta-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

footer {
    margin-top: auto;
    background-color: #212529;
}

a {
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Random Images Sidebar Styles */
.random-images-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.sidebar-title {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    font-size: 1rem;
}

.images-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.image-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sidebar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.random-image-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.random-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.parent-dashboard-actions {
    display: flex;
    flex-direction: row; /* force side-by-side on desktop */
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* prevent accidental wrapping */
}

    /* Keep logout form inline */
    .parent-dashboard-actions form {
        display: inline-block;
        margin: 0;
    }

    /* Only these buttons */
    .parent-dashboard-actions .btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }

    /* NAMESPACE: Only these two buttons */
    .parent-dashboard-actions .btn-outline-info {
        background-color: #0dcaf0; /* Bootstrap info color */
        color: #fff;
        border-color: #0dcaf0;
    }

        .parent-dashboard-actions .btn-outline-info:hover {
            background-color: #0bb8da;
            border-color: #0bb8da;
        }

    /* Logout button */
    .parent-dashboard-actions .btn-outline-danger {
        background-color: #dc3545; /* Bootstrap danger color */
        color: #fff;
        border-color: #dc3545;
    }

        .parent-dashboard-actions .btn-outline-danger:hover {
            background-color: #c82333;
            border-color: #c82333;
        }


/* Responsive adjustments */
@media (max-width: 991px) {
    .random-images-sidebar {
        position: static;
        margin-top: 30px;
    }

    .images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .random-images-sidebar {
        padding: 15px;
    }

    .parent-dashboard-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
    }

        .parent-dashboard-actions .btn {
            width: 100%;
            justify-content: center;
        }
}

@media (max-width: 480px) {
    .parent-dashboard-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: wrap; /* allow stacking */
        gap: 6px;
    }

        .parent-dashboard-actions .btn {
            width: 100%;
            justify-content: center;
        }
}
