/**
Theme Name: Child Theme
Author: Gustavo Sangiovanni
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: child-theme
Template: astra
*/

/* =============================================================================
   ESTILOS PARA CONSOLA ADMINISTRATIVA - ESCUELA ELE
   Estos estilos deben agregarse al archivo style.css del tema hijo
   ============================================================================= */

/* =============================================================================
   BOTONES
   ============================================================================= */

.boton_1{
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: #70270F;
}

/* =============================================================================
   AUTOCOMPLETADO DE USUARIOS
   ============================================================================= */

.user-search-container {
    position: relative;
    margin-bottom: 15px;
}

#user_search, #student_search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item.selected {
    background-color: #007cba;
    color: white;
}

.no-results {
    padding: 10px;
    color: #666;
    font-style: italic;
}

#buscar_pagos_btn:disabled,
#ver_cursos_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================================================
   MODALES PARA NOTAS DE PEDIDOS
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* =============================================================================
   GESTIÓN DE ESTUDIANTES Y CURSOS
   ============================================================================= */

.student-courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.student-info-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.student-info-card h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.student-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.detail-row {
    display: flex;
    flex-direction: column;
}

.detail-row .label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.detail-row .value {
    color: #333;
}

.detail-row .value a {
    color: #007cba;
    text-decoration: none;
}

.detail-row .value a:hover {
    text-decoration: underline;
}

.courses-section {
    margin-top: 30px;
}

.courses-section h3 {
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.courses-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.courses-table th,
.courses-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.courses-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.courses-table tr:hover {
    background-color: #f9f9f9;
}

.course-name {
    font-weight: 500;
    max-width: 300px;
}

.approval-checkbox {
    text-align: center;
}

.approval-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.approval-date {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.no-courses-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

/* =============================================================================
   EXPORTACIÓN A EXCEL
   ============================================================================= */

.excel-export-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stats-dashboard {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.stats-dashboard h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9em;
    color: #fff;
    font-weight: 500;
}

.export-form-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.export-form-section h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.filters-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

.filters-section h3 {
    margin-top: 0;
    color: #555;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-group input[type="checkbox"] {
    margin-right: 8px;
}

.export-actions {
    text-align: center;
    margin: 30px 0;
}

.export-btn {
    padding: 15px 30px !important;
    font-size: 16px !important;
    background: #28a745 !important;
    border-color: #28a745 !important;
}

.export-btn:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
}

.export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.export-info {
    margin-top: 15px;
    color: #666;
}

.info-section {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 20px;
}

.info-section h3 {
    margin-top: 0;
    color: #0056b3;
}

.info-list {
    margin: 15px 0;
    padding-left: 20px;
}

.info-list li {
    margin-bottom: 8px;
    color: #333;
}

/* =============================================================================
   DASHBOARD ADMINISTRATIVO
   ============================================================================= */

.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.dashboard-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.dashboard-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.stats-overview, .quick-actions, .recent-activity {
    margin-bottom: 40px;
}

.stats-overview h2, .quick-actions h2 {
    color: #333;
    border-bottom: 3px solid #007cba;
    padding-bottom: 10px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.stat-card.primary { background: linear-gradient(135deg, #3498db, #2980b9); color: white; }
.stat-card.success { background: linear-gradient(135deg, #2ecc71, #27ae60); color: white; }
.stat-card.info { background: linear-gradient(135deg, #17a2b8, #138496); color: white; }
.stat-card.warning { background: linear-gradient(135deg, #f39c12, #e67e22); color: white; }
.stat-card.secondary { background: linear-gradient(135deg, #6c757d, #5a6268); color: white; }
.stat-card.accent { background: linear-gradient(135deg, #e91e63, #c2185b); color: white; }

.stat-icon {
    font-size: 2.5em;
    margin-right: 15px;
}

.stat-info .stat-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-info .stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.action-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.action-icon {
    font-size: 2.5em;
    margin-right: 15px;
    color: #007cba;
}

.action-content h3 {
    margin: 0 0 8px 0;
    color: #333;
}

.action-content p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 0.9em;
}

.action-btn {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.recent-activity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.activity-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

.activity-list {
    margin-top: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item .activity-icon {
    font-size: 1.5em;
    margin-right: 12px;
}

.activity-title {
    font-weight: 500;
    color: #333;
}

.activity-meta {
    font-size: 0.85em;
    color: #666;
    margin-top: 2px;
}

.no-activity {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* =============================================================================
   NOTIFICACIONES Y ALERTAS
   ============================================================================= */

.notice {
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 4px solid;
    border-radius: 4px;
}

.notice-success {
    background-color: #dff0d8;
    border-color: #5cb85c;
    color: #3c763d;
}

.notice-error {
    background-color: #f2dede;
    border-color: #d9534f;
    color: #a94442;
}

.notice-warning {
    background-color: #fff3cd;
    border-color: #f39c12;
    color: #856404;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .student-details {
        grid-template-columns: 1fr;
    }
    
    .courses-table {
        font-size: 14px;
    }
    
    .courses-table th,
    .courses-table td {
        padding: 8px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-activity {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h1 {
        font-size: 2em;
    }
    
    .stat-number {
        font-size: 2em;
    }
}