/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(192, 132, 252, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Dashboard Container */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    margin-bottom: 40px;
    color: white;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo h1 {
    font-size: 3.5rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(139, 92, 246, 0.4);
    animation: fadeInUp 0.8s ease-out;
}

.logo p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #9ca3af;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

/* Action Bar */
.action-bar {
    background: rgba(36, 36, 36, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1000;
}

.action-bar:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.action-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.welcome-text {
    color: #d1d5db;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(139, 92, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-icon {
    padding: 10px;
    min-width: 40px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Apps Section */
.apps-section h2 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.75rem;
    font-weight: 600;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.app-card {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-align: center;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.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; }
.app-card:nth-child(7) { animation-delay: 0.7s; }
.app-card:nth-child(8) { animation-delay: 0.8s; }
.app-card:nth-child(9) { animation-delay: 0.9s; }
.app-card:nth-child(10) { animation-delay: 1.0s; }

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 16px 40px rgba(139, 92, 246, 0.25),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

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

.app-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.app-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.app-card p {
    color: #9ca3af;
    line-height: 1.4;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 400;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-live {
    background: #ef4444;
    color: #ffffff;
}

.status-active {
    background: #8b5cf6;
    color: #ffffff;
}

.status-beta {
    background: #374151;
    color: #d1d5db;
}

/* Quick Links Section */
.quick-links-section {
    background: rgba(36, 36, 36, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-links-section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.quick-links-section h2 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.75rem;
    font-weight: 600;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.link-category h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 8px;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-item:hover {
    background: rgba(55, 65, 81, 0.8);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.link-item:hover::before {
    left: 100%;
}

.link-icon {
    font-size: 1.1rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.link-text {
    font-weight: 500;
}

/* Notification Container */
.notification-container {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

/* Notification Popup */
.notification-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1003;
    animation: slideDown 0.3s ease-out;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.notification-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.notification-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    color: #9ca3af;
    font-size: 0.9rem;
}

.close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #ffffff;
}

.notification-content {
    padding: 24px;
    text-align: center;
}

.no-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.notification-illustration {
    font-size: 3rem;
    margin-bottom: 8px;
}

.no-notifications h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.no-notifications p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.notification-btn.has-notifications::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    opacity: 1;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        padding: 15px;
    }
    
    .header-content {
        text-align: center;
    }
    
    .action-bar-content {
        justify-content: center;
    }
    
    .action-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .notification-popup {
        width: 90vw;
        right: 5vw;
    }
}

@media (max-width: 480px) {
    .dashboard {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .app-card {
        padding: 20px;
        min-height: 160px;
    }
    
    .quick-links-section {
        padding: 24px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}