* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #e8f4f8;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

/* Iconos compartidos */
.icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    color: currentColor;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-lg {
    width: 64px;
    height: 64px;
}

.icon-text-gap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #f5f5f5;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.sidebar-content {
    flex: 1;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.course-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.course-item.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.course-item:not(.active) {
    background-color: white;
    color: #666;
}

.course-item:not(.active):hover {
    background-color: #f0f0f0;
}

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

.week-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 500;
}

.week-item.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.week-item:not(.active) {
    background-color: white;
    color: #666;
}

.week-item:not(.active):hover {
    background-color: #f0f0f0;
}

.activities-list {
    margin-top: 8px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-item {
    padding: 10px 12px;
    padding-left: 14px;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    border-left: 3px solid #d0d0d0;
    background-color: #fafafa;
    border-radius: 4px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.activity-item:hover {
    background-color: #f0f0f0;
    border-left-color: #4a90e2;
    color: #333;
    transform: translateX(2px);
}

.activity-item.active {
    background-color: #e8f4fd;
    border-left-color: #4a90e2;
    color: #1f4b99;
    font-weight: 500;
}

.week-item.active .activity-item {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.week-item.active .activity-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-left-color: rgba(255, 255, 255, 0.8);
}

.week-item.active .activity-item.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-left-color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Contenido principal */
.main-content {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
    background-color: white;
}

.breadcrumbs {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.activities-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.activity-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.activity-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.activity-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.response-btn {
    align-self: center;
    margin-top: auto;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.response-btn:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a5f8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.4);
}

.response-btn:active {
    transform: translateY(0);
}

/* Scrollbar personalizado */
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Modales personalizados */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.custom-modal-overlay.show {
    opacity: 1;
}

.custom-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.2s ease;
    position: relative;
}

.custom-modal-overlay.show .custom-modal {
    transform: scale(1);
}

.custom-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-modal-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.custom-modal-icon.info {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.custom-modal-icon.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.custom-modal-icon.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.custom-modal-icon.success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.custom-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.custom-modal-body {
    padding: 24px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.custom-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.custom-modal-btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.custom-modal-btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a5f8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.custom-modal-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.custom-modal-btn-secondary:hover {
    background: #e0e0e0;
}

.custom-modal-btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.custom-modal-btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

/* Estado vacío - Mensaje de selección */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 40px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.empty-state-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
}

/* Botón de cerrar sesión */
.logout-btn {
    width: 100%;
    padding: 12px 16px;
    margin-top: 20px;
    background-color: #e0e0e0;
    color: #666;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.logout-btn:hover {
    background-color: #d0d0d0;
    color: #555;
}

.logout-btn:active {
    background-color: #c0c0c0;
    transform: translateY(1px);
}

/* Estilos para archivos en actividades */
.activity-files {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.file-item:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.btn-view-file,
.btn-download-file {
    padding: 6px 12px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.btn-view-file {
    background: #4a90e2;
}

.btn-view-file:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.btn-download-file {
    background: #28a745;
}

.btn-download-file:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

