/* App Launcher Styles */

/* App Launcher Button in Sidebar */
.app-launcher-section {
    margin-bottom: 1.5rem;
}

.app-launcher-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.app-launcher-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.app-launcher-button:active {
    transform: translateY(0);
}

.launcher-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.launcher-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.launcher-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.launcher-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
}

.launcher-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.app-launcher-button:hover .launcher-arrow {
    transform: translateX(4px);
}

/* App Launcher Modal */
.app-launcher-modal {
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-launcher-modal .modal-body {
    overflow-y: auto;
    padding: 1.5rem;
}

/* Search Bar */
.app-search-container {
    position: relative;
    margin-bottom: 2rem;
}

.app-search-container i.fa-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}

#app-search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

#app-search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: #e5e7eb;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: #d1d5db;
}

.clear-search-btn i {
    font-size: 0.75rem;
    color: #6b7280;
}

/* App Categories */
.app-category {
    margin-bottom: 2.5rem;
}

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

.category-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* App Card */
.app-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.app-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.app-card:active {
    transform: translateY(0);
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    color: white;
    font-size: 1.5rem;
}

.app-info {
    width: 100%;
}

.app-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.app-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.no-results small {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Simplified Section Actions */
.btn-icon-labeled {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #4b5563;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-labeled:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-icon-labeled i {
    font-size: 0.875rem;
}

.btn-icon-labeled span {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .app-launcher-modal {
        max-width: 95vw;
        max-height: 90vh;
    }

    .app-card {
        flex-direction: row;
        align-items: center;
    }

    .app-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        margin-right: 0.875rem;
        font-size: 1.25rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    #app-search-input {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }

    #app-search-input:focus {
        background: #111827;
        border-color: #667eea;
    }

    .app-card {
        background: #1f2937;
        border-color: #374151;
    }

    .app-card:hover {
        border-color: #667eea;
        background: #111827;
    }

    .app-name {
        color: #f9fafb;
    }

    .app-description {
        color: #9ca3af;
    }
}
