@import url('https://fonts.googleapis.com/css2?family=Sniglet:wght@400..600&family=Inter:wght@100..900&display=swap');
:root {
    --color1: #FF9EAA; /* Bubblegum pink */
    --color2: #8FD3FF; /* Sky blue */
    --color3: #FFE08F; /* Lemon yellow */
    --color4: #B5FF8F; /* Mint green */
    --color5: #f3810b;
}

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}


h1,h2,h3,h4,h5, button, .author, .title {
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
}


html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1000px;
    margin: 45px auto;
    padding: 0 15px;
}

/* Navbar Styles */
.navbar {
    /* background: white; */
    padding: 15px;
    border-radius: 30px;
    /* box-shadow: 0 10px 20px rgba(0,0,0,0.1); */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-button {
    width: 25%;
    background: var(--color2);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 5px;
    text-decoration: none;
    text-align: center;
}

.nav-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Main Content */
body {
    background: #e3e6f5 !important;
    min-height: 100vh;
    margin: 0;
}

.bg {
    background: #fff3d6 url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ff9eaa" stroke-width="2" stroke-dasharray="5 5"/></svg>');
}

.bulletin-board {
    background: #fff3d6 url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ff9eaa" stroke-width="2" stroke-dasharray="5 5"/></svg>');
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    padding: 20px;
    position: relative;
}

.principles-container, .user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px auto;
}

/* Add a beige background behind the principles container */
.principles-bg {
    background: #fff3d6;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    padding: 30px 20px;
    margin: 30px 0;
}

/* Principle Cards */
.principle-card, .user-card {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 10px;
    margin: 0;
    transition: all 0.2s ease;
    animation: fadeIn 0.5s ease-out both;
    cursor: pointer;
}

.principles-grid .principle-card {
    cursor: default;
    margin-bottom: 45px;
}

.principles-grid .principle-card .principle-content{
    width: 100%;
}

.principle-card:hover, .user-card:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.principle-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.principle-card-title p, .user-card p {
    margin: 5px;
}

.principle-card-title .title, .user-card .title {
    font-size: 18px;
}

.principle-card p, .principle-card .time, .user-card p {
    font-size: 14px;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Footer Styles */
.footer {
    background: white;
    padding: 30px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-select {
    transition: all 0.2s ease;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.language-select button {
    cursor: pointer;
    border: none;
    font-size: 1.2rem;
    background-color: transparent;
}



/* Button Styles */
.bouncy-btn {
    background: var(--color1);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 10px 0 #ff7a8a;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bouncy-btn:hover {
    transform: translateY(3px);
    box-shadow: 0 7px 0 #ff7a8a;
}

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .navbar div:first-child {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.avatar {
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.user-info {
    line-height: 1.6;
    padding-left: 5px;
}

.user-info p {
    margin: 6px 0;
}


.error-box {
    border: 3px dashed var(--color2);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.75);
    text-align: center;
    font-size: 1.1rem;
    color: red;
}


/* Signup Page Styles */
.form-box {
    border: 3px dashed var(--color2);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: #e6fbff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0 10 Q 25 0, 50 10 T 100 10" fill="none" stroke="%2390eaff" stroke-width="2"/></svg>') repeat-x;
}

.form-box h2 {
    text-align: center;
    color: var(--color1);
    font-size: 2rem;
}



.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px auto;
    max-width: 500px;
    background: rgba(255,255,255,1);
    padding: 20px;
    border-radius: 10px;
}

.form input, .form textarea {
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid var(--color3);
    border-radius: 10px;
}

.form button {
    padding: 12px;
    font-size: 1.1rem;
    cursor: pointer;
}

#username-status, #message {
    text-align: center;
    font-family: 'Comic Neue', cursive;
    margin-top: 5px;
    font-size: 0.95rem;
}


.pagination {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination .bouncy-btn {
    padding: 4px 10px;
    font-size: 0.9rem;
    border-radius: 50%;
    background-color: var(--color5);
    box-shadow: 0 5px 0 #bd6408;;
}


.page-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;

}

.page-links p {
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
}


.page-links a.disabled, .page-links a.disabled button {
    filter: grayscale(100%);
    cursor: not-allowed;
}


.page-links a.disabled .bouncy-btn:hover {
    transform: none;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd;
    padding: 20px 10px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 20px;
}

.user-principles .principle-card {
    margin: 10px;
}

.top-bar .username {
    display: flex;
    font-size: 1.2rem;
    color: var(--color5);
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    gap: 20px;

}

.top-bar .avatar {
    color: var(--color5);
    font-size: 1.25rem;

}

.email-button {
    padding: 8px 18px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 20px;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    box-shadow: 0 2px 5px #c2c2c2;
    color: #000;
}


.user-principles, .two-columns {
    display: flex;
    gap: 30px;
}

.left-column {
    flex: 0 0 160px;

}

.two-columns .left-column {
    flex: 0 0 250px;

}


.left-column-content {
    background: #fff;
    padding: 18px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.08);
    font-size: 1rem;
    color: #555;
}

.left-column p {
    margin: 8px 0;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    font-size: 14px;

}

.right-column {
    flex: 1;
    background: #fff;
    padding: 18px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.08);
}

.right-column h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
    color: #222;
}

.no-principles {
    font-style: italic;
    color: #999;
    padding: 10px 0;
}

.header-row h2 {
    color: var(--color1);
    font-size: 1.5rem;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


.header-row .bouncy-btn {
    text-decoration: none;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    font-size: 1rem;
}


/* Unique styles for the detailed principle view */

.principle-view-container {
    max-width: 1150px;
    margin: 40px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.4s ease;
}

.principle-view-card {
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: flex-start;
}

.principle-view-profile {
    flex-shrink: 0;
    text-align: center;
}

.principle-view-avatar {
    background: var(--color2);
    color: white;
    font-size: 2.2rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    font-weight: bold;
}

.principle-view-nickname {
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    font-size: 1.2rem;
    color: var(--color5);
}

.principle-view-content {
    flex-grow: 1;
    background: rgba(255,255,255,0.75);
    border-radius: 20px;
}

.principle-view-header {
    margin-bottom: 10px;
}

.principle-view-header h2 {
    font-size: 1.8rem;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    margin: 0;
    color: #333;
}

.principle-view-date {
    font-size: 0.9rem;
    color: #888;
}

.principle-view-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}


.principle-btns {
    display: flex;
    justify-content: space-around;
}

.principle-btns button {
    font-size: 1rem;
    padding: 5px;
    flex: 1;
    margin: 5px;
}

.principle-btns button.approve {
    background-color: #7dcf95;
    box-shadow: 0 10px 0 #71b685;
}





