/* Admin Panel Stylesheet */

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
}

.admin-sidebar .nav-link {
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.15);
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    background-color: #f0f2f5;
}

/* Stats Cards */
.stat-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.2s;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.4rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Tables */
.admin-table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
    border-bottom-width: 2px;
}

.admin-table td {
    vertical-align: middle;
}

/* Status Badges */
.badge-estado-Publicada { background-color: #198754; }
.badge-estado-Borrador { background-color: #6c757d; }
.badge-estado-EnRevision { background-color: #ffc107; color: #333; }
.badge-estado-Aprobada { background-color: #0dcaf0; color: #333; }
.badge-estado-Programada { background-color: #0d6efd; }
.badge-estado-Rechazada { background-color: #dc3545; }
.badge-estado-Archivada { background-color: #343a40; }

/* Form Styling */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
}

/* Chart Bars */
.chart-bar {
    height: 24px;
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 30px;
}

/* Color Swatch */
.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: inline-block;
    border: 2px solid rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }
}
