/* Admin Panel Styles */

.admin-body {
    background-color: #f0f0f0;
}

.admin-header {
    background-color: #2c3e50;
}

.admin-content {
    padding: 2rem 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header > div {
    flex: 1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Report Sections */
.report-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.report-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.report-header h3 {
    margin: 0;
}

.report-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.report-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

/* Revenue Grid */
.revenue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.revenue-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--accent-color);
}

.revenue-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.revenue-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.revenue-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.3rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table thead {
    background-color: var(--primary-color);
    color: white;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.admin-table tbody tr:hover {
    background-color: var(--background-color);
}

.admin-table .actions {
    white-space: nowrap;
}

.admin-table .text-center {
    text-align: center;
}

/* Admin Grid */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.admin-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-card h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Admin Forms */
.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-inactive {
    background: #999;
    color: white;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background-color: #d35400;
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Production Report */
.production-report {
    border: 3px solid var(--secondary-color);
}

/* Meals Admin Grid */
.meals-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.meal-admin-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.meal-admin-image {
    height: 180px;
    overflow: hidden;
}

.meal-admin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meal-admin-content {
    padding: 1.5rem;
}

.meal-admin-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.meal-admin-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.meal-admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Customer Details */
.customer-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-section {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.info-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #ddd;
}

.info-row .label {
    font-weight: 600;
    color: #666;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 968px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .revenue-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
