﻿:root {
    --primary-blue: #004895;
    --light-blue: #E3F2FD;
    --sidebar-width: 280px;
    --header-height: 64px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Header */
.top-header {
    background: var(--primary-blue);
    color: white;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .logo-section img {
        height: 32px;
    }

.user-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 80px;
    top: var(--header-height);
    bottom: 0;
    width: var(--sidebar-width);
    background: #FAFAFA;
    border-right: 1px solid #E0E0E0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1020;
}

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #E0E0E0;
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.search-box {
    padding: 16px;
}

.nav-section {
    padding: 8px 16px;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 8px;
}

.nav-item-custom {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #212529;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

    .nav-item-custom:hover {
        background: #E3F2FD;
    }

    .nav-item-custom.active {
        background: var(--light-blue);
        border-left-color: var(--primary-blue);
        color: var(--primary-blue);
        font-weight: 500;
    }

.module-item {
    padding: 10px 16px 10px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    color: #212529;
    transition: background 0.2s;
}

    .module-item:hover {
        background: #F5F5F5;
    }

    .module-item.active {
        background: var(--light-blue);
        color: var(--primary-blue);
        font-weight: 500;
    }

.submodule-item.active {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 500;
}

.submodule-item {
    padding: 8px 16px 8px 48px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
}

    .submodule-item:hover {
        background: #F5F5F5;
    }

/* Main Content */
.main-content {
    margin-left: calc(80px + var(--sidebar-width));
    margin-top: var(--header-height);
    padding: 24px;
    transition: margin-left 0.3s ease;
}

    .main-content.expanded {
        margin-left: 80px;
    }

.breadcrumb-custom {
    background: transparent;
    padding: 0;
    font-size: 14px;
    gap: 0.5rem;
}

    .breadcrumb-custom .breadcrumb-item {
        color: var(--primary-blue);
        font-weight: 500;
        display: flex;
        align-items: center;
    }

        .breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
            content: ">";
            color: #666;
            font-weight: 400;
            padding: 0 0.5rem;
        }

        .breadcrumb-custom .breadcrumb-item.active {
            color: #666;
            font-weight: normal;
        }

        .breadcrumb-custom .breadcrumb-item i {
            color: var(--primary-blue);
        }

.content-header {
    background: white;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.heading-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.heading-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .heading-title h1 {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
    }

.tag-badge {
    background: #E3F2FD;
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.btn-group-custom {
    display: flex;
    gap: 8px;
}

.nav-tabs-custom {
    border-bottom: 2px solid #E0E0E0;
    margin-top: 16px;
}

    .nav-tabs-custom .nav-link {
        border: none;
        color: #666;
        padding: 12px 20px;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: all 0.2s;
    }

        .nav-tabs-custom .nav-link:hover {
            color: var(--primary-blue);
            border-bottom-color: var(--primary-blue);
        }

        .nav-tabs-custom .nav-link.active {
            color: var(--primary-blue);
            border-bottom-color: var(--primary-blue);
            font-weight: 500;
        }

.content-section {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .section-title h2 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

.placeholder-box {
    border: 2px dashed #90CAF9;
    background: #E3F2FD;
    border-radius: 8px;
    padding: 80px 20px;
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

    .placeholder-box p {
        margin: 0;
        font-size: 14px;
    }

        .placeholder-box p:first-child {
            font-weight: 500;
            color: #212529;
            margin-bottom: 4px;
        }

/* Buttons */
.btn-outline-custom {
    border: 1px solid #E0E0E0;
    color: #212529;
    background: white;
}

    .btn-outline-custom:hover {
        background: #F5F5F5;
        border-color: #E0E0E0;
    }

.btn-primary-custom {
    background: #D32F2F;
    border: none;
    color: white;
}

    .btn-primary-custom:hover {
        background: #C62828;
    }

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .user-section .user-name {
        display: none;
    }
}

@media (max-width: 768px) {
    .btn-group-custom {
        flex-wrap: wrap;
    }

    .heading-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

.sidebar-bottom {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #E0E0E0;
}

.toggle-sidebar-btn {
    position: fixed;
    left: calc(80px + var(--sidebar-width));
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 0 4px 4px 0;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1029;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-sidebar-btn:hover {
        background: #f8f9fa;
        transform: translateX(2px);
    }

    .toggle-sidebar-btn.collapsed {
        left: 80px;
        transform: translateX(0);
    }

    .toggle-sidebar-btn i {
        font-size: 14px;
        color: #666;
        transition: transform 0.3s ease;
    }

    .toggle-sidebar-btn:hover i {
        color: var(--primary-blue);
    }

/* Estilos espec�ficos para el formulario */
.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.upload-area {
    border: 2px dashed #90CAF9;
    background: #E3F2FD;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .upload-area:hover {
        background: #D6E8FA;
    }

    .upload-area p {
        margin: 0;
        font-size: 14px;
    }

        .upload-area p:first-child {
            font-weight: 500;
            color: #212529;
            margin-bottom: 4px;
        }

.upload-icon {
    font-size: 24px;
    color: #90CAF9;
    margin-bottom: 12px;
}

.required-field::after {
    content: " *";
    color: #D32F2F;
}

.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    z-index: 1;
}

.step.active .step-number {
    background-color: #0066b3;
}

.step:not(.active) .step-number {
    background-color: #ccc;
}

.step-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

.container-form {
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.form-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
}

    .form-control:focus, .form-select:focus {
        border-color: #0066b3;
        box-shadow: 0 0 0 0.2rem rgba(0, 102, 179, 0.15);
    }

.btn-upload {
    border: 1px dashed #d1d1d1;
    background: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-upload:hover {
        border-color: #0066b3;
        color: #0066b3;
    }

.upload-area {
    border: 2px dashed #d1d1d1;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
    cursor: pointer;
}

    .upload-area:hover {
        border-color: #0066b3;
        background: #f0f7ff;
    }

.upload-icon {
    font-size: 48px;
    color: #0066b3;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.upload-subtext {
    font-size: 12px;
    color: #999;
}

.form-check-input:checked {
    background-color: #0066b3;
    border-color: #0066b3;
}

.radio-group {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.form-check {
    margin: 0;
}

.form-check-label {
    font-size: 14px;
    color: #333;
    margin-left: 8px;
}

.footer-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-cancel {
    background: white;
    border: 1px solid #d1d1d1;
    color: #666;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-cancel:hover {
        background: #f5f5f5;
    }

.btn-save {
    background: white;
    border: 1px solid #d1d1d1;
    color: #666;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-save:hover {
        background: #f5f5f5;
    }

.btn-next {
    background: linear-gradient(135deg, #e98ba8 0%, #d97694 100%);
    border: none;
    color: white;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-next:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(217, 118, 148, 0.4);
    }

.highlight-note {
    background: #fffacd;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    display: inline-block;
}

/* Estilos para previsualizaciones */
.preview-item {
    position: relative;
    display: inline-block;
}

    .preview-item .btn-remove {
        position: absolute;
        top: -8px;
        right: -8px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 10px;
        color: #666;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .preview-item .btn-remove:hover {
            background: #f8f9fa;
            color: #dc3545;
        }

.video-preview {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .video-preview i {
        color: #0066b3;
        font-size: 24px;
    }

    .video-preview span {
        font-size: 13px;
        color: #666;
        word-break: break-word;
    }

/* Estilo para bot�n deshabilitado */
.btn-next:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Icon Sidebar - Barra lateral de iconos */
.icon-sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    width: 80px;
    background: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1045;
    gap: 20px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    text-decoration: none;
    font-size: 24px;
    position: relative;
}

    .icon-item:hover {
        background: #e3f2fd;
        color: var(--primary-blue);
    }

    .icon-item.active {
        background: #e3f2fd;
        color: var(--primary-blue);
        font-weight: 600;
    }

    .icon-item .icon-label {
        font-size: 10px;
        margin-top: 4px;
        text-align: center;
        width: 100%;
    }

/* Ajustar sidebar para dejar espacio a icon-sidebar */
/* Ya ajustado arriba en la definici�n de .sidebar */

/* Responsive para icon-sidebar */
@media (max-width: 991px) {
    .icon-sidebar {
        display: none;
    }

    .sidebar {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}
a {
    text-decoration: none;
    color: inherit;
}

/*css para estados en las programaciones de citas*/
/* Estado: Programado */
.bg-warning.text-dark {
    background-color: #ffc107 !important;
    color: #212529 !important;
    border: 1px solid #ffc107;
}

/* Estado: Atendido */
.bg-success {
    background-color: #198754 !important;
    color: white !important;
    border: 1px solid #198754;
}

/* Estado: Cancelado */
.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545;
}

/* Estado: Reprogramado */
.bg-info {
    background-color: #0dcaf0 !important;
    color: #212529 !important;
    border: 1px solid #0dcaf0;
}

/* Estado: En Proceso */
.bg-primary {
    background-color: #0d6efd !important;
    color: white !important;
    border: 1px solid #0d6efd;
}

/* Estado: Rechazado */
.bg-dark {
    background-color: #212529 !important;
    color: white !important;
    border: 1px solid #212529;
}

/* Estado: Pendiente Confirmación */
.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
    border: 1px solid #6c757d;
}

/* Estado: Atendido Parcialmente */
.bg-orange {
    background-color: #fd7e14 !important;
    color: white !important;
    border: 1px solid #fd7e14;
}

/* Estado: Suspendido */
.bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
    border: 1px solid #6f42c1;
}