/* General Styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #181818;
    color: #f5f5f5;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    color: #27ae60 !important;
}

/* Top-Right Corner Navigation */
.top-right-nav {
    position: absolute;
    top: 10px;
    right: 20px;
    text-align: right;
}

.top-right-nav a {
    color: #27ae60;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 5px 10px;
    border: 2px solid #27ae60;
    border-radius: 5px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.top-right-nav a:hover {
    background-color: #27ae60;
    color: #181818;
}

header {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 2rem 0 1rem 0;
    border-bottom: 1px solid #222;
}

header h1 {
    margin: 0 0 0.5em 0;
    font-size: 2.2em;
    letter-spacing: 2px;
    font-weight: 700;
}

nav, .bar-nav {
    background: #000000;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin-bottom: 1em;
    border-radius: 0 0 16px 16px;
}

nav a, .bar-nav a {
    color: #27ae60;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    padding: 0.5em 1.2em;
    border-radius: 6px;
    background: #232323;
    transition: background 0.2s, color 0.2s;
}

nav a:hover, .bar-nav a:hover {
    background: #27ae60;
    color: #181818;
}

section {
    max-width: 1100px;
    margin: 2em auto;
    background: #191919 !important; /* Force black background */
    padding: 2em 2.5em;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

section h2, h3 {
    color: #27ae60;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.7em;
    text-align: center;
}

section ul {
    padding-left: 1.2em;
}

section ul li {
    margin-bottom: 0.7em;
    font-size: 1.05em;
}

/* Menu grid for e-commerce */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5em;
    margin-bottom: 2em;
}

.menu-item {
    background: #232323;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    padding: 1em;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(39,174,96,0.10);
}

.menu-item img {
    width: 100%;
    max-width: 140px;
    border-radius: 8px;
    margin-bottom: 0.7em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: #181818;
}

.menu-item h4 {
    margin: 0.5em 0 0.2em 0;
    color: #000000;
}

.menu-item p {  
    margin: 0.2em 0 0.5em 0;
    color: #27ae60;
    font-weight: 500;
}

.menu-item button {
    background: #27ae60;
    color: #181818;
    border: none;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 0.5em;
}

.menu-item button:hover {
    background: #fff;
    color: #181818;
}

/* Cart styles */
.cart {
    background: #232323;
    border-radius: 14px;
    padding: 1em 1.5em;
    margin-bottom: 2em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.cart h3 {
    margin-top: 0;
    color: #27ae60;
}

.cart-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}

.cart-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
    color: #fff;
}

.cart-list button {
    background: #e74c3c;
    color: #000000;
    border: none;
    border-radius: 4px;
    padding: 0.2em 0.7em;
    font-size: 0.95em;
    cursor: pointer;
}

.cart-total {
    font-weight: bold;
    text-align: right;
    margin-bottom: 1em;
    color: #27ae60;
}

/* Order/checkout form */
form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

form label {
    font-weight: 600;
    margin-bottom: 0.2em;
}

form input,
form textarea {
    padding: 0.6em;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1em;
    background: #181818;
    color: #fff;
}

form textarea {
    resize: vertical;
}

form button[type="submit"] {
    background: #27ae60;
    color: #181818;
    padding: 0.8em;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

form button[type="submit"]:hover {
    background: #fff;
    color: #181818;
}

button[disabled] {
    background: #444 !important;
    color: #aaa !important;
    cursor: not-allowed !important;
}

#checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: stretch;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5em 0 1em 0;
    color: #27ae60;
    font-size: 1em;
    background: #111;
    margin-top: 2em;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #222;
}

/* Force all main backgrounds to black */
body,
section,
header,
nav,
.bar-nav,
.menu-item,
.cart,
footer {
    background: #000000 !important;
}

/* Responsive design */
@media (max-width: 900px) {
    section {
        max-width: 98vw;
        padding: 1em 0.5em;
    }
    .bar-nav {
        gap: 1em;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    header h1 {
        font-size: 1.5em;
    }
}

@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    .bar-nav {
        flex-direction: column;
        gap: 0.5em;
    }
    .view-cart-btn, .cart, #checkout-form {
        width: 100%;
        font-size: 1em;
        margin-bottom: 1em;
    }
    header h1 {
        font-size: 1.2em;
        text-align: center;
    }
    .top-right-nav, .top-left-nav {
        position: static;
        text-align: center;
        margin-bottom: 1em;
    }
    section {
        padding: 0.5em;
    }
}
