/* Custom Styles for SGA - Sistema de Gestión Académica SENA */
:root {
    --sga-primary: #39A900;
    --sga-primary-dark: #007832;
    --sga-primary-light: #e8f5e9;
    --sga-success: #2e7d32;
    --sga-success-light: #e8f5e9;
    --sga-warning: #f57c00;
    --sga-warning-light: #fff8e1;
    --sga-danger: #dc3545;
    --sga-danger-light: #ffebee;
    --sga-info: #0288d1;
    --sga-info-light: #e3f2fd;
    --sga-dark: #1e293b;
    --sga-muted: #64748b;
    --sga-border: rgba(0, 0, 0, 0.05);
    --sga-bg: #f8fafc;
    --sga-sidebar-bg: #ffffff;
    --sga-card-bg: #ffffff;
    --font-family: 'Inter', sans-serif;
    
    /* Gradientes Premium */
    --gradient-banner: linear-gradient(135deg, #004b30 0%, #003622 100%);
    --gradient-brand: linear-gradient(135deg, #39A900 0%, #007832 100%);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background-color: var(--sga-bg);
}

body {
    font-family: var(--font-family);
    background-color: var(--sga-bg);
    color: var(--sga-dark);
    -webkit-font-smoothing: antialiased;
}

/* Card Premium */
.card {
    background-color: var(--sga-card-bg);
    border: 1px solid var(--sga-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
}

/* Custom Table Styling */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(0, 0, 0, 0.015);
}

.table th {
    font-weight: 600;
    color: var(--sga-muted);
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--sga-border) !important;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--sga-border) !important;
    color: var(--sga-dark);
    font-size: 0.85rem;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

/* Estilos de Botones y Badges */
.btn {
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--sga-primary);
    border-color: var(--sga-primary);
}

.btn-primary:hover {
    background-color: var(--sga-primary-dark);
    border-color: var(--sga-primary-dark);
}

.badge {
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
}

/* SGA App Layout */
.sga-app {
    min-height: 100vh;
    background-color: var(--sga-bg);
}

/* Sidebar estilo panel premium */
.sga-sidebar {
    position: fixed;
    inset: 1rem auto 1rem 1rem;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    width: 320px;
    padding: 1.9rem 1.55rem 1.45rem;
    border-right: 1px solid rgba(57, 169, 0, 0.14);
    border: 1px solid rgba(100, 116, 139, 0.12);
    border-radius: 26px;
    background:
        radial-gradient(circle at 18% 0%, rgba(57, 169, 0, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fffb 45%, #ecf8f2 100%);
    box-shadow: 14px 0 42px rgba(15, 23, 42, 0.05);
}

.sga-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.05rem 0.55rem 1.55rem;
    color: var(--sga-dark);
    text-decoration: none;
}

.sga-brand-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(57, 169, 0, 0.16);
    box-shadow: 0 14px 28px rgba(57, 169, 0, 0.14);
}

.sga-brand-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.sga-brand-copy {
    display: grid;
    line-height: 1.12;
}

.sga-brand-text {
    font-size: 2rem;
    font-weight: 800;
    color: #00A356;
    letter-spacing: 0;
}

.sga-brand-copy small {
    color: #5f6f86;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
}

.sga-brand strong {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.sga-brand small {
    margin-top: 0.12rem;
    color: #5f6f86;
    font-size: 0.86rem;
    font-weight: 500;
}

/* Buscador Sidebar */
.sga-menu-search {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(100, 116, 139, 0.18);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #8290a4;
    margin-bottom: 1.95rem;
    padding: 0.82rem 3.45rem 0.82rem 1rem;
    position: relative;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sga-menu-search:focus-within {
    border-color: rgba(57, 169, 0, 0.34);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(57, 169, 0, 0.08), 0 12px 26px rgba(15, 23, 42, 0.05);
}

.sga-menu-search i {
    font-size: 1.15rem;
}

.sga-menu-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sga-dark);
    font-size: 0.94rem;
    font-weight: 500;
}