@media (max-width: 768px) {
    .navbar {
        padding: 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .nav-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .title {
        font-size: 1.3rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .two-columns {
        flex-direction: column;
    }

    .user-principles {
        flex-direction: column;
    }

    .user-principles .left-column {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }


    .principle-card-title .avatar {
        display: none;
    }

    .right-column .left-column {
        padding: 0px;
    }

    .user-principles .principle-card {
        margin: 0;
    }

    .pagination {
        flex-direction: row;
        justify-content: center !important;
    }

    .container {
        padding: 0 5px;
        margin-top: 0;
    }

    .nav-button {
        font-size: 0.8rem;
    }

    .navbar {
        border-radius: 15px;
    }

    .title {
        font-size: 1.2rem;
    }

    .description {
        font-size: 0.9rem;
    }
}

.nav-toggle {
    display: none;
}

.nav-auth {
    display: flex;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        font-size: 1rem;
    }

    .nav-links, .nav-auth {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        width: auto;
    }

    .nav-links.show, .nav-auth.show {
        display: flex;
        gap: 10px;

    }


    .nav-auth .nav-button,
    .language-select {
        margin-bottom: 10px;
        width: auto;
    }

    .principle-header{
        position: relative;
    }

    .principle-header .principle-title{
        padding-top: 40px;
        font-size: 0.95rem;
    }
    .profile-page .principle-header .principle-title{
        padding-top: 30px;
    }
    .principle-header .principle-meta{
        position: absolute;
        right: 0;
        font-size: 0.85rem;
    }
    .principle-meta .time-ago{
        font-size: 0.85rem;
    }

}

/* Language Bar Improved Design */
.language-bar {
    margin: 15px auto 0;
    width: 1200px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 0px 18px;
    transition: box-shadow 0.2s, background 0.2s;
}
.language-bar form{
    padding: 0px 0;
    margin: 5px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.language-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2.6rem;
    padding: 0px 10px;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    outline: none;
    box-shadow: none;
}
.language-bar button.selected, .language-bar button:focus {
    background: #ffe08f;
    outline: none;
    box-shadow: 0 0 0 2px #ffe08f;
    background-clip: padding-box;
    /* padding: 2px 6px !important; */
}
.language-bar button:hover {
    background: #f9a1b0;
    color: #fff;
    transform: scale(1.12);
}
@media (max-width: 600px) {
    .language-bar {
        bottom: 10px;
        right: 10px;
        padding: 6px 8px;
    }
    .language-bar button {
        font-size: 1.3rem;
        padding: 3px 5px;
    }
}

/* --- Begin nav.css styles merged --- */
.main-nav {
    background: transparent;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.nav-container.nav-flex {
    max-width: 1200px;
    width: 100%;
    margin: 0px auto 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    min-height: 68px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-left {
    gap: 24px;
}

.nav-btn {
    display: inline-block;
    min-width: 150px;
    text-align: center;
    background: #8fd3ff;
    color: #fff;
    font-size: 1.15rem;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    border: none;
    border-radius: 30px;
    padding: 12px 0;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-btn:hover, .nav-btn.active {
    background: #6ec6ff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.login-btn {
    background: #f9a1b0;
}
.login-btn:hover, .login-btn.active {
    background: #f3810b;
    color: #fff;
}

/* .profile-btn {
    background: #b5ff8f;
    color: #333;
}
.profile-btn:hover, .profile-btn.active {
    background: #7dcf95;
    color: #fff;
} */

@media (max-width: 900px) {
    .nav-container.nav-flex {
        padding: 8px 10px;
    }
    .nav-btn {
        min-width: 100px;
        font-size: 1rem;
        padding: 10px 0;
    }
    .nav-left{
        gap: 10px;
    }
} 
/* --- End nav.css styles merged --- */

.principle-number-label {
    font-weight: bold;
    color: #888;
    font-size: 0.75em;
    text-align: left;
}

.plus-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2.5em;
    color: #bbb;
    margin-bottom: 2px;
    transition: color 0.2s;
}
.plus-btn:hover {
    color: #7dcf95;
}

.add-principle-label {
    color: #bbb;
    font-size: 1em;
    margin-bottom: 8px;
}

.add-principle-form {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.add-principle-form.active {
    display: flex;
}

.add-principle-title input {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 1.1em;
}

.add-principle-desc textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 1em;
    resize: vertical;
}

.moderation-icon {
    font-size: 1.3em;
}

.principle-card {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-slot-container{
    width: 100%;
    height: 100%;
}

.plus-btn-full {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: #f7f7f7;
    border: 2px dashed #bbb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: #bbb;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    position: relative;
    padding: 0;
    margin: 0;
    outline: none;
}
.plus-btn-full:focus {
    border-color: #7dcf95;
    color: #7dcf95;
    background: #f0fff5;
}
.plus-btn-full:hover {
    border-color: #7dcf95;
    color: #7dcf95;
    background: #f0fff5;
}
.plus-btn-full .empty-icon {
    font-size: 2.5em;
    display: block;
    margin: 0 auto;
}
.add-principle-form {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    background: #f7f7f7;
    border: 2px solid #7dcf95;
    border-radius: 14px;
    padding: 18px 16px 14px 16px;
    box-shadow: 0 4px 16px rgba(125,207,149,0.08);
    animation: fadeIn 0.3s;
}
.add-principle-title,.add-principle-desc{
    width: 100%;
}
.add-principle-form.active {
    display: flex;
}
.add-principle-title input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid #dbeee2;
    font-size: 1.1em;
    background: #fff;
    transition: border-color 0.2s;
}
.add-principle-title input:focus {
    border-color: #7dcf95;
    outline: none;
}
.add-principle-desc textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid #dbeee2;
    font-size: 1em;
    background: #fff;
    resize: vertical;
    transition: border-color 0.2s;
}
.add-principle-desc textarea:focus {
    border-color: #7dcf95;
    outline: none;
}
.add-principle-form .save-btn {
    background: #7dcf95;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1.1rem;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(125,207,149,0.08);
}
.add-principle-form .save-btn:hover {
    background: #4a90e2;
}
/* Remove air principle modal styles if present */
.air-principle-modal, .air-principle-modal * {
    display: none !important;
}

.principle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 8px;
}
.principle-title {
    font-size: 1.4rem;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    color: #fff;
    margin: 0;
    font-weight: bold;
    flex: 1 1 auto;
    text-align: left;
}
.principle-meta {
    text-align: right;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.principle-meta .meta-username {
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
}
.principle-meta .meta-username:hover {
    text-decoration: underline;
}
.time-ago {
    font-size: 0.98em;
    margin-left: 4px;
}

.edit-profile-btn, #editProfileBtn {
    background: #7dcf95;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1.1rem;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 10px;
    /* box-shadow: 0 2px 8px rgba(125,207,149,0.12); */
    transition: background 0.2s;
    outline: none;
    /* letter-spacing: 0.5px; */
}
.edit-profile-btn:hover, #editProfileBtn:hover {
    /* background: linear-gradient(90deg, #4a90e2 0%, #7dcf95 100%); */
    box-shadow: 0 4px 16px rgba(74,144,226,0.18);
    /* transform: translateY(-2px) scale(1.03); */
}

