/* Launchpad - macOS Style Window */
.launchpad {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 600px;
    background: rgba(255, 255, 255, 0.582);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.launchpad-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.launchpad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.launchpad-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.launchpad-title i {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.7);
}

.launchpad-view-toggle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.launchpad-view-toggle:hover {
    background: rgba(255, 255, 255, 0.5);
}

.launchpad-view-toggle i {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
}

.launchpad-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.launchpad-content::-webkit-scrollbar {
    width: 0;
    display: none;
}

.launchpad-category {
    margin-bottom: 28px;
}

.launchpad-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.launchpad-category-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.launchpad-category-action {
    font-size: 14px;
    color: rgba(95, 95, 95, 0.9);
    font-weight: 500;
    cursor: pointer;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: opacity 0.15s ease;
}

.launchpad-category-action:hover {
    opacity: 0.7;
}

.launchpad-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 16px;
}

.launchpad-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s ease;
    text-decoration: none;
}

.launchpad-app:hover {
    transform: scale(1.05);
}

.launchpad-app-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 6px;
    border-radius: 16px;
    overflow: hidden;
}

.launchpad-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.launchpad-app-name {
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
    text-align: center;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.launchpad-app-badge {
    position: relative;
}

.launchpad-app-badge::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    background: #FF3B30;
    border-radius: 50%;
    border: 2px solid white;
}
