/* ===== ESTILOS GENERALES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #44634a;
    color: #1a1a1a;
    min-height: 100vh;
}

.admin-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffd84d;
}

.admin-badge {
    background: rgba(255, 216, 77, 0.15);
    color: #ffd84d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.header-right {
    color: #6a8b72;
    font-size: 14px;
}

/* ===== TABS ===== */
.admin-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #6a8b72;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #a8d4ad;
    background: rgba(255, 255, 255, 0.04);
}

.tab.active {
    background: #ffd84d;
    color: #1d3a23;
}

/* ===== CONTENIDO DE TABS ===== */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CARDS ===== */
.card {
    background: linear-gradient(165deg, #16351e, #0e1f13);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.card h2 {
    color: #ffd84d;
    font-size: 20px;
    margin-bottom: 8px;
}

.card h3 {
    color: #a8d4ad;
    font-size: 16px;
    margin-bottom: 16px;
}

.card-desc {
    color: #6a8b72;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== FORMULARIOS ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: #a8d4ad;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #ffd84d;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group select option {
    background: #1d3a23;
    color: #fff;
}

.form-group small {
    display: block;
    color: #6a8b72;
    font-size: 12px;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* ===== BOTONES ===== */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd84d, #e6a800);
    color: #1d3a23;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 216, 77, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #a8d4ad;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* ===== MENSAJES ===== */
.message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
}

.message.success {
    display: block;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.message.error {
    display: block;
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ===== TABLA ===== */
.table-container {
    overflow-x: auto;
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: rgba(255, 255, 255, 0.04);
}

th {
    padding: 12px 16px;
    text-align: left;
    color: #a8d4ad;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e0e0e0;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.text-center {
    text-align: center;
    color: #6a8b72;
}

.text-muted {
    color: #6a8b72;
}

/* ===== FILTROS ===== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.filter-bar input {
    flex: 1;
    min-width: 200px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #ffd84d;
    outline: none;
}

/* ===== ASISTENCIA GRID ===== */
.asistencia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

/* ===== ESTADÍSTICAS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

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

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

.stats-card {
    min-height: 200px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
}

.stats-item .label {
    color: #a8d4ad;
}

.stats-item .value {
    color: #ffd84d;
    font-weight: 700;
}

.stats-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-summary .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.stats-summary .stat-row .label {
    color: #a8d4ad;
}

.stats-summary .stat-row .value {
    color: #ffd84d;
    font-weight: 700;
}

/* ===== CONFIG PREVIEW ===== */
.config-preview {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.config-preview h3 {
    color: #a8d4ad;
    font-size: 14px;
    margin-bottom: 8px;
}

.config-preview p {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #1d3a23;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h2 {
    color: #ffd84d;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: #6a8b72;
    font-size: 28px;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

/* ===== PAGINACIÓN ===== */
.pagination {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    color: #6a8b72;
    font-size: 14px;
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
    background: #ffd84d;
    border-radius: 3px;
}