/* 
   HikariApp Global UI Components
   Used for App Drawer and Shared Navigation elements across public and private pages.
*/

/* App Drawer Visual Menu */
.app-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.app-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.app-drawer-content {
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-drawer-overlay.active .app-drawer-content {
    transform: scale(1);
}

.app-drawer-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.app-drawer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    padding: 1rem 0.5rem;
    flex: 1;
}

.app-drawer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    transition: 0.2s;
}

.app-drawer-item:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06B6D4;
    transform: translateY(-3px);
}

.app-drawer-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #06B6D4;
}

.app-drawer-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: white !important;
    text-align: center;
}

/* Volver al Inicio */
.btn-back-home {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: #06B6D4;
    color: white !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 9000;
    text-decoration: none;
    transition: 0.3s;
}

@media (max-width: 480px) {
    .app-drawer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .app-drawer-content {
        padding: 1.5rem 1rem;
    }
}
