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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #e0e7ff 100%);
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    flex-shrink: 0;
    text-align: center;
    padding: 16px 8px;
}

.school-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.school-icon-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.app-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.school-icon i {
    width: 58px;
    height: 58px;
    color: white;
}

.title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    padding: 0 8px;
    line-height: 1.4;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 16px 24px;
    width: 100%;
}

.apps-container {
    width: 100%;
    max-width: 1152px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    width: 100%;
}

/* App Card Styles */
.app-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 16px;
    border: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.app-card:hover .icon-container {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.9);
}

.app-content {
    text-align: center;
}

.app-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.app-card:hover .app-title {
    color: #111827;
}

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

/* Gradient Classes */
.blue-gradient {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.ocean-blue-gradient {
    background: linear-gradient(135deg, #0575e6, #021b79);
}

.emerald-green-gradient {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.royal-purple-gradient {
    background: linear-gradient(135deg, #4776e6, #8e54e9);
}

.golden-sunrise-gradient {
    background: linear-gradient(135deg, #ffb347, #ffcc33);
}

.cool-sky-gradient {
    background: linear-gradient(135deg, #2980b9, #6dd5fa);
}

.dark-night-gradient {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.pink-dreams-gradient {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.mint-fresh-gradient {
    background: linear-gradient(135deg, #a1ffce, #faffd1);
}

.fiery-red-gradient {
    background: linear-gradient(135deg, #f85032, #e73827);
}

.sunset-orange-gradient {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
}

.emerald-gradient {
    background: linear-gradient(135deg, #10b981, #059669);
}

.purple-gradient {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.orange-gradient {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.teal-gradient {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.rose-gradient {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

/* Footer */
.footer {
    flex-shrink: 0;
    text-align: center;
    padding: 16px;
    margin-top: auto;
}

.footer p {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-card {
    animation: fadeInUp 0.6s ease-out;
}

.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }
.app-card:nth-child(5) { animation-delay: 0.5s; }
.app-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover effects for better interactivity */
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.app-card:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (min-width: 360px) {
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
    }
}

@media (min-width: 480px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .school-icon {
        width: 100px;
        height: 100px;
    }
    
    .school-icon-img {
        width: 90px;
        height: 90px;
    }
    
    .title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .header {
        padding: 24px 16px 16px;
    }
    
    .school-icon {
        width: 100px;
        height: 100px;
    }
    
    .school-icon-img {
        width: 90px;
        height: 90px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.125rem;
        padding: 0 16px;
    }
    
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .app-card {
        padding: 24px;
    }
    
    .icon-container {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .app-icon {
        width: 32px;
        height: 32px;
    }
    
    .app-title {
        font-size: 1.125rem;
    }
    
    .app-description {
        font-size: 1rem;
    }
}

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

/* Touch device adjustments */
@media (hover: none) {
    .app-card:hover {
        transform: none;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    .app-card:hover .app-title {
        color: #1f2937;
    }
    
    .app-card:active {
        transform: scale(0.98);
    }
}