* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212;
    color: #ffffff;
    line-height: 1.6;
}

/* ========== CONTAINERS ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== LOGIN & REGISTER ========== */
.login-container {
    background: #1f1f1f;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
    border: 1px solid #27ae60;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.login-container h2 {
    color: #27ae60;
    margin-bottom: 20px;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: none;
    background: #2a2a2a;
    color: white;
    font-size: 16px;
}

.login-container input:focus {
    outline: none;
    border: 1px solid #27ae60;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s;
}

.login-container button:hover {
    background: #1e8e4f;
}

.login-container a {
    color: #27ae60;
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}

.error {
    color: #e74c3c;
    background: #2a1a1a;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.success {
    color: #27ae60;
    background: #1a2a1a;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* ========== DASHBOARD ========== */
.dashboard {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== NAVIGATION ========== */
.nav {
    background: #1f1f1f;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #27ae60;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav h1 {
    color: #27ae60;
    margin: 0;
    font-size: 24px;
}
.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}
.nav-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    width: auto;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-btn:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.dashboard h1 {
    color: #27ae60;
    margin-bottom: 10px;
}

.dashboard > a {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 30px;
}

.dashboard > a:hover {
    background: #c0392b;
}

/* Admin Cards */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: #1f1f1f;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #27ae60;
}

.card h3 {
    color: #27ae60;
    margin-bottom: 15px;
}

.card a {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.card a:hover {
    background: #1e8e4f;
}

/* ========== TABLES ========== */
table {
    width: 100%;
    border-collapse: collapse;
    background: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background: #27ae60;
    color: white;
    font-weight: bold;
}

tr:hover {
    background: #2a2a2a;
}

/* ========== MENU GRID ========== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.menu-item {
    background: #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
    border-color: #27ae60;
}

.menu-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.menu-item h4 {
    margin: 12px 0 5px;
    color: #fff;
}

.menu-item p {
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 12px;
}

.menu-item button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: bold;
    width: 80%;
}

.menu-item button:hover {
    background: #1e8e4f;
}

/* ========== CART ========== */
#cart {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #27ae60;
}

#cart h3 {
    color: #27ae60;
    margin-bottom: 10px;
}

#cart-items {
    list-style: none;
    margin-bottom: 15px;
}

#cart-items li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

#cart-items button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
}

#cart-items button:hover {
    background: #c0392b;
}

#cart button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

#cart button:hover {
    background: #1e8e4f;
}

/* ========== BUTTONS ========== */
button, .btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover, .btn:hover {
    background: #1e8e4f;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .admin-cards {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    th {
        display: none;
    }
    
    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid #333;
    }
    
    td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #27ae60;
    }
}

.continue-shopping {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    transition: all 0.3s;
}
.continue-shopping:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}