* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #1e293b;
    padding: 20px;
}

.admin-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.admin-header {
    background: white;
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
}

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header h1 i {
    color: #e67e22;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
}

.user-info i {
    margin-right: 6px;
    color: #64748b;
}

.logout-btn {
    background: #ef4444;
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #dc2626;
}

/* Toast message */
.toast-message {
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: opacity 0.5s ease;
}

/* Action bar */
.action-bar {
    margin-bottom: 24px;
    text-align: right;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

/* Table container */
.menu-table-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow-x: auto;
    padding: 0;
}

.menu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.menu-table th {
    text-align: left;
    padding: 16px 12px;
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.menu-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #eef2f6;
    vertical-align: top;
}

.day-name {
    background: #fef9e6;
    font-weight: 700;
    color: #b45309;
    width: 100px;
}

.menu-cell {
    min-width: 200px;
}

.menu-text {
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.empty-menu {
    color: #94a3b8;
    font-style: italic;
}

.menu-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    color: #475569;
}

.icon-btn:hover {
    background: #f1f5f9;
}

.delete-link {
    color: #ef4444;
}

.delete-link:hover {
    background: #fee2e2;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    width: 100%;
    max-width: 550px;
    margin: 20px;
}

.modal-content {
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eef2f6;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    line-height: 1;
}

.close:hover {
    color: #1e293b;
}

.form-group {
    padding: 0 24px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.9rem;
}

.form-group label i {
    margin-right: 6px;
    color: #e67e22;
}

.form-control, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #eef2f6;
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .action-bar {
        text-align: left;
    }
    .menu-table th, .menu-table td {
        padding: 12px 8px;
    }
    .menu-cell {
        min-width: 180px;
    }
    .icon-btn {
        font-size: 1rem;
        padding: 4px 6px;
    }
    .modal-dialog {
        margin: 10px;
    }
    .modal-content {
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .menu-table th, .menu-table td {
        font-size: 0.8rem;
        padding: 8px 6px;
    }
    .btn-primary, .btn-secondary {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}