/* ---------------------------------------------------- */
/* Apps Switcher Custom Premium Styling (Light Theme Only) */
/* ---------------------------------------------------- */
.dash-container {
    font-family: 'Cairo', sans-serif;
    padding: 80px 100px !important;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #f8fafc 0%, #f1f5f9 100%) !important;
    min-height: calc(100vh - 170px) !important;
}

.apps-switcher-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Aurora Blobs Background Effect */
.aurora-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    animation: blobFloat 12s infinite alternate;
}

.aurora-blob-1 {
    background: #0ea5e9;
    top: -100px;
    left: 10%;
    animation-delay: 0s;
}

.aurora-blob-2 {
    background: #22d3ee;
    bottom: -50px;
    right: 15%;
    animation-delay: 3s;
}

.aurora-blob-3 {
    background: #06b6d4;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 6s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Glassmorphic Search Bar */
.search-container-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
    animation: slideDownFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.search-box-glass {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 10px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.search-box-glass:focus-within {
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.1), 0 0 0 3px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
}

.search-glass-icon {
    font-size: 1.35rem;
    color: #64748b;
    margin-left: 12px;
    transition: color 0.3s ease;
}

.search-box-glass:focus-within .search-glass-icon {
    color: #06b6d4;
}

.search-box-glass input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 1.05rem;
    color: #0f172a;
    padding: 6px 0;
}

.search-box-glass input::placeholder {
    color: #94a3b8;
}

.clear-search-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.clear-search-btn:hover {
    color: #ef4444;
}

/* Apps Grid & Cards */
.apps-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    position: relative;
    z-index: 10;
    padding: 10px;
}

@media (min-width: 992px) {
    .apps-grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 576px) {
    .apps-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

.app-card-item {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: none;
}

.app-card-link:hover {
    background: transparent;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: none;
}

/* App Icon wrapper and gradient icons */
.app-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff !important;
    border: 2px solid rgba(17, 230, 233, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.app-card-link:hover .app-icon-wrapper {
    transform: rotate(5deg) scale(1.1);
}

.app-tabler-icon {
    font-size: 2.4rem;
    color: #4f46e5;
    transition: all 0.3s ease;
    z-index: 2;
    display: inline-block;
}

.app-card-link:hover .app-tabler-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Gradients on Icons */
.icon-grad-0 .app-tabler-icon {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.icon-grad-1 .app-tabler-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.icon-grad-2 .app-tabler-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.icon-grad-3 .app-tabler-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.icon-grad-4 .app-tabler-icon {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.icon-grad-5 .app-tabler-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.icon-grad-6 .app-tabler-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.icon-grad-7 .app-tabler-icon {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.icon-grad-8 .app-tabler-icon {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.icon-grad-9 .app-tabler-icon {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.app-name-label {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    transition: color 0.3s ease;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-link:hover .app-name-label {
    color: #06b6d4;
}

/* No Apps Found */
.no-apps-found {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.4s ease;
}

.no-apps-icon {
    font-size: 3.5rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.no-apps-found h3 {
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.no-apps-found p {
    color: #64748b;
}

/* App Group Sections */
.app-group-section {
    position: relative;
    z-index: 10;
    margin-bottom: 25px;
}

.app-group-section:last-child {
    margin-bottom: 0;
}

.app-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(79, 70, 229, 0.1);
    position: relative;
}

.app-group-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #0284c7);
    border-radius: 2px;
}

.app-group-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(2, 132, 199, 0.08));
    color: #06b6d4;
    flex-shrink: 0;
}

.app-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex-grow: 1;
}

.app-group-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(100, 116, 139, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .app-group-header {
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .app-group-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        border-radius: 10px;
    }

    .app-group-title {
        font-size: 1.05rem;
    }

    .app-group-section {
        margin-bottom: 36px;
    }
}

/* Animations */
@keyframes cardFadeUp {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownFade {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
