@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-font-family: 'Montserrat', sans-serif;
    /* --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --tertiary-color: #555555; */
    --primary-color: #f27c1e;
    --secondary-color: #f8a86f;
    --tertiary-color: #f89c4c;
    --primary-text-color: #ffffff;
    --secondary-text-color: #333;
    --primary-brand-color: #653217;
    --primary-background-color: #fafbfe;
    --active-hover-color: rgba(255, 255, 255, .075);
}

/* ==========================================================
Base Styles
========================================================== */
::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--primary-font-family);
}
a {
    text-decoration: none;
}
li {
    list-style: none;
}
h1 {
    font-weight: 600;
    font-size: 1.5rem;
}
p {
    font-size: 15px;
}
footer {
    background-color: var(--primary-background-color);
}
.main input[type="search"]::-webkit-search-cancel-button {
    /* For WebKit browsers (Chrome, Safari) */
    -webkit-appearance: none;
    appearance: none;
}
.main input[type="search"]::-ms-clear {
    /* For Internet Explorer/Edge (older) */
    display: none;
    width: 0;
    height: 0;
}
/* ==========================================================
Main UI
========================================================== */
.btn-close:focus, .navbar-toggler:focus, .form-select:focus {
    box-shadow: none;
}
.btn-main-theme {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    border: none;
    transition: all 0.15s ease;
}
.btn-main-theme:hover {
    background: linear-gradient(135deg, var(--tertiary-color), var(--tertiary-color));
    transform: translateY(-0.8px);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}
.text-main-theme {
    color: var(--primary-color);
}
.text-main-theme-underline {
    color: var(--primary-color);
}
.text-main-theme-underline:hover {
    text-decoration: underline;
}
.form-input:focus, .form-control:focus, .comment-form:focus, .login-form-input:focus { /* <-- Add this line */
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(242, 124, 30, 0.1);
}
.show-more-btn {
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 5px;
}
.save-button {
    color: var(--primary-color);
    background-color: var(--primary-background-color);
    border-radius: 7px;
    border: solid 1px var(--primary-color);
    padding: 5px 6px 5px 6px;
}
.three-dots-button {
    background-color: var(--primary-background-color);
    border: none;
}
/* Modern FAB Menu Styles (dropup) */
.modern-fab-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 8px;
    min-width: 220px;
}
.modern-fab-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: none !important;
    margin-bottom: 4px;
}
.modern-fab-item:hover {
    transform: translateX(4px);
}
.fab-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.2s ease;
}
.create-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
}
.create-icon i {
    color: white;
}
.fab-item-content {
    flex: 1;
}
.fab-item-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}
.fab-item-subtitle {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}
.modern-fab-item:active,
.modern-fab-item:focus {
    background-color: transparent !important;
    color: inherit !important;
}
.btn-check:checked + .btn-outline-secondary {
    color: var(--primary-text-color) !important;
}
/* ==========================================================
Summernote
========================================================== */
.note-editor .dropdown-menu {
    z-index: 1060 !important;
}
.note-editor .note-modal {
    z-index: 1070 !important;
}
.note-editor .note-modal-backdrop {
    z-index: 1065 !important;
}
.note-popover {
    z-index: 1060 !important;
}
/* Ensure dropdowns appear above other elements */
.note-editor .note-toolbar .dropdown-menu {
    display: none;
    position: absolute;
}
.note-editor .note-toolbar .dropdown-menu.show {
    display: block;
}
/* Fix Summernote lists visibility */
.note-editor .note-editable ul,
.note-editor .note-editable ol {
    padding-left: 40px !important;
    margin: 10px 0 !important;
}
.note-editor .note-editable ul li {
    list-style-type: disc !important;
    display: list-item !important;
    margin-left: 0 !important;
}
.note-editor .note-editable ol li {
    list-style-type: decimal !important;
    display: list-item !important;
    margin-left: 0 !important;
}
.note-editor .note-editable ul ul li {
    list-style-type: circle !important;
}
.note-editor .note-editable ul ul ul li {
    list-style-type: square !important;
}
/* Ensure proper spacing for nested lists */
.note-editor .note-editable ul ul,
.note-editor .note-editable ol ol,
.note-editor .note-editable ul ol,
.note-editor .note-editable ol ul {
    margin: 5px 0 !important;
}
/* Apply theme font to Summernote */
.note-editor,
.note-editor .note-editable {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}
/* ==========================================================
Sidebar Navigation (Kiri)
========================================================== */
#sidebar {
    width: 70px;
    min-width: 70px;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: var(--primary-color);
}
#sidebar.expand {
    width: 260px;
    min-width: 260px;
}
#toggle-btn {
    cursor: pointer;
    padding: 1rem 1.5rem;
}
.sidebar-logo {
    margin: auto 0;
}
#sidebar:not(.expand) .sidebar-logo, 
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}
.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}
a.sidebar-link {
    padding: .625rem 1.625rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}
.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}
a.sidebar-link:hover {
    background-color: var(--active-hover-color);
    border-left: 3px solid var(--primary-text-color);
}
#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: var(--secondary-color);
    padding: 0;
    min-width: 15rem;
    display: none;
}
#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}
#sidebar.expand .sidebar-link [data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}
#sidebar.expand .sidebar-link [data-bs-toggle="collapse"].collapsed:after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}
.sidebar-footer {
    margin-top: auto;
    padding: 1rem 0;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease-in-out, visibility .25s ease-in-out;
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sidebar-nav-button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
/* ==========================================================
Top Navigation
========================================================== */
.top-nav {
    background-color: var(--primary-background-color);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.top-nav .btn-outline-dark {
    border: 1.5px solid #6c757d;
    color: #495057;
    transition: all 0.3s ease;
}
.top-nav .btn-outline-dark:hover {
    background-color: #495057;
    border-color: #495057;
    color: var(--primary-text-color);
    transform: translateY(-1px);
}
/* ==========================================================
Main Content Area
========================================================== */
.main.sidebar-expanded {
    pointer-events: none;
}
.main:not(.sidebar-expanded) {
    pointer-events: auto;
}
.main {
    transition: all 0.35s ease-in-out;
    background-color: var(--primary-background-color);
    margin-left: 70px;
    transition: margin-left .25s ease-in-out;
}
.main h1 {
    font-family: var(--brand-font-family);
    color: var(--primary-brand-color);
}
.content-start {
    margin-top: 90px;
}
/* ==========================================================
Swiper (Carousel) Styling
========================================================== */
.swiper-slide {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.swiper-slide > * {
    position: relative;
    z-index: 2;
}
.slide-1, .slide-2, .slide-3, .slide-4, .slide-5 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* 2nd type of swiper */
.swiper-image {
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.swiper-slide:hover .swiper-image {
    transform: scale(1.05);
}
/* Custom navigation */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    transition: all 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    color: var(--primary-text-color);
}
/* Custom pagination */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    background: var(--secondary-color);
    transform: scale(1.3);
}
.swiper-dark-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}
/* ==========================================================
index.php
========================================================== */
.topCarousel img {
    height: 300px;
}
.recipe-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Ensure the save button is on top of the overlay */
.recipe-card {
    z-index: 2;
}
.recipe-card:hover {
    box-shadow: 0 4px 12.5px rgba(0,0,0,0.15) !important;
}
.recipe-card:hover .img-overlay-wrapper::after {
    opacity: 1;
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}
.save-recipe-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.save-recipe-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}
.save-recipe-btn.saved {
    background: rgba(220, 53, 69, 0.9);
    color: var(--primary-text-color);
}
.save-recipe-btn {
    z-index: 2;
}
.author-img {
    width: 30px;
    height: 30px;
}
.role-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
}
.img-overlay-wrapper {
    position: relative;
    overflow: hidden; /* Ensures the overlay's corners are rounded */
    border-top-left-radius: var(--bs-border-radius-xl); /* Matches the card's rounded corners */
    border-top-right-radius: var(--bs-border-radius-xl);
}
.img-overlay-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.0)); /* Gradient from bottom */
    opacity: 0.8; /* Set a default subtle darkness */
    transition: opacity 0.3s ease;
    z-index: 1; /* Place overlay above the image */
}
/* ==========================================================
login.php
========================================================== */
.login-form-container {
    display: none;
}
.login-form-container.active {
    display: block;
}
.login-header {
    padding: 30px 20px 10px;
    border-bottom: 1px solid #f0f0f0;
}
.login-body {
    padding: 30px;
}
.login-form-row .login-form-group {
    flex: 1;
}
.form-label {
    color: var(--secondary-text-color);
}
.login-form-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background: #fafafa;
}
.forgot-password a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.forgot-password a:hover {
    color: var(--tertiary-color);
}
.login-form-footer {
    border-top: 1px solid #f0f0f0;
    color: #666;
}
.login-form-footer a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.login-form-footer a:hover {
    color: var(--tertiary-color);
}
.password-input-group {
    position: relative;
}
.password-input-group .password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}
.form-input.with-toggle {
    padding-right: 2.5rem !important;
}
/* Password strength indicator styles */
.password-criteria {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}
.password-criteria li {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}
.password-criteria li i {
    margin-right: 8px;
    font-size: 1rem;
}
.password-criteria li.valid {
    color: #28a745;
}
.password-criteria li.valid i {
    color: #28a745;
}
.password-criteria li.invalid {
    color: #dc3545;
}
.password-criteria li.invalid i {
    color: #dc3545;
}
/* ==========================================================
content.php
========================================================== */
.box-below-desc {
    background-color: var(--primary-color);
}
.box-below-desc:hover {
    background-color: var(--secondary-color);
    cursor: pointer;
}
.send-message-button {
    transform: rotate(45deg);
}
.btn-like {
    background: #f0f0f0;
    border: none;
    transition: all 0.15s ease;
}
.btn-like:hover {
    transform: translateY(-1px);
    background: #f0f0f0;
    border: none;
}
/* Custom Alert Modal Styles */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.custom-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}
.custom-alert-box {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
}
.custom-alert-overlay.active .custom-alert-box {
    transform: translateY(0);
}
.custom-alert-box h5 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: #333;
}
.custom-alert-box p {
    margin-bottom: 20px;
    color: #555;
}
.custom-alert-box button {
    background-color: #007bff;
    color: var(--primary-text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}
.custom-alert-box.alert-success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.custom-alert-box.alert-success button { background-color: #28a745; }
.custom-alert-box.alert-danger { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.custom-alert-box.alert-danger button { background-color: #dc3545; }
.custom-alert-box.alert-warning { background-color: #fff3cd; color: #856404; border-color: #ffeeba; }
.custom-alert-box.alert-warning button { background-color: #ffc107; }
.custom-alert-box.alert-info { background-color: #d1ecf1; color: #0c5460; border-color: #bee5eb; }
.custom-alert-box.alert-info button { background-color: #17a2b8; }

/* ==========================================================
categories.php
========================================================== */
.btn-category {
    border-bottom: 1px solid #666;
    cursor: pointer;
    top: -15px;
    white-space: nowrap;
}
.btn-category-active {
    border-bottom: 2px solid var(--primary-color);
}
@media (max-width: 768px) {
    .search-boxes {
        height: auto;
        min-height: 120px;
    }
    .search-boxes-img {
        width: 100px !important;
    }
}
.search-boxes {
    background-color: #ffffff;
}
.search-boxes:hover {
    background-color: #f0f0f0;
}
.search-related {
    background-color: #ECECEC;
}
.search-related:hover {
    background-color: #F5F5F5;
}
.text-overlay {
    z-index: 1;
}
.spaced-text {
    letter-spacing: 0.1em;
}
/* ==========================================================
search-results.php
========================================================== */
.search-popular-logo {
    color: var(--primary-color);
    top: -2px;
}
.search-box {
    transition: box-shadow 0.3s ease;
}
.search-box:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.search-desc {
    display: -webkit-box; 
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}
.search-save-btn:hover {
    color: var(--primary-color);
}
.btn-search-latest {
    border-bottom: 2px solid var(--primary-color);
    cursor: pointer;
    top: -15px;
}
/* ==========================================================
write-recipes.php
========================================================== */
.recipe-form {
    max-width: 650px;
}
.recipe-input, .recipe-textarea {
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.2s ease;
    background-color: #fafafa;
}
.recipe-input:focus, .recipe-textarea:focus {
    border-color: var(--primary-color);
    background-color: white;
}
.upload-placeholder {
    border: 2px dashed #dee2e6;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 10%);
}
.upload-placeholder:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffe0c1 0%, var(--secondary-color) 100%);    
}
.photo-preview {
    max-height: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ingredients-title, .steps-title {
    color: var(--tertiary-color);
}
.btn-ingredients-steps {
    color: var(--tertiary-color);
    border: 2px solid var(--tertiary-color);
}
.btn-ingredients-steps:hover {
    color: var(--primary-text-color);
    background: var(--tertiary-color);
}
.ingredient-item, .step-item {
    background: #f8f9fa;
    border-left: 4px solid var(--tertiary-color);
    transition: all 0.2s ease;
}
.ingredient-item:hover, .step-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}
.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255,193,7,0.3);
}
.step-textarea {
    min-height: 80px;
    resize: vertical;
}
.step-photo-placeholder {
    border: 1px dashed #dee2e6;
    padding: 12px 16px;
    cursor: pointer;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.9em;
    transition: all 0.2s ease;
}
.step-photo-placeholder:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffe0c1 0%, var(--secondary-color) 100%);
    color: #856404;
}
.step-photo-preview {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.form-actions {
    padding: 30px 0;
    border-top: 2px solid #f8f9fa;
}
.btn-write-action {
    transition: all 0.2s ease;
}
.btn-write-action:hover {
    transform: translateY(-1px);
}
/* Styles for the photo viewer modal */
.photo-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050; /* Above Bootstrap modals */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.photo-viewer-modal.active {
    opacity: 1;
    visibility: visible;
}
.photo-viewer-modal-content {
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    position: relative;
}
.photo-viewer-modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure image fits without cropping */
    display: block;
}
.photo-viewer-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1060;
    background: none;
    border: none;
}
/* Make recipe photo preview clickable */
.photo-preview {
    cursor: pointer;
}
/* Make step photo preview clickable */
.step-photo-preview {
    cursor: pointer;
}
/* Enhanced dropdown styling */
.category-dropdown .dropdown-menu {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0;
    margin-top: 8px;
}
/* Target all checked Bootstrap checkboxes */
.form-check-input:checked {
    background-color: var(--primary-color); /* Example: Bootstrap's orange */
    border-color: var(--primary-color);
}
/* Optional: Improve checkbox hover */
.form-check-input:hover {
    cursor: pointer;
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25); /* subtle orange glow */
}
/* Search input styling */
.category-search {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    z-index: 10;
}
.category-search .form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
}
.category-search .form-control:focus {
    border-color: var(--primary-color);
}
/* Category options list styling */
.category-options-container {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
}
.category-option {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}
.category-option-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 2px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.category-option-content:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}
.category-option-content.selected {
    background-color: var(--bs-warning-bg-subtle) !important;
    color: var(--bs-warning-text-emphasis) !important;
}
.category-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #fd7e14;
}
.category-icon {
    margin-right: 8px;
    color: #6c757d;
    font-size: 1rem;
}
.category-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    margin: 0;
    cursor: pointer;
}
/* Selected tags styling */
.selected-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.category-tag {
    background-color: var(--bs-warning-bg-subtle) !important;
    color: var(--bs-warning-text-emphasis) !important;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.category-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}
.tag-remove-btn {
    background-color: var(--bs-warning-bg-subtle) !important;
    border: none;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 12px;
    transition: background-color 0.2s ease;
}
.tag-remove-btn:hover {
    background: rgba(0,0,0,0.4);
}
/* Dropdown button styling */
.category-dropdown-btn {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 12px 16px;
    background: white;
    transition: all 0.2s ease;
    min-height: 44px; /* Reduced from 48px to align better */
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.category-dropdown-btn:hover {
    border-color: #fd7e14;
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.1);
}
.category-dropdown-btn:focus {
    border-color: #fd7e14;
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}
.dropdown-toggle::after {
    color: #6c757d;
}
.no-categories {
    color: #6c757d;
}
/* Scrollbar styling */
.category-options-container::-webkit-scrollbar {
    width: 6px;
}
.category-options-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.category-options-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
.category-options-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
/* Style for step photo preview container */
.step-photo-upload {
    position: relative; /* Needed for absolute positioning of delete button */
}
/* Positioning for the delete button on step photos (fixed) */
.delete-step-photo-btn {
    position: absolute;
    top: 8px; 
    right: 5px;
    z-index: 5;
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    transition: background-color 0.2s ease;
    width: 28px; 
    height: 28px; 
    z-index: 5;
}
.delete-step-photo-btn:hover {
    background-color: rgba(220, 53, 69, 1);
}
/* Drag and Drop styles */
.draggable-item {
    cursor: grab;
    transition: transform 0.2s ease-in-out;
}
.draggable-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}
.draggable-item.drag-over {
    border: 2px dashed #fd7e14; /* Orange dashed border for drag over */
    background-color: rgba(253, 126, 20, 0.1); /* Light orange background */
}
/* ==========================================================
account_settings.php
========================================================== */
/* Custom CSS for the eye icon in the input group */
.input-group .password-toggle-btn.input-group-text {
    cursor: pointer;
    background-color: #e9ecef; /* Default Bootstrap input-group-text background */
    border-color: #ced4da; /* Default Bootstrap border color */
    padding: 0.375rem 0.75rem; /* Match default form-control padding */
    line-height: 1.5; /* Match default form-control line-height */
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    box-shadow: none !important; /* Removes the blue focus box-shadow */
    outline: none !important;   /* Removes the default outline */
}
.input-group .password-toggle-btn.input-group-text:hover {
    background-color: #e2e6ea; /* Slightly darker on hover */
}
.input-group .password-toggle-btn.input-group-text:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Focus ring from Bootstrap */
}
/* Styles for location autocomplete */
.autocomplete-container {
    position: relative;
}
.autocomplete-suggestions {
    position: absolute;
    border: 1px solid #ced4da;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000; /* Ensure it's above other content */
    width: 100%;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none; /* Hidden by default */
}
.autocomplete-suggestions div {
    padding: 8px 12px;
    cursor: pointer;
}
.autocomplete-suggestions div:hover {
    background-color: #e9ecef;
}
/* Style for invalid input */
.form-control.is-invalid + .autocomplete-suggestions {
     border-color: #dc3545; /* Red border for consistency */
}
/* Password strength indicator styles */
.password-criteria {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem; /* Ensure some space from the input */
}
.password-criteria li {
    font-size: 0.875rem;
    color: #6c757d; /* Muted text */
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}
.password-criteria li i {
    margin-right: 8px;
    font-size: 1rem;
}
.password-criteria li.valid {
    color: #28a745; /* Green for valid */
}
.password-criteria li.valid i {
    color: #28a745;
}
.password-criteria li.invalid {
    color: #dc3545; /* Red for invalid */
}
.password-criteria li.invalid i {
    color: #dc3545;
}
/* Custom responsive button styles */
.btn-responsive-full-width {
    width: 100%; /* Default to full width on mobile */
}
@media (min-width: 768px) { /* Medium devices (tablets, 768px and up) */
    .btn-responsive-full-width {
        width: auto; /* Revert to auto width on desktop */
    }
}
/* Styles for profile photo action buttons (Change Photo, Remove Photo) */
.profile-photo-actions {
    display: flex;
    flex-direction: row; /* Always display side-by-side */
    flex-wrap: wrap; /* Allow wrapping if space is insufficient */
    gap: 0.5rem; /* Space between buttons */
    justify-content: center; /* Center buttons horizontally */
    width: 100%; /* Take full width for centering */
    margin: 0 auto; /* Center the container */
}
.profile-photo-actions .btn {
    flex-grow: 0; /* Do NOT allow buttons to grow to fill space */
    width: auto; /* Let buttons size based on content */
    max-width: 150px; /* Limit max width for photo action buttons */
}
/* Adjust button width within forms for responsiveness */
.form-actions {
    display: flex;
    flex-direction: column; /* Stack on small screens */
    gap: 0.75rem; /* Space between buttons */
}
.form-actions .btn {
    width: 100%; /* Full width on small screens */
}
@media (min-width: 768px) { /* Medium devices (tabAccount Settingslets, 768px and up) */
    .form-actions {
        flex-direction: row; /* Side-by-side on larger screens */
        justify-content: flex-end; /* Align to end on larger screens */
    }
    .form-actions .btn {
        width: auto; /* Auto width on larger screens */
        flex-grow: 0; /* Do not grow to fill space */
    }
}
/* Adjust modal footer buttons */
.modal-footer {
    display: flex;
    flex-direction: column; /* Stack buttons in footer on small screens */
    align-items: stretch; /* Stretch buttons to full width */
    gap: 0.5rem; /* Space when stacked */
}
.modal-footer .btn {
    width: 100%; /* Default to full width */
}
@media (min-width: 576px) { /* Small devices (landscape phones, 576px and up) */
    .modal-footer {
        flex-direction: row; /* Side-by-side on larger phones */
        justify-content: flex-end; /* Align to end */
        gap: 0.5rem; /* Space between them */
    }
    .modal-footer .btn {
        width: auto; /* Auto width */
        margin-bottom: 0; /* Remove bottom margin */
    }
}
/* ==========================================================
about.php
========================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}
.hero-section, .cta-section, .card-header-contact, .card-header-faq {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
}
.hero-section::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>');
    background-size: cover;
    z-index: 1;
}
.hero-content {
    z-index: 2;
}
.mission-card {
    background: var(--primary-color);
}
.feature-card {
    cursor: default;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}
.btn-about:hover {
    color: var(--primary-text-color);
}
.team-card img {
    transition: transform 0.3s ease;
}
.team-card:hover img {
    transform: scale(1.05);
}
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}
.social-links a {
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #007bff !important;
}
.image-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.story-image:hover .image-overlay {
    opacity: 1;
}
.z-index-2 {
    z-index: 2;
}
#user-guide, #frequently-asked-questions {
    scroll-margin-top: 105px;
}