/* ===== Global Styles ===== */
body {
    font-family: Arial, sans-serif;
    background: #b6dcb6;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* Container to constrain content width and center on large screens */
.container {
    max-width: 800px; /* Prevents stretching on large screens */
    margin: 0 auto;
    padding: 0 15px; /* Adds padding on mobile */
    text-align: left; /* Align text inside container to left */
}

/* Headings */
h1 {
    color: #08851b;
    font-size: 2em;
    margin-bottom: 20px;
}

.error-message{
    color: #b30000 !important;
}

.section-title {
    color: #07651a;
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Paragraphs */
.highlight-box {
    background-color: #5c98d2;
    color: white;
    padding: 8px;
    border-radius: 4px;
}

p {
    color: #373832;
    line-height: 1.5;
    word-wrap: break-word; /* Prevent long words from breaking layout */
}
ul, li {
    color: #373832;
}

span {
    color: #373832;
}

strong {
    color: #08851b;
}

/* ===== Forms ===== */
form {
    background: #07651a;
    padding: 20px;
    border-radius: 8px;
    max-width: 100%;
    width: 350px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Include padding in width */
}

label {
    display: block;
    margin-bottom: 15px;
    color: white;
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

/* Make textarea expandable for long paragraphs */
textarea {
    min-height: 80px;
    resize: vertical;
}

/* ===== Buttons ===== */


button {
    padding: 10px;
    width: 100%;
    background: #12933a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background: #4bbb83;
}

.button-fixed {
    width: 260px; /* pick a size you like */
    padding: 10px 16px;
}

/* ===== Dashboard Links ===== */
.dashboard-links {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 350px;
}

.dashboard-links li {
    margin: 12px 0;
}

.dashboard-links a {
    display: block;
    padding: 10px;
    background: #07651a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
}

.dashboard-links a:hover {
    background: #4bbb83;
}

/* ===== Seller Card Styling ===== */
.seller-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.seller-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.3em;
}

.seller-card p {
    margin: 5px 0;
    font-size: 1em;
    line-height: 1.4;
}

.tags {
    color: #1e8f11;
    font-weight: bold;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars-outer {
    position: relative;
    display: inline-block;
    color: #ccc; /* empty stars */
    font-size: 1.3rem;
    line-height: 1;
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: gold; /* filled stars */
    width: 0; /* controlled dynamically */
}

.rating-text {
    font-size: 0.9rem;
    color: #555;
}

.no-reviews {
    color: #555;
    font-style: italic;
}
.danger-link {
    display: inline-block;
    padding: 10px 16px;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* ===== Review Card Styling ===== */
.review-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 15px;
    margin: 20px auto;
    max-width: 500px;
    background: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: left; /* override body center */
}

.review-card h4 {
    margin: 0 0 8px 0;
    color: #07651a;
    font-size: 1.2em;
}

.review-card p {
    margin: 6px 0;
    font-size: 0.95em;
    color: #373832;
}

/* Make delete button visually dangerous but consistent */
.review-card .danger-button {
    background: #c0392b;
    margin-top: 10px;
}

.review-card .danger-button:hover {
    background: #e74c3c;
}

/* ===== Top Right Hamburger Menu ===== */
.top-menu {
    position: absolute;
    top: 20px;
    right: 20px;
}

.hamburger {
    background: #07651a;
    color: white;
    font-size: 1.5em;
    width: 45px;
    height: 45px;
    border-radius: 6px;
    cursor: pointer;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
}

.menu-dropdown form {
    background: none;
    padding: 0;
    margin: 0 0 10px 0;
    box-shadow: none;
}

.menu-dropdown button {
    width: 100%;
}

.menu-dropdown .danger-link {
    display: block;
    margin-top: 8px;
}
/* Hamburger menu links styled like buttons */
.menu-link {
    display: block;
    padding: 10px;
    background: #07651a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 8px;
    text-align: center;
}

.menu-link:hover {
    background: #4bbb83;
}


/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 1.7em;
    }

    .seller-card {
        padding: 12px;
    }

    .seller-card h3 {
        font-size: 1.2em;
    }

    .seller-card p {
        font-size: 0.95em;
    }

    button, .dashboard-links a {
        font-size: 0.95em;
    }

    form {
        width: 100%;
    }

    .dashboard-links {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    .seller-card h3 {
        font-size: 1.1em;
    }

    .seller-card p {
        font-size: 0.9em;
    }

    button, .dashboard-links a {
        font-size: 0.9em;
    }

    form {
        padding: 15px;
    }

}