.sga-menu-search::after {
    content: "⌘K";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f5f8f7;
    border: 1px solid rgba(100, 116, 139, 0.12);
    border-radius: 8px;
    padding: 0.2rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #8a96a8;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}

/* Menú Sidebar */
.sga-menu {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 0.1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(57, 169, 0, 0.22) transparent;
}

.sga-menu-title {
    padding: 0.95rem 0.8rem 0.5rem;
    color: #00965e;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sga-menu-title:not(:first-child) {
    margin-top: 0.75rem;
    border-top: 1px solid rgba(100, 116, 139, 0.16);
}

.sga-menu-link {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-height: 58px;
    padding: 0.62rem 0.8rem;
    border-radius: 16px;
    color: #40516a;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sga-menu-link i {
    display: grid;
    width: 42px;
    height: 42px;
    min-width: 42px;
    place-items: center;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    color: #66768d;
    font-size: 1.05rem;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sga-menu-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sga-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: #0b7f43;
    transform: translateX(2px);
}

.sga-menu-link:hover i {
    background-color: #eef9f2;
    color: #00A356;
}

.sga-menu-link.active {
    background: linear-gradient(90deg, rgba(57, 169, 0, 0.13) 0%, rgba(57, 169, 0, 0.05) 100%);
    color: #008f46;
    box-shadow: inset 4px 0 0 #00A356;
}

.sga-menu-link.active i {
    background-color: #e8f8ed;
    color: #00A356;
    box-shadow: 0 8px 18px rgba(57, 169, 0, 0.12);
}

.sga-menu-link.logout {
    margin-top: auto;
}

.sga-menu-link.logout:hover {
    background-color: var(--sga-danger-light);
    color: var(--sga-danger);
}

.sga-menu-link.logout:hover i {
    color: var(--sga-danger);
    background-color: #fff1f2;
}

/* Usuario Sidebar */
.sga-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(100, 116, 139, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--sga-dark);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sga-sidebar-user:hover {
    background-color: #ffffff;
    border-color: rgba(57, 169, 0, 0.18);
    transform: translateY(-1px);
}

.sga-sidebar-user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 7px 14px rgba(15, 23, 42, 0.12);
}

.sga-sidebar-user span {
    display: grid;
    min-width: 0;
    line-height: 1.25;
}

.sga-sidebar-user strong {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sga-sidebar-user small {
    margin-top: 0.15rem;
    color: #607086;
    font-size: 0.78rem;
    font-weight: 500;
}

.sga-sidebar-user > i {
    margin-left: auto;
    display: grid;
    width: 38px;
    height: 38px;
    min-width: 38px;
    place-items: center;
    border: 1px solid rgba(57, 169, 0, 0.15);
    border-radius: 12px;
    color: #00A356;
    font-size: 0.85rem;
    background-color: rgba(255, 255, 255, 0.7);
}

.sga-sidebar-backdrop {
    display: none;
}

/* Workspace */
.sga-workspace {
    min-height: 100vh;
    margin-left: 352px;
    display: flex;
    flex-direction: column;
}

/* Topbar Premium */
.sga-topbar {
    position: sticky;
    top: 0;
    z-index: 1025;
    display: flex;
    align-items: center;
    min-height: 70px;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid var(--sga-border);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.sga-global-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    background-color: #f8fafc;
    color: #94a3b8;
    width: min(360px, 40vw);
    margin-left: auto;
    padding: 0.6rem 0.9rem;
    transition: all 0.22s ease;
}

.sga-global-search:focus-within {
    border-color: var(--sga-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(57, 169, 0, 0.1);
}

.sga-global-search i {
    font-size: 0.88rem;
}

.sga-global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sga-dark);
    font-size: 0.82rem;
    font-weight: 500;
}

.sga-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.25rem;
}

.sga-topbar-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    transition: all 0.2s ease;
    position: relative;
}

.sga-topbar-button:hover {
    border-color: var(--sga-border);
    background-color: #f1f5f9;
    color: var(--sga-primary);
}

.sga-topbar-button .badge-notify {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--sga-primary);
    color: #ffffff;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    padding: 0;
}

.sga-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: 0.5rem;
    color: var(--sga-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
}

.sga-topbar-user:hover {
    background-color: #f8fafc;
}

.sga-topbar-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sga-topbar-user span {
    display: grid;
    line-height: 1.2;
}

.sga-topbar-user strong {
    font-size: 0.8rem;
    font-weight: 600;
}

.sga-topbar-user small {
    color: var(--sga-muted);
    font-size: 0.62rem;
    font-weight: 500;
}

.sga-topbar-user > i {
    color: #94a3b8;
    font-size: 0.7rem;
}

.menu-button {
    display: none;
}

/* Content Area */
.sga-content {
    flex-grow: 1;
    padding: 2.25rem 2.5rem;
    background-color: var(--sga-bg);
}

/* Footer */
.sga-workspace .footer-bottom {
    padding: 1.5rem 2.5rem !important;
    border-top: 1px solid var(--sga-border) !important;
    background-color: #ffffff !important;
    font-size: 0.8rem;
    color: var(--sga-muted);
}

