/* activity-builder.css */

body {
    /* Allow normal scrolling */
    overflow: auto;
}

.activity-builder {
    display: flex;
    /* Remove fixed height to prevent scrolling issues */
    height: 100%;
    max-height: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.activity-builder-header {
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    padding: 0 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.activity-container {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

/* Navigation Footer */
.activity-navigation {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
}

/* Sidebar Styles */
.sidebar {
    width: 380px;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 3.5rem; /* 56px */
}

.sidebar-header {
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    padding: 0 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.activity-settings-container {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom sidebar toggle button */
.btn-sidebar-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.25rem;
}

.btn-sidebar-toggle:hover {
    color: #212529;
}

/* Collapsed sidebar styles */
.sidebar.collapsed .sidebar-header h5 {
    display: none;
}

.sidebar.collapsed .score-card {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0 0.5rem;
}

.sidebar.collapsed .activity-settings-container {
    display: none;
}

/* Mobile toggle button */
.sidebar-toggle {
    display: none;
}

/* Settings section styling */
.settings-section {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        right: 0;
        top: 0;
        height: 100%;
        z-index: 1030;
        transform: translateX(100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-toggle {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        z-index: 1020;
        width: 2.8rem; /* 45px */
        height: 2.8rem; /* 45px */
        border-radius: 50%;
        background-color: #0d6efd;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
        border: none;
    }
}