/* Profile page text fields styling */
.profile-field-row input[type="text"],
.profile-field-row input[type="email"],
.profile-field-row input[type="number"],
.profile-field-row input[type="password"] {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    background: #fafbfc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.profile-field-row input[type="text"]:focus,
.profile-field-row input[type="email"]:focus,
.profile-field-row input[type="number"]:focus,
.profile-field-row input[type="password"]:focus {
    border-color: #7dcf95;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(125, 207, 149, 0.1);
    transform: translateY(-1px);
}

.profile-field-row input[type="text"]:hover,
.profile-field-row input[type="email"]:hover,
.profile-field-row input[type="number"]:hover,
.profile-field-row input[type="password"]:hover {
    border-color: #c1d7c1;
    background: #fff;
}

/* Profile page buttons styling */
.profile-info-form.save-btn {
    background: #7dcf95;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1.1rem;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin-top:10px;
    margin-right: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(125, 207, 149, 0.2);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-info-form.save-btn:hover {
    background: #6bbf85;
    /* box-shadow: 0 4px 16px rgba(125, 207, 149, 0.3); */
    /* transform: translateY(-2px); */
}

.profile-info-form.save-btn:active {
    /* transform: translateY(0); */
    box-shadow: 0 2px 8px rgba(125, 207, 149, 0.2);
}

/* Cancel button styling */
.profile-info-form .save-btn[style*="background:#e57373"],
.profile-info-form .save-btn[style*="background: #e57373"] {
    background: #e57373 !important;
    box-shadow: 0 2px 8px rgba(229, 115, 115, 0.2);
}

.profile-info-form .save-btn[style*="background:#e57373"]:hover,
.profile-info-form .save-btn[style*="background: #e57373"]:hover {
    background: #d56565 !important;
    box-shadow: 0 4px 16px rgba(229, 115, 115, 0.3);
}

/* Responsive table wrapper */
.responsive-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Responsive tables */
.profile-info-table, .walkers-table {
  min-width: 600px;
  width: 100%;
}

@media (max-width: 700px) {
  .profile-info-table, .walkers-table {
    min-width: 0;
    width: 100%;
    font-size: 0.98rem;
  }
  .profile-info-table th, .profile-info-table td,
  .walkers-table th, .walkers-table td {
    padding: 8px 6px;
    font-size: 0.75rem;
  }
  .profile-info-block, .profile-principles-block, .walkers-container {
    padding: 10px 2vw;
    min-width: 0;
    box-sizing: border-box;
  }
  .principle-card, .placeholder-card {
    min-width: 0;
    max-width: 100vw;
    box-sizing: border-box;
    font-size: 0.98rem;
  }
  .principles-grid {
    gap: 8px;
  }
  body, html {
    overflow-x: hidden !important;
  }
}

/* Hide horizontal overflow everywhere */
body, html {
  overflow-x: hidden;
}

/* Mobile nav menu */
@media (min-width: 701px) {
    #mobileNavMenu{
        display: none;
    }
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #4a90e2;
  cursor: pointer;
  margin-right: 10px;
  background: white;
    border-radius: 50%;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    padding-bottom: 10px;
}

@media (max-width: 700px) {
    .nav-container.nav-flex{
        background: none;
    box-shadow: none;
    }
  .navbar .nav-left {
    display: none;
  }
  .mobile-nav-toggle {
    /* display: block; */
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 1001;
  }
  .mobile-nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 60px 0 20px 0; /* Add padding at top for close button */
    z-index: 1000;
    gap: 18px;
    border-bottom: 2px solid #eee;
    transform: translateY(-100%); /* Start off-screen */
    transition: transform 0.35s ease-in-out;
  }

  /* State when menu is open */
  body.menu-open .mobile-nav-menu {
    transform: translateY(0);
  }

  .mobile-nav-toggle {
    z-index: 1001; /* Ensure button is above the menu */
    transition: transform 0.2s ease-in-out;
  }
  .mobile-nav-menu a {
    color: #4a90e2;
    font-size: 1.2rem;
    font-family: 'Sniglet', Comic Sans MS, sans-serif;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .mobile-nav-menu a:hover {
    background: #eafaff;
  }
}

@media (max-width: 500px) {
  .profile-info-table, .walkers-table {
    font-size: 0.92rem;
  }
  .principle-card, .placeholder-card {
    font-size: 0.92rem;
  }
  
  .principle-card .principle-desc{
    font-size: 0.75rem;
  }
  .principles-grid .principle-card{
    min-height: 500px;
    padding: 15px;
  }
  .principle-content .moderation-status{
    font-size: 0.8rem;
  }
  .principle-content .principle-action-btn{
    font-size: 1rem;
  }
}

/* Hide scrollbars on mobile for wrappers */
.responsive-table-wrapper::-webkit-scrollbar {
  display: none;
}
.responsive-table-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hide main nav on mobile, only show mobile nav */
@media (max-width: 700px) {
  .navbar .nav-left {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex;
    padding: 0;
    padding-bottom: 5px;
  }
  #editProfileBtn,form .logout-btn,.profile-info-form.save-btn{
    font-size: 0.75rem;
  }
  form .profile-edit-input{
    font-size: 0.75rem;
    padding: 5px;
    width: 100%;
  }
}

body.menu-open {
  overflow: hidden; /* Prevent scrolling of page when menu is open */
}

