﻿/* Sidebar vertical desplegable desde la izquierda*/
/* Tema Tutoría (Verde) */
body {
    margin: 0px !important;
    padding: 0px !important;
}

.theme-tutoria #sidebar {
    position: fixed;
    top: 0; /* Ajusta este valor si tu navbar tiene otra altura */
    left: 0;
    width: 300px;
    height: 100vh; /* Ajusta según la altura del navbar */
    /*background: linear-gradient(135deg, #2E7D32 60%, #1B5E20 100%);*/
    background-color: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    opacity: 1;
    overflow: hidden;
}

    .theme-tutoria #sidebar.hidden {
        transform: translateX(-100%);
        opacity: 0;
    }

    .theme-tutoria #sidebar.show {
        transform: translateX(0);
    }

    /* Encabezado */
    .theme-tutoria #sidebar .sidebar-header {
        font-size: 0.5rem !important;
        font-weight: 700;
        color: #fff;
        padding: 1.2rem;
        padding-bottom: 0.2rem;
        letter-spacing: 1px;
        border-bottom: 1px solid #149c68;
    }

.sidebar-header h2 {
    font-size: 1.5 rem !important;
}

main.sidebar-visible {
    margin-left: 300px;
}

/* Lista con scroll interno */
.theme-tutoria .chat-list {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    background-color: #149c68;

    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* Ítems de chat */
.theme-tutoria .chat-item {
    display: flex;
    align-items: center;
   
    
    
    cursor: pointer;
    color: #2E7D32;
    border-top: 2px solid #149c68;
    border-bottom: 2px solid #149c68;




    background: #f3e5f5;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.06);
    transition: background 0.3s ease;
    cursor: pointer;
    
}

    /*.theme-tutoria .chat-item:hover {
	background: #dcedc8;
}*/
    .theme-tutoria .chat-item:hover {
        transform: translateY(-1px);
        background: #f5f5f5;
        box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    }

.theme-tutoria .chat-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.theme-tutoria .chat-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.theme-tutoria .chat-name {
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #149c68;
}

.theme-tutoria .chat-status {
    font-size: 0.95rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-tutoria .chat-time {
    font-size: 0.85rem;
    color: #999;
    margin-left: 1rem;
    white-space: nowrap;
}

/* Footer */
.theme-tutoria #sidebar .sidebar-footer {
    font-size: 0.95rem;
    color: #c8e6c9;
    padding: 1rem;
    border-top: 1px solid #388e3c;
    text-align: center;
}

/* Botón flotante */

.theme-tutoria #sidebar-button {
    position: fixed;
    top: 25%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 100px;
    background: #fff;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    margin: 0;
    padding-left: 0;
    color: #149c68;
    transition: all 0.3s ease;
    background-color: #e0e0e0;
}

    .theme-tutoria #sidebar-button:hover {
        color: #f5f5f5;
        background: #149c68;
        box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
        width: 45px;
    }

#sidebar-button .icon {
    font-size: 18px;
    color: #7c3e50;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-tutoria #sidebar {
        max-width: 100vw;
        border-radius: 0 0 18px 18px;
    }

    .theme-tutoria #sidebar-button {
        left: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
    }

    .theme-tutoria .chat-avatar img {
        width: 40px;
        height: 40px;
    }

    .theme-tutoria .chat-item {
        padding: 0.6rem 0.8rem;
    }

    .theme-tutoria .chat-name {
        font-size: 1rem;
    }

    .theme-tutoria .chat-status {
        font-size: 0.85rem;
    }

    .theme-tutoria .chat-time {
        font-size: 0.75rem;
    }
}

/* Utilidades */
.hide {
    display: none;
}

.show {
    display: block;
}

/* Sidebar sticky para tema Ocio (Lila) */
.theme-ocio #sidebar {
    position: fixed;
    top: 0; /* Ajusta este valor si tu navbar tiene otra altura */
    left: 0;
    width: 300px;
    height: 100vh; /* Ajusta según la altura del navbar */
    background: linear-gradient(135deg, #8E24AA 60%, #6A1B9A 100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    opacity: 1;
    overflow: hidden;
}

    .theme-ocio #sidebar.hidden {
        transform: translateX(-100%);
        opacity: 0;
    }

    .theme-ocio #sidebar.show {
        transform: translateX(0);
    }

    /* Encabezado */
    .theme-ocio #sidebar .sidebar-header {
        font-size: 0.5rem !important;
        font-weight: 700;
        color: #fff;
        padding: 1.2rem;
        padding-bottom: 0.2rem;
        letter-spacing: 1px;
        border-bottom: 1px solid #9244b0;
        background: #ffffff
    }

/* Lista con scroll interno */
.theme-ocio .chat-list {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Ítems de chat */
.theme-ocio .chat-item {
    display: flex;
    align-items: center;
    background: #f3e5f5;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.06);
    transition: background 0.3s ease;
    cursor: pointer;
    color: #6A1B9A;
}

    .theme-ocio .chat-item:hover {
        background: #e1bee7;
    }

.theme-ocio .chat-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.theme-ocio .chat-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.theme-ocio .chat-name {
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-ocio .chat-status {
    font-size: 0.95rem;
    color: #7b1fa2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-ocio .chat-time {
    font-size: 0.85rem;
    color: #999;
    margin-left: 1rem;
    white-space: nowrap;
}

/* Footer */
.theme-ocio #sidebar .sidebar-footer {
    font-size: 0.95rem;
    color: #ce93d8;
    padding: 1rem;
    border-top: 1px solid #8E24AA;
    text-align: center;
}

/* Botón flotante */
.theme-ocio #sidebar-button {
    position: fixed;
    top: 25%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 100px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    padding-left: 0;
    color: #9244b0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.12);
    align-items: center;
    justify-content: center;
    z-index: 10001;
    background-color: #e0e0e0;
}

    .theme-ocio #sidebar-button:hover {
        background: #9244b0;
        color: #fff;
    }

/* Responsive */
@media (max-width: 768px) {
    .theme-ocio #sidebar {
        max-width: 100vw;
        border-radius: 0 0 18px 18px;
    }

    .theme-ocio #sidebar-button {
        left: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
    }

    .theme-ocio .chat-avatar img {
        width: 40px;
        height: 40px;
    }

    .theme-ocio .chat-item {
        padding: 0.6rem 0.8rem;
    }

    .theme-ocio .chat-name {
        font-size: 1rem;
    }

    .theme-ocio .chat-status {
        font-size: 0.85rem;
    }

    .theme-ocio .chat-time {
        font-size: 0.75rem;
    }
}

/* Utilidades */
.hide {
    display: none;
}

.show {
    display: block;
}
