/* Estilos para el dashboard de administración */
.gcm-admin-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.gcm-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.gcm-dashboard-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.gcm-dashboard-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.gcm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gcm-stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.gcm-stat-card:hover {
    transform: translateY(-5px);
}

.gcm-stat-number {
    font-size: 3em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
    display: block;
}

.gcm-stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gcm-dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.gcm-consoles-section,
.gcm-sessions-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.gcm-section-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gcm-section-header h3 {
    margin: 0;
    color: #2c3e50;
}

.gcm-section-content {
    padding: 20px;
}

.gcm-consoles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gcm-console-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.gcm-console-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gcm-console-card.status-available {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.gcm-console-card.status-busy {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.gcm-console-card.status-maintenance {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.gcm-console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gcm-console-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.gcm-console-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.gcm-console-status.status-available {
    background: #28a745;
    color: white;
}

.gcm-console-status.status-busy {
    background: #dc3545;
    color: white;
}

.gcm-console-status.status-maintenance {
    background: #ffc107;
    color: #212529;
}

.gcm-console-info {
    color: #6c757d;
    font-size: 0.9em;
}

.gcm-console-info p {
    margin: 5px 0;
}

.gcm-active-session {
    background: rgba(0,0,0,0.05);
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.gcm-session-info {
    margin-bottom: 10px;
}

.gcm-session-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
    color: #dc3545;
    text-align: center;
    padding: 10px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 5px;
}

.gcm-sessions-list {
    max-height: 400px;
    overflow-y: auto;
}

.gcm-session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.gcm-session-item:hover {
    background: #f8f9fa;
}

.gcm-session-item:last-child {
    border-bottom: none;
}

.gcm-session-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.gcm-session-details p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
}

.gcm-session-timer-mini {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 5px 10px;
    border-radius: 3px;
}

.gcm-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.gcm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.gcm-btn-primary {
    background: #007bff;
    color: white;
}

.gcm-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.gcm-btn-success {
    background: #28a745;
    color: white;
}

.gcm-btn-success:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.gcm-btn-warning {
    background: #ffc107;
    color: #212529;
}

.gcm-btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.gcm-btn-danger {
    background: #dc3545;
    color: white;
}

.gcm-btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.gcm-btn-secondary {
    background: #6c757d;
    color: white;
}

.gcm-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* Modal styles */
.gcm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.gcm-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.gcm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.gcm-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.gcm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.gcm-modal-close:hover {
    color: #dc3545;
}

/* Form styles */
.gcm-form-group {
    margin-bottom: 20px;
}

.gcm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.gcm-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
}

.gcm-form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.gcm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Loading spinner */
.gcm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert styles */
.gcm-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.gcm-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.gcm-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.gcm-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.gcm-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Responsive design */
@media (max-width: 1200px) {
    .gcm-dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gcm-consoles-grid {
        grid-template-columns: 1fr;
    }
    
    .gcm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gcm-form-row {
        grid-template-columns: 1fr;
    }
    
    .gcm-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .gcm-dashboard-header h1 {
        font-size: 2em;
    }
    
    .gcm-stat-number {
        font-size: 2em;
    }
}
