body {
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Logo */
.logo-app {
    width: 180px;
    height: auto;
}

.card {
    margin-top: 20px;
}

.card-header {
    font-weight: bold;
}

/* Botones del menú principal - Estilo Neumórfico */
.btn-menu {
    display: block;
    text-decoration: none;
    color: #090909;
    padding: 1.2em 1em;
    border-radius: 0.8em;
    background: #e8e8e8;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
    height: 100%;
}

.btn-menu:hover {
    border: 1px solid white;
    color: #090909;
}

.btn-menu:active {
    box-shadow: 4px 4px 12px #c5c5c5, -4px -4px 12px #ffffff;
}

.btn-menu .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-menu .wrap i {
    font-size: 2.2rem;
    margin-bottom: 4px;
}

.btn-menu .wrap .titulo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-menu .wrap .descripcion {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.6;
    text-align: center;
    line-height: 1.3;
}

/* Colores de los iconos */
.btn-menu.btn-primary .wrap i { color: #5a4fcf; }
.btn-menu.btn-success .wrap i { color: #1a8754; }
.btn-menu.btn-warning .wrap i { color: #c73e6d; }
.btn-menu.btn-info .wrap i { color: #0891b2; }
.btn-menu.btn-danger .wrap i { color: #dc2626; }
.btn-menu.btn-secondary .wrap i { color: #4b5563; }
.btn-menu.btn-dark .wrap i { color: #1f2937; }
.btn-menu.btn-purple .wrap i { color: #7c3aed; }
.btn-menu.btn-teal .wrap i { color: #0d9488; }

/* Foto del alumno */
.foto-alumno {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid #dee2e6;
}

.foto-alumno-placeholder {
    width: 120px;
    height: 120px;
    background-color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #6c757d;
}

/* Ranking */
.ranking-foto {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: cover;
    border: 2px solid #dee2e6;
    flex-shrink: 0;
    display: block;
}

.ranking-foto-placeholder {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background-color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6c757d;
    flex-shrink: 0;
}

/* My Teacher */
.teacher-foto {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}

.teacher-foto-placeholder {
    width: 75px;
    height: 75px;
    background-color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* Chat */
.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e9ecef' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.message {
    display: flex;
    margin-bottom: 15px;
}

.message-sent {
    justify-content: flex-end;
}

.message-received {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.message-sent .message-bubble {
    background-color: #198754;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-received .message-bubble {
    background-color: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-text {
    margin: 0;
    word-wrap: break-word;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    text-align: right;
    margin-top: 5px;
}

.message-attachment {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.message-attachment a {
    color: inherit;
    text-decoration: underline;
}

.message-received .message-attachment {
    border-top-color: rgba(0,0,0,0.1);
}

.chat-input-container {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #dee2e6;
}

.chat-input-container .form-control {
    border-radius: 20px;
    padding-left: 20px;
}

.chat-input-container .btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Games - Número de orden dentro del botón */
.unidad-orden {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #c73e6d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Actividades */
.actividad-nombre {
    font-size: 1rem;
    font-weight: 600;
    color: #090909;
}

.actividad-centro {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.actividad-mes {
    font-size: 0.8rem;
    font-weight: 500;
    color: #0891b2;
    margin-bottom: 2px;
}

.puntos-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c73e6d;
    line-height: 1;
}

.puntos-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.actividad-completada {
    background-color: #d4edda !important;
}

/* Bank - Formato cuenta */
.cuenta-formato {
    font-family: 'Courier New', monospace;
}

.cuenta-parte {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
}

.cuenta-es {
    background-color: #e9ecef;
    opacity: 0.5;
    text-decoration: line-through;
}

.cuenta-banco {
    background-color: #cfe2ff;
}

.cuenta-sucursal {
    background-color: #d1e7dd;
}

.cuenta-dc {
    background-color: #fff3cd;
}

.cuenta-num {
    background-color: #f8d7da;
}

.cuenta-valor {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.cuenta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: 2px;
}

.cuenta-separador {
    color: #adb5bd;
    font-size: 1.2rem;
}

/* Recogidas - Indicadores de paso */
.paso-indicador {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.paso-indicador.activo {
    background-color: #0d6efd;
    color: white;
}
