
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f7f4ec;
    color: #193e32;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* BAL OLDALI MENÜ */

.sidebar {
    width: 250px;
    background: #193e32;
    color: white;
    padding: 35px 25px;
}

.sidebar h2 {
    font-size: 21px;
    letter-spacing: 1px;
    line-height: 1.4;
}

.sidebar p {
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 10px;
    opacity: 0.6;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 55px;
}

.sidebar a {
    color: #e4e8df;
    text-decoration: none;
    padding: 15px;
    border-radius: 9px;
    transition: 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #315c4c;
}

/* FŐ TARTALOM */

.main-content {
    flex: 1;
    min-width: 0;
    padding: 45px;
}

header p {
    color: #75877a;
    margin-bottom: 8px;
}

header h1 {
    font-size: 30px;
    font-weight: 600;
}

/* RENDELÉSI STATISZTIKÁK */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.stat-card {
    background: white;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 4px 20px #193e3208;
}

.stat-card p {
    color: #7c897e;
    font-size: 14px;
}

.stat-card h2 {
    font-size: 34px;
    margin-top: 15px;
}

/* RENDELÉSEK */

.orders {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 20px #193e3208;
}

.orders h2 {
    font-size: 21px;
    margin-bottom: 25px;
}

.orders p {
    color: #8b958c;
    text-align: center;
    padding: 45px 0;
}

/* TELEFONOS NÉZET */

@media (max-width: 800px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar nav {
        margin-top: 25px;
    }

    .main-content {
        padding: 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

/* RENDELÉSLISTA */

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.orders-header h2 {
    margin-bottom: 0;
}

.order-count {
    background: #eaf0e8;
    color: #315c4c;
    padding: 9px 15px;
    border-radius: 20px;
    font-size: 13px;
}

.orders-tools {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.orders-tools input,
.orders-tools select {
    padding: 13px 15px;
    border: 1px solid #e1e7df;
    border-radius: 9px;
    background: #fff;
    color: #193e32;
    font-size: 13px;
}

.orders-tools input {
    flex: 1;
    min-width: 0;
}

.orders-tools select {
    cursor: pointer;
}

.table-wrapper {
    overflow-x: auto;
}

.orders table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.orders th {
    padding: 16px 12px;
    color: #718477;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid #e8ede7;
}

.orders td {
    padding: 18px 12px;
    font-size: 13px;
    border-bottom: 1px solid #edf0ea;
    vertical-align: middle;
}

.orders .empty-orders {
    text-align: center;
    padding: 55px 15px;
    color: #929c93;
}

@media (max-width: 800px) {
    .orders-tools {
        flex-direction: column;
    }

    .orders-header {
        flex-wrap: wrap;
    }
}

/* RENDELÉS MEGNYITÁSA GOMB */

.details-button {
    background: #193e32;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}

.details-button:hover {
    background: #315c4c;
}

/* RENDELÉS RÉSZLETEI ABLAK */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 27, 0.65);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 60px #0002;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ede7;
}

.modal-header h2 {
    font-size: 23px;
}

#closeModal {
    background: none;
    border: none;
    font-size: 30px;
    color: #193e32;
    cursor: pointer;
}

.modal-body h3 {
    font-size: 16px;
    margin: 25px 0 15px;
    color: #193e32;
}

.modal-body p {
    padding: 7px 0;
    color: #53665a;
    font-size: 14px;
    line-height: 1.5;
}

.modal-body strong {
    color: #193e32;
}

#detailProducts {
    padding: 15px;
    background: #f7f4ec;
    border-radius: 10px;
    font-size: 14px;
}

.product-line {
    padding: 10px 0;
    border-bottom: 1px solid #e1e7df;
}

.product-line:last-child {
    border-bottom: none;
}

.modal-total {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8ede7;
    font-size: 20px;
    font-weight: bold;
    color: #193e32;
}

/* ADMIN FELÜLET – VÉGLEGES TÁBLÁZATOS KINÉZET */

body {
    background: #f6f4ec;
}

.sidebar {
    background: #193e32;
    min-height: 100vh;
}

.main-content {
    background: #f6f4ec;
}

.orders {
    padding: 0;
    overflow: hidden;
    border: 1px solid #e9eee6;
    border-radius: 16px;
}

.orders-header {
    padding: 25px 28px 0;
}

.orders-tools {
    padding: 0 28px;
}

.orders-tools input,
.orders-tools select {
    background: #f9faf7;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.orders table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
}

.orders thead {
    background: #f1f5ef;
}

.orders th {
    padding: 18px 20px;
    font-size: 12px;
    color: #526e5b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #e2e9df;
}

.orders td {
    padding: 20px;
    font-size: 13px;
    color: #34483a;
    border-bottom: 1px solid #edf0ea;
}

.orders tbody tr:hover {
    background: #fafbf8;
}

.orders tbody tr:last-child td {
    border-bottom: none;
}

.details-button {
    background: #193e32;
    color: white;
    border-radius: 8px;
    padding: 10px 16px;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .sidebar {
        min-height: auto;
    }

    .orders-header {
        padding: 20px 18px 0;
    }

    .orders-tools {
        padding: 0 18px;
    }
}

/* ADMIN OLDALSÁV – ÚJ MEGJELENÉS */

.sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
    background: #193e32;
    color: #fff;
    padding: 35px 22px 25px;
}

.sidebar-brand {
    padding: 0 12px 30px;
    border-bottom: 1px solid #426557;
}

.sidebar-brand h2 {
    font-size: 23px;
    letter-spacing: 2px;
    margin: 0;
}

.sidebar-brand span {
    display: block;
    margin-top: 5px;
    color: #c7d5bc;
    font-size: 13px;
    letter-spacing: 5px;
}

.sidebar-brand p {
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 20px;
    opacity: 0.6;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 35px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border-radius: 10px;
    color: #e4e8df;
    text-decoration: none;
    font-size: 14px;
}

.sidebar-nav a span {
    font-size: 21px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #315c4c;
    color: #fff;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 25px 12px 0;
    border-top: 1px solid #426557;
}

.sidebar-bottom p {
    padding: 0;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    opacity: 1;
}

.sidebar-bottom small {
    display: block;
    margin-top: 8px;
    color: #b9c9bd;
    font-size: 11px;
}

@media (max-width: 800px) {
    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .sidebar-bottom {
        display: none;
    }
}

/* FELSŐ ADMIN FEJLÉC */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e7de;
}

.header-label {
    display: block;
    color: #839485;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.admin-header h1 {
    font-size: 30px;
    color: #193e32;
    margin-bottom: 10px;
}

.admin-header .header-left p {
    color: #839084;
    font-size: 14px;
    padding: 0;
    text-align: left;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #ffffff;
    padding: 12px 18px;
    border: 1px solid #e8ede7;
    border-radius: 12px;
}

.admin-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #193e32;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
}

.admin-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-info strong {
    color: #193e32;
    font-size: 13px;
}

.admin-info span {
    color: #8a978c;
    font-size: 11px;
}

/* STATISZTIKAI KÁRTYÁK */

.stat-card {
    border: 1px solid #e8ede7;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h2 {
    color: #193e32;
}

/* RENDELÉSI ÁLLAPOTOK */

.status-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-new {
    background: #e9f1ff;
    color: #315b99;
}

.status-progress {
    background: #fff3db;
    color: #956400;
}

.status-completed {
    background: #e4f3e7;
    color: #287044;
}

@media (max-width: 800px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header h1 {
        font-size: 24px;
    }
}

/* RENDELÉSI ÁLLAPOT VÁLASZTÓ */

.order-status {
    border: none;
    border-radius: 20px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.order-status.status-new {
    background: #e9f1ff;
    color: #315b99;
}

.order-status.status-progress {
    background: #fff3db;
    color: #956400;
}

.order-status.status-completed {
    background: #e4f3e7;
    color: #287044;
}

/* ADMIN BEJELENTKEZÉSI KÉPERNYŐ */

.login-page {
    min-height: 100vh;
    background: #f6f4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 45px 40px;
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(25, 62, 50, 0.08);
    border: 1px solid #e8ede7;
}

.login-brand {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8ede7;
}

.login-brand h1 {
    font-size: 27px;
    letter-spacing: 3px;
    color: #193e32;
}

.login-brand span {
    display: block;
    margin-top: 6px;
    letter-spacing: 6px;
    font-size: 13px;
    color: #63806b;
}

.login-brand p {
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #8a978c;
}

.login-heading {
    text-align: center;
    margin: 32px 0;
}

.login-heading h2 {
    font-size: 23px;
    color: #193e32;
}

.login-heading p {
    margin-top: 10px;
    font-size: 13px;
    color: #849187;
}

#loginForm {
    display: flex;
    flex-direction: column;
}

#loginForm label {
    font-size: 13px;
    font-weight: 600;
    color: #193e32;
    margin-bottom: 9px;
}

#loginForm input {
    width: 100%;
    padding: 15px;
    border: 1px solid #dfe7de;
    border-radius: 9px;
    font-size: 14px;
    margin-bottom: 22px;
    outline: none;
}

#loginForm input:focus {
    border-color: #315c4c;
}

.login-button {
    background: #193e32;
    color: white;
    border: none;
    border-radius: 9px;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.login-button:hover {
    background: #315c4c;
}

.login-footer {
    text-align: center;
    margin-top: 35px;
    font-size: 11px;
    color: #a1aaa2;
}

@media (max-width: 500px) {
    .login-card {
        padding: 35px 24px;
    }
}

/* BEJELENTKEZÉS ÉS ADMINFELÜLET ELKÜLÖNÍTÉSE */

[hidden] {
    display: none !important;
}

.login-page {
    min-height: 100vh;
}

.admin-container {
    min-height: 100vh;
}
