/* Components */

/* Main Content Area */
.main-content {
    padding-top: 20px; /* Add padding to avoid content hiding behind fixed navbar */
    padding-bottom: 60px; /* Space for footer */
    min-height: calc(100vh - 180px); /* Adjust based on header and footer height */
}

/* Back to top button styling */
.back-to-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1687ff, #0057b3be);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    z-index: 1000;
}

.back-to-top-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease-in-out;
}

.back-to-top-button.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.back-to-top-button:hover i {
    transform: scale(1.1);
}

.back-to-top-button:focus {
    outline: 3px solid var(--medium-light-blue);
    outline-offset: 2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Preview Notice Styles */
.preview-notice {
    background-color: #fffbea; 
    border: 1px solid #fceec4; 
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px; 
    margin-bottom: 20px; 
}

.preview-notice p {
    display: flex;
    align-items: center; 
    margin: 0; 
    gap: 12px; 
}

.preview-notice p .fas.fa-lightbulb {
    color: #f59e0b; 
    font-size: 1.3rem; 
    flex-shrink: 0; 
}

.preview-notice p span {
    flex-grow: 1; 
    line-height: 1.6; 
    font-size: 0.95rem; 
    color: #575757; 
}

.preview-notice p span strong {
    color: #333; 
}

.preview-notice p .btn.primary {
    flex-shrink: 0; 
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Progress Bar (can be used on various pages) */
.progress-bar-container {
    width: 100%;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin-bottom: 15px; /* Space below the progress bar */
    height: 20px; /* Define a height */
    overflow: hidden; /* Ensure inner bar doesn't overflow rounded corners */
}

.progress-bar {
    height: 100%; /* Fill container height */
    width: 0%; /* Initial width */
    background-color: var(--primary-color);
    border-radius: 5px; /* Match container's border radius */
    transition: width 0.5s ease-in-out;
    text-align: center; /* Center text if any */
    color: white; /* Text color for progress percentage */
    line-height: 20px; /* Vertically center text */
    font-size: 0.8rem;
}
