@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #6A0DAD 0%, #8A2BE2 25%, #9370DB 50%, #8A2BE2 75%, #6A0DAD 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.btn-purple {
    background: linear-gradient(135deg, #6A0DAD, #8A2BE2);
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #8A2BE2, #6A0DAD);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
}

.btn-media {
    background: linear-gradient(135deg, #8A2BE2, #9370DB);
    transition: all 0.3s ease;
}

.btn-media:hover {
    background: linear-gradient(135deg, #9370DB, #8A2BE2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(147, 112, 219, 0.4);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.application-card {
    transition: all 0.3s ease;
}

.application-card:hover {
    transform: translateY(-5px);
}

.feature-highlight {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.info-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

@media (max-width: 768px) {
    .application-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .application-card {
        width: 100%;
    }
}

/* Menu Button Styles */
.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #6A0DAD, #8A2BE2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.menu-button:hover {
    background: linear-gradient(135deg, #8A2BE2, #6A0DAD);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.menu-button i {
    color: white;
    font-size: 20px;
}

/* Sidebar Styles */
.user-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #6A0DAD 0%, #8A2BE2 50%, #6A0DAD 100%);
    backdrop-filter: blur(15px);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
}

.user-sidebar.active {
    left: 0;
}

.sidebar-content {
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* User Avatar */
.user-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.user-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #6A0DAD;
    background-color: #43b581;
}

/* User Info */
.user-info {
    text-align: center;
}

.user-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-transform: capitalize;
}

/* Divider */
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 10px 0;
}

/* Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidebar-link i {
    font-size: 18px;
    width: 20px;
}

/* Logout Button */
.logout-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.logout-button:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.logout-button i {
    font-size: 18px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
}

.user-sidebar.active ~ .sidebar-overlay {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-sidebar {
        width: 280px;
        left: -280px;
    }

    .menu-button {
        width: 45px;
        height: 45px;
        top: 15px;
        left: 15px;
    }

    .menu-button i {
        font-size: 18px;
    }
}
