* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #16213e 100%);
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(255, 255, 255, 0.03) 100px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98px,
            rgba(255, 255, 255, 0.03) 100px
        );
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 30px 0;
    flex-shrink: 0;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.main-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex: 1;
    min-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
}

.instructions {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    flex: 1;
}

button {
    font-family: inherit;
}

.category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: fit-content;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.category:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

.category h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid rgba(120, 119, 198, 0.6);
    padding-bottom: 12px;
    flex-shrink: 0;
}

.app-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 15px;
    border-radius: 12px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.app-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.app-checkbox {
    appearance: none; /* Hide default appearance */
    -webkit-appearance: none;
    outline: none;
    border-radius: 10px;
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: #7877c6;
    border: 1px solid #ccc;
    cursor: pointer;
}


.app-checkbox:checked {
  background-color: #7877c6;; /* Example checked color */
  border-color: #7877c6;;
}
.app-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    margin-right: 18px;
    background: linear-gradient(135deg, #7877c6, #ff77c6, #77dbff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(120, 119, 198, 0.3);
}

.app-info {
    flex: 1;
}

.app-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.app-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.download-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    color: white;
    margin-top: auto;
    flex-shrink: 0;
}

.selected-count {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.download-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 18px 50px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    opacity: 0.8;
}

.footer-link {
    color: white;
    text-decoration: underline;
    transition: color 0.2s ease;
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 30px 20px;
        min-height: calc(100vh - 250px);
    }
    
    .category {
        min-height: 350px;
        padding: 25px;
    }
}