.sga-workspace .footer-bottom a {
    color: var(--sga-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sga-workspace .footer-bottom a:hover {
    color: var(--sga-dark);
}

/* Elementos del Dashboard */
.sga-nav-pills {
    padding: 0.35rem;
    border: 1px solid var(--sga-border);
    border-radius: 14px;
    background-color: #ffffff;
    display: inline-flex;
}

.sga-nav-pills .nav-link {
    color: var(--sga-muted);
    background-color: transparent;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.sga-nav-pills .nav-link:hover {
    color: var(--sga-dark);
    background-color: #f8fafc;
}

.sga-nav-pills .nav-link.active {
    color: var(--sga-primary-dark) !important;
    background-color: var(--sga-primary-light) !important;
    box-shadow: none !important;
}

/* Banner de Bienvenida Premium */
.banner-welcome {
    background: var(--gradient-banner);
    border-radius: 20px;
    padding: 2.25rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 77, 48, 0.08);
}

.banner-welcome::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57,169,0,0.15) 0%, rgba(57,169,0,0) 70%);
    pointer-events: none;
}

.banner-welcome .badge-active {
    background-color: rgba(57, 169, 0, 0.25);
    border: 1px solid rgba(57, 169, 0, 0.4);
    color: #55efc4;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.banner-welcome .badge-active::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #2ed573;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #2ed573;
}

