/*
Theme Name: Galaxy Purple LMS
Theme URI: https://ejemplo.com
Author: Tu Nombre
Author URI: https://ejemplo.com
Description: Theme morado estilo galaxia clara, minimalista y compatible con Tutor LMS.
Version: 1.0.3
Text Domain: galaxy-purple-lms
*/

/* Base general */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #c9b8ff 0, #b09bff 35%, #8d7bff 70%, #6a5ce6 100%);
    color: #261243;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
    color: #5a32ff;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: #7a4dff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* Layout antiguo centrado (por si alguna plantilla lo usa) */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.site-header {
    padding: 16px 0;
    margin-bottom: 16px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #261243;
}

.site-description {
    font-size: 0.85rem;
    color: #5c437f;
    opacity: 0.9;
}

.site-main {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 0 18px rgba(114, 88, 255, 0.35);
    border: 1px solid rgba(209, 193, 255, 0.9);
    padding: 24px;
    min-height: 60vh;
}

.site-footer {
    padding: 16px 0 24px;
    font-size: 0.8rem;
    color: #4b347a;
    text-align: center;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .site-container {
        padding: 16px 12px;
    }

    .site-main {
        padding: 16px;
        border-radius: 18px;
    }

    .site-title {
        font-size: 1.1rem;
    }
}

/* Shell general tipo app con sidebar */
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    background: radial-gradient(circle at top, #c9b8ff 0, #b09bff 35%, #8d7bff 70%, #6a5ce6 100%);
    color: #261243;
}

/* Sidebar claro */
.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(244, 237, 255, 0.96), rgba(224, 210, 255, 0.98));
    border-right: 1px solid rgba(185, 160, 255, 0.8);
    box-shadow: 10px 0 28px rgba(98, 76, 210, 0.45);
    z-index: 20;
}

.app-sidebar-inner {
    height: 100%;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Logo ancho */
.app-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Menú lateral */
.app-nav {
    margin-top: 12px;
}

.app-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    color: #34205c;
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}

.app-menu li.current-menu-item > a,
.app-menu li a:hover {
    background: radial-gradient(circle at left, rgba(255, 255, 255, 0.9), rgba(177, 150, 255, 0.9));
    box-shadow: 0 0 12px rgba(133, 97, 255, 0.6);
    transform: translateY(-1px);
}

/* Área principal tipo app */
.app-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar solo móvil */
.app-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(244, 237, 255, 0.98);
    border-bottom: 1px solid rgba(185, 160, 255, 0.8);
}

.app-topbar-logo img {
    height: 32px;
    width: auto;
}

/* Botón hamburguesa */
.app-burger {
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.app-burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #261243;
}

/* Contenido ancho tipo app 100% width */
.app-content {
    flex: 1;
    padding: 24px 24px 20px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Card principal clara dentro del contenido */
.app-content > * {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 22px;
    border: 1px solid rgba(209, 193, 255, 0.9);
    box-shadow: 0 0 16px rgba(114, 88, 255, 0.28);
    padding: 22px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Textos y formularios */
.app-content,
.app-content p,
.app-content label,
.app-content .tutor-text,
.app-content .tutor-form-group label {
    color: #261243;
}

.app-content input[type="text"],
.app-content input[type="password"],
.app-content input[type="email"],
.app-content input[type="number"],
.app-content input[type="search"],
.app-content textarea,
.app-content select {
    background: #ffffff;
    color: #261243;
    border-radius: 12px;
    border: 1px solid rgba(185, 160, 255, 0.8);
}

/* Evitar doble “card” en layouts de Tutor */
.tutor-container,
.tutor-wrap,
.tutor-course-details-page,
.tutor-course-lesson,
.tutor-dashboard {
    background: transparent;
}

/* Footer */
.app-footer {
    padding: 10px 32px 18px;
    font-size: 0.8rem;
    color: #4b347a;
    text-align: center;
    opacity: 0.9;
}

/* Botones morado-neón sobre fondo claro */
.tutor-btn,
.tutor-button,
button.tutor-btn,
.app-content button,
.app-content .button {
    background: linear-gradient(135deg, #ff7fdc, #9c6bff);
    color: #ffffff;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    padding: 10px 24px;
    box-shadow: 0 6px 16px rgba(151, 109, 255, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.tutor-btn:hover,
.tutor-button:hover,
.app-content button:hover,
.app-content .button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 0 22px rgba(177, 135, 255, 0.9);
}

/* Responsive: sidebar colapsable, topbar visible */
@media (max-width: 960px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 220px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-main {
        min-height: 100vh;
    }

    .app-topbar {
        display: flex;
    }

    .app-content {
        padding: 16px 14px 12px;
    }

    .app-content > * {
        padding: 16px 14px;
        border-radius: 18px;
    }
}

/* Sidebar colapsado en escritorio: banda fina */
.app-shell.sidebar-collapsed {
    grid-template-columns: 56px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .app-sidebar-inner {
    align-items: center;
}

.app-shell.sidebar-collapsed .app-logo img {
    max-width: 40px;
}

/* Menú comprimido (solo “icono”) */
.app-shell.sidebar-collapsed .app-menu li a {
    justify-content: center;
    padding: 8px 6px;
    font-size: 0;
}

/* Dashboard Tutor LMS más claro */
.tutor-dashboard,
.tutor-dashboard-wrapper,
.tutor-dashboard-content,
.tutor-dashboard-content-inner,
.tutor-dashboard-item,
.tutor-dashboard-content .tutor-card,
.tutor-dashboard .tutor-card {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #261243 !important;
    border-radius: 20px;
    border: 1px solid rgba(209, 193, 255, 0.9);
    box-shadow: none;
}

/* Sidebar interno de Tutor más pastel */
.tutor-dashboard-left-menu,
.tutor-dashboard-left-menu .tutor-nav-link,
.tutor-dashboard-left-menu .tutor-nav-item {
    background: transparent !important;
    color: #261243 !important;
}

.tutor-dashboard-left-menu .tutor-nav-item a {
    border-radius: 12px;
    padding: 9px 12px;
}

.tutor-dashboard-left-menu .tutor-nav-item.is-active a,
.tutor-dashboard-left-menu .tutor-nav-item a:hover {
    background: linear-gradient(90deg, #fef5ff, #e3d4ff);
    color: #261243 !important;
}

/* Páginas de enfoque Tutor LMS: sin sidebar de theme y ancho completo */
.tutor-focus-page .app-sidebar {
    display: none;
}

.tutor-focus-page .app-shell {
    grid-template-columns: 1fr;
}

.tutor-focus-page .app-content {
    width: 100%;
}