/* Custom Styles for Vipassana Ecology */

:root {
    --primary-green: #2d5a27;
    --dark-green: #1b3817;
    --light-green: #e8f5e9;
    --accent-gold: #c5a059;
    --zen-cream: #fffaf0;
    --text-dark: #2c3e50;
    --white: #ffffff;
    --border-color: #d1dbd1;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', 'Kanit', sans-serif;
    background: linear-gradient(135deg, var(--zen-cream) 0%, #f0f7f0 100%);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: 'Prompt', 'Kanit', sans-serif;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Layout - Using Bootstrap Container but keeping custom layout wrappers */
.main-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    min-height: 70vh;
}

.sidebar {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    height: fit-content;
    transition: all 0.3s ease;
}

.content {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Navbar */
.navbar {
    background-color: var(--light-green);
    border-bottom: 2px solid var(--primary-green);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-green);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
}

.nav-links a.active {
    color: var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.8rem;
}

.sidebar-menu a {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar-menu a:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.sidebar-menu.horizontal {
    display: flex;
    flex-wrap: wrap;
    /* ถ้าเมนูยาวจะขึ้นบรรทัดใหม่ */
    gap: 1rem;
    /* ระยะห่างระหว่างเมนู */
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu.horizontal li {
    display: inline-block;
}

.sidebar-menu.horizontal a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--light-green);
    border-radius: 4px;
    transition: background 0.3s;
}

.sidebar-menu.horizontal a:hover {
    background: var(--dark-green);
    color: #cefc01;
}


/* Footer */
footer {
    background-color: var(--light-green);
    padding: 3rem 0;
    margin-top: 3rem;
    text-align: center;
    border-top: 2px solid var(--primary-green);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    text-decoration: none;
    color: var(--primary-green);
    font-size: 1.2rem;
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #1e3d1a;
}

/* Level Radio Buttons (1-5 Scale) */
.scale-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .nav-links {
        display: none;
        /* simple burger menu could be added, but keeping it simple for now */
    }
}