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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #3a3a5c;
    border-top-color: #00d9ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(37, 37, 66, 0.9);
    border-bottom: 1px solid #3a3a5c;
    backdrop-filter: blur(10px);
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-menu {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(58, 58, 92, 0.8);
    border: 2px solid #3a3a5c;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    border-color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.profile-btn span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border-radius: 50%;
    font-weight: bold;
    color: #1a1a2e;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #252542;
    border: 1px solid #3a3a5c;
    border-radius: 12px;
    padding: 15px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.profile-info {
    padding: 10px 0;
}

.profile-info p {
    color: #888;
    font-size: 0.9rem;
}

.profile-dropdown hr {
    border: none;
    border-top: 1px solid #3a3a5c;
    margin: 10px 0;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(90deg, #ff4757, #cc3344);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.main-content h2 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #00d9ff;
}

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

.app-tile {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(37, 37, 66, 0.8);
    border: 2px solid #3a3a5c;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-tile:hover {
    border-color: #00d9ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.app-tile.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-tile.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: #3a3a5c;
}

.tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border-radius: 12px;
    flex-shrink: 0;
}

.tile-icon svg {
    width: 32px;
    height: 32px;
    color: #1a1a2e;
}

.tile-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tile-content p {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.4;
}

/* Footer */
.footer {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    border-top: 1px solid #3a3a5c;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .main-content {
        padding: 20px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .profile-btn span:last-child {
        display: none;
    }
}
