/* Admin Panel Styles */
.admin-header {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.btn-back-web {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
}

/* Stats Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 1rem;
}

.stat-card-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.stat-card-value {
    font-size: 1.25rem;
    font-weight: bold;
}

.stat-card-value.success {
    color: #4ade80;
}

.stat-card-value.info {
    color: #60a5fa;
}

.stat-card-value.warning {
    color: #fbbf24;
}

.stat-card-value.danger {
    color: #f87171;
}

.admin-content {
    padding: 1rem;
}

.admin-section {
    margin-bottom: 1.5rem;
}

.admin-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Kitchen Cards */
.kitchen-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.kitchen-card {
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.kitchen-card.fry {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.kitchen-card.fry .kitchen-card-label {
    color: #9a3412;
}

.kitchen-card.fry .kitchen-card-value {
    color: var(--color-primary);
}

.kitchen-card.delivery {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.kitchen-card.delivery .kitchen-card-label {
    color: #1e40af;
}

.kitchen-card.delivery .kitchen-card-value {
    color: #2563eb;
}

.kitchen-card-label {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.kitchen-card-value {
    font-size: 1.875rem;
    font-weight: 800;
}

/* Order List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-card {
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.order-card-info {
    flex: 1;
    min-width: 0;
}

.order-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.order-card-name {
    font-weight: bold;
}

.order-card-status {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 9999px;
}

.order-card-status.pendiente {
    background: var(--color-warning-light);
    color: #92400e;
}

.order-card-status.pagado {
    background: var(--color-success-light);
    color: #065f46;
}

.order-card-status.preparando {
    background: var(--color-info-light);
    color: #1e40af;
}

.order-card-status.listo {
    background: #f0fdf4;
    color: #166534;
}

.order-card-status.entregado {
    background: var(--color-gray-100);
    color: var(--text-secondary);
}

.order-card-status.rechazado {
    background: var(--color-danger-light);
    color: #991b1b;
}

.order-card-items {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.order-card-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.order-card-actions {
    text-align: right;
}

.order-card-total {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.order-card-link {
    font-size: 0.75rem;
    color: var(--color-info);
    text-decoration: underline;
    cursor: pointer;
}

/* Expenses Table */
.expenses-table-container {
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.expenses-table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.expenses-table thead {
    background: var(--color-gray-50);
}

.expenses-table th {
    padding: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.expenses-table td {
    padding: 0.75rem;
    border-top: 1px solid var(--color-gray-100);
}

.expenses-table .amount {
    text-align: right;
    color: var(--color-danger);
    font-weight: 500;
}

.expenses-table .photo {
    text-align: center;
}

.expenses-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-100);
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-secondary);
}

.expenses-add-btn:hover {
    background: var(--color-gray-100);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-800) 100%);
}

.login-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 360px;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo h1 {
    font-size: 1.25rem;
    font-weight: bold;
}

.login-logo p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.login-back {
    text-align: center;
    margin-top: 1rem;
}

.login-back a {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Image Modal */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.image-modal img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0.5rem;
}

.image-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--color-success);
}

.text-danger {
    color: var(--color-danger);
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-success {
    background: var(--color-success-light);
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-danger {
    background: var(--color-danger-light);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-warning {
    background: var(--color-warning-light);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.alert-info {
    background: var(--color-info-light);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (min-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .modal-overlay {
        align-items: center;
    }
}

@media (min-width: 768px) {
    .app-container {
        margin-top: 2rem;
        margin-bottom: 2rem;
        border-radius: 1.5rem;
        overflow: hidden;
    }
}