/* Desktop */
@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.35);
    }

    /* Hide the mobile navbar on desktop devices */
    .mobile-nav {
        display: none;
    }

    /* Hide the mobile settings on desktop devices */
    #mobile-settings-wrapper {
        display: none
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Hide the desktop navbar on mobile devices */
    .desktop-nav {
        display: none;
    }

    /* Mobile Nav styling */
    .mobile-nav {
        display: flex;
        position: fixed;
        justify-content: space-between;

        bottom: 0;
        left: 0;
        right: 0;

        /* Keep on top */
        z-index: 1050; 

        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.35);
    }

    .mobile-nav-item {
        width: 19%;
        text-align: center;
        text-decoration: none;
        color: var(--bs-secondary);
    }

    .mobile-nav-item:hover {
        color: white;
    }

    .mobile-nav-item i {
        font-size: 1.7rem;
        margin-top: 2px;
    }

    .mobile-nav-item small {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.7rem;
        margin-top: 2px;
    }

    /* wrapper handles toggling settings panel & backdrop visibility */
    #mobile-settings-wrapper {
        position: fixed;
        inset: 0;

        /* keep on top (but below nav) */
        z-index: 1040; 

        /* Hidden off screen */
        transform: translateX(100%); 
        transition: transform 0.3s ease;
    }

    /* When visible */
    #mobile-settings-wrapper.open {
        transform: translateX(0);
    }

    #mobile-settings-panel {
        position: absolute;
        top: 0;
        right: 0;
        
        width: 80vw;
        height: 100%;

        background-color: var(--bs-body-bg);
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3);

        padding: 1rem;

        /* prevent content being hidden behind mobile navbar */
        padding-bottom: 80px; 

        display: flex;
        flex-direction: column;
    }

    #mobile-settings-backdrop {
        position: absolute;
        inset: 0;
    }

    #mobile-settings-panel .btn {
        text-align: left !important;
    }

    #mobile-settings-panel .settings-btn {
        width: 100%;
        font-size: 1.2rem;
        padding: 0.65rem 1rem;

        display: flex;
        align-items: center;
        gap: 0.75rem;

        text-align: left !important;              /* <-- add this */

        border-radius: 12px;
        border: none;
    }

    /* Push account section to the bottom */
    .settings-spacer {
        flex-grow: 1;
    }

    .settings-section {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        margin-bottom: 1rem;
    }

    .settings-account {
        margin-bottom: 0;
    }

    main {
        /* prevent content being hidden behind mobile navbar */
        padding-bottom: 60px; 
    }
}

/* Promptlee Green - #8fcd84 */
/* Promptlee Grey - #464646 */
:root {
  --brand-primary: #8fcd84;
  --brand-primary-rgb: 143, 205, 132;
}

/* Buttons */
.btn-primary {
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-bg: #79b66f;
  --bs-btn-hover-border-color: #79b66f;
}

/* Text & backgrounds */
.text-primary { color: var(--brand-primary) !important; }
.bg-primary { background-color: var(--brand-primary) !important; }

/* Links */
a {
  --bs-link-color: var(--brand-primary);
  --bs-link-hover-color: #79b66f;
}

/* Forms */
.form-control, .form-select {
  width: 100%;
}

/* Sign up Page Tabs */
#sign-up-tabs .nav-link {
    color:  var(--bs-body-color);              
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    font-weight: 500;
}

#sign-up-tabs .nav-link:hover {
    background-color: var(--bs-secondary-bg);
}

#sign-up-tabs .nav-link.active { 
    background-color:  var(--bs-secondary-bg);  
    border-bottom: none;
}

#sign-up-tabs {
    border-bottom: none;
}

#sign-up-tab-content {
    background-color:  var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    border-top: none;
}

/* Highlight active nav links */
.nav-highlight {
    color: white !important;
    font-weight: 600;
}

.nav-highlight i {
    color: white !important;
    font-weight: 600;
}

.nav-link {
    text-decoration: none;
    color: var(--bs-secondary);
}

.nav-link:hover {
    color: white;
}

.nav-link.active { 
    color: white !important;
    font-weight: 600;
}