/* --- Admin Specific Styles --- */

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

.admin-container {
    display: flex;
    margin-top: 2rem;
    margin-bottom: 4rem;
    gap: 2rem;
    min-height: 60vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    height: fit-content;
}

.admin-title {
    font-size: 1.2rem;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ebebeb;
}

.admin-menu li {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    transition: 0.2s;
}

.admin-menu li.active, .admin-menu li:hover {
    background: var(--light-green);
    color: var(--dark-green);
}

.admin-content {
    flex-grow: 1;
}

.admin-panel {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.mt-4 {
    margin-top: 2rem;
}

.admin-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-green);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.8rem;
}

/* Form Styles */
.admin-form .form-group {
    margin-bottom: 1.2rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.admin-form button {
    border: none;
    font-size: 1rem;
}

.form-msg {
    margin-top: 1rem;
    font-weight: 500;
}

.form-msg.success { color: var(--primary-green); }
.form-msg.error { color: #d32f2f; }

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.admin-table th {
    background-color: #fafafa;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.admin-table img.thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-table .btn-delete {
    background: #ffebee;
    color: #c62828;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: 0.2s;
}

.admin-table .btn-delete:hover {
    background: #ffcdd2;
}

.admin-table .btn-edit {
    background: #fff3e0;
    color: #ef6c00;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: 0.2s;
    margin-right: 0.5rem;
}

.admin-table .btn-edit:hover {
    background: #ffe0b2;
}

/* Responsivo Admin */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
}

.badge-cat {
    background: #e0f2f1;
    color: #00796b;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: normal;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    background: #f8fdf8;
    border: 1px solid #e0f2f1;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.stat-card h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.stat-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}
.stat-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}
.stat-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}
.stat-list li:last-child {
    border-bottom: none;
}
.stat-count {
    font-weight: 600;
    color: var(--primary-green);
}
.mb-4 {
    margin-bottom: 2rem;
}