.banner-welcome h3 {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.banner-welcome p {
    color: #a3e635;
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 65%;
    margin-bottom: 0;
}

.banner-user-card {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 320px;
    transition: all 0.25s ease;
}
.banner-user-card:hover {
    background-color: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.banner-user-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.banner-user-card span {
    display: grid;
    line-height: 1.3;
}

.banner-user-card strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
}

.banner-user-card small {
    font-size: 0.65rem;
    font-weight: 700;
    color: #a3e635;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.banner-user-card .user-email {
    font-size: 0.72rem;
    color: #cbd5e1;
    margin-top: 0.15rem;
}

/* Tarjetas Estadísticas con Sparkline */
.stat-card {
    background-color: #ffffff;
    border: 1px solid var(--sga-border);
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--sga-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--sga-dark);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-desc {
    font-size: 0.7rem;
    color: var(--sga-muted);
}

.stat-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.stat-icon.green { background-color: #eaf7ef; color: #2e7d32; }
.stat-icon.yellow { background-color: #fff8e1; color: #f57c00; }
.stat-icon.blue { background-color: #e3f2fd; color: #0288d1; }
.stat-icon.red { background-color: #ffebee; color: #dc3545; }

/* Sparkline SVG */
.sparkline {
    width: 65px;
    height: 20px;
}

/* Acciones Rápidas */
.action-card {
    background-color: #ffffff;
    border: 1px solid var(--sga-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--sga-dark);
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 15px rgba(0,0,0,0.03);
}

.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
}

.action-icon.green { background-color: #eaf7ef; color: #2e7d32; }
.action-icon.blue { background-color: #e3f2fd; color: #0288d1; }
.action-icon.orange { background-color: #fff8e1; color: #f57c00; }
.action-icon.purple { background-color: #f3e5f5; color: #7b1fa2; }

.action-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    line-height: 1.25;
}

.action-title {
    font-size: 0.82rem;
    font-weight: 600;
}

.action-desc {
    font-size: 0.68rem;
    color: var(--sga-muted);
    margin-top: 0.1rem;
}

.action-card > i {
    color: #94a3b8;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.action-card:hover > i {
    transform: translateX(3px);
    color: var(--sga-dark);
}

/* Timeline Horarios */
.timeline-sga {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.timeline-sga::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--sga-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -21px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #cbd5e1;
}

.timeline-marker.green { background-color: #2e7d32; box-shadow: 0 0 0 2px #c8e6c9; }
.timeline-marker.blue { background-color: #0288d1; box-shadow: 0 0 0 2px #e3f2fd; }

.timeline-content {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.timeline-time {
    font-weight: 600;
    color: var(--sga-muted);
    min-width: 80px;
}

.timeline-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.timeline-prog {
    font-weight: 600;
    color: var(--sga-dark);
}

.timeline-meta {
    font-size: 0.68rem;
    color: var(--sga-muted);
    margin-top: 0.15rem;
}

/* Actividad Reciente */
.recent-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.78rem;
}

.activity-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.activity-icon-box.green { background-color: #eaf7ef; color: #2e7d32; }
.activity-icon-box.blue { background-color: #e3f2fd; color: #0288d1; }
.activity-icon-box.orange { background-color: #fff8e1; color: #f57c00; }

.activity-body {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    flex-grow: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--sga-dark);
}

.activity-meta {
    font-size: 0.68rem;
    color: var(--sga-muted);
}

.activity-time {
    font-size: 0.68rem;
    color: var(--sga-muted);
    white-space: nowrap;
}

/* Modal de asignacion de horarios */
.schedule-modal-dialog {
    max-width: 920px;
}

.schedule-modal-content {
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28) !important;
}

.schedule-modal-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.85rem;
    min-height: 90px;
    color: #fff;
    border: 0;
    background:
        radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.15), transparent 31%),
        radial-gradient(circle at 78% 100%, rgba(255, 255, 255, 0.1), transparent 28%),
        linear-gradient(135deg, #008f3d 0%, #087d36 48%, #006b2f 100%);
}

.schedule-modal-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.schedule-modal-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #087d36;
    background: linear-gradient(135deg, #ffffff 0%, #dcf7e8 100%);
    box-shadow: 0 12px 30px rgba(0, 75, 48, 0.22);
    font-size: 1.55rem;
}

.schedule-modal-title {
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
}

.schedule-modal-subtitle {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.35;
}

.schedule-modal-close {
    margin: 0;
    padding: 0.35rem;
    opacity: 0.92;
    filter: invert(1) grayscale(100%) brightness(200%);
}

.schedule-modal-body {
    padding: 1.65rem 1.85rem 1.45rem;
    background: #fff;
}

.schedule-modal-grid {
    --bs-gutter-x: 1.35rem;
    --bs-gutter-y: 1rem;
}

.schedule-modal-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 700;
}

.schedule-modal-label i {
    width: 18px;
    color: #0f963d;
    text-align: center;
    font-size: 1rem;
}

.schedule-modal-control {
    min-height: 56px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    color: #1f2937;
    background-color: #fff;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: none;
}

.schedule-modal-control::placeholder {
    color: #8b95a5;
}

.schedule-modal-control:focus {
    border-color: #8bd5a5;
    box-shadow: 0 0 0 0.2rem rgba(16, 163, 74, 0.14);
}

.schedule-modal-control:disabled,
.schedule-modal-control[readonly] {
    color: #667085;
    background-color: #f4f6f8;
    border-color: #e8edf2;
    font-weight: 700;
}

.schedule-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.45rem 1.85rem;
    border-top: 1px solid #e5eaf0;
    background: #f8fafc;
}

.schedule-modal-cancel,
.schedule-modal-save {
    min-width: 150px;
    min-height: 48px;
    border-radius: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.schedule-modal-cancel {
    color: #475569;
    background: #fff;
    border: 1px solid #cbd5e1;
}

.schedule-modal-cancel:hover {
    color: #1f2937;
    background: #f8fafc;
    border-color: #94a3b8;
}

.schedule-modal-save {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #0f963d 0%, #008f3d 100%);
    box-shadow: 0 12px 24px rgba(0, 143, 61, 0.24);
}

.schedule-modal-save:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 143, 61, 0.28);
}

/* Responsividad general */
@media (max-width: 1050px) {
    .sga-sidebar {
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        inset: 0 auto 0 0;
        border-radius: 0 24px 24px 0;
        background:
            radial-gradient(circle at 18% 0%, rgba(57, 169, 0, 0.12), transparent 34%),
            linear-gradient(180deg, #ffffff 0%, #f8fffb 45%, #ecf8f2 100%) !important;
        border-right: 1px solid rgba(57, 169, 0, 0.14) !important;
    }
    .sga-workspace {
        margin-left: 0;
    }
    .menu-button {
        display: grid;
    }
    .sga-menu-open .sga-sidebar {
        transform: translateX(0);
    }
    .sga-menu-open .sga-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1035;
        display: block;
        border: 0;
        background: rgba(15, 23, 42, 0.3);
        backdrop-filter: blur(2px);
    }
    .sga-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .sga-sidebar {
        width: min(88vw, 330px);
        padding: 1.45rem 1rem 1rem;
    }
    .sga-brand-icon {
        width: 52px;
        height: 52px;
    }
    .sga-brand-icon img {
        width: 34px;
        height: 34px;
    }
    .sga-brand-text {
        font-size: 1.75rem;
    }
    .sga-menu-link {
        min-height: 54px;
        font-size: 0.93rem;
    }
    .sga-menu-link i {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .sga-topbar {
        padding: 0.5rem 1rem;
    }
    .sga-global-search {
        display: none;
    }
    .sga-topbar-actions {
        margin-left: auto;
    }
    .sga-topbar-user span, .sga-topbar-user > i {
        display: none;
    }
    .sga-content {
        padding: 1.25rem 1rem;
    }
    .banner-welcome {
        padding: 1.5rem;
    }
    .banner-welcome p {
        max-width: 100%;
    }
    .banner-user-card {
        width: 100%;
        margin-top: 1.25rem;
    }
    .schedule-modal-dialog {
        margin: 0.75rem;
    }
    .schedule-modal-header {
        padding: 1.2rem;
    }
    .schedule-modal-body {
        padding: 1.25rem;
    }
    .schedule-modal-footer {
        padding: 1.1rem 1.25rem;
        flex-direction: column-reverse;
    }
    .schedule-modal-cancel,
    .schedule-modal-save {
        width: 100%;
    }
}
