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

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

body.dark-theme {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a1a 100%);
    color: #e0e0ff;
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #2a1b3d, #1a0f2a);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 20px #7b2eda, 0 0 40px #4a1d8a;
    z-index: 100;
    border: 2px solid #9f7aea;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px #7b2eda, 0 0 40px #4a1d8a; }
    50% { box-shadow: 0 0 30px #b794f4, 0 0 60px #7b2eda; }
    100% { box-shadow: 0 0 20px #7b2eda, 0 0 40px #4a1d8a; }
}

.floating-btn img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    filter: drop-shadow(0 0 5px #b794f4);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px #b794f4, 0 0 80px #7b2eda;
}

.top-bar {
    display: flex;
    height: 75px;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #0a0a0f, #1a1a2e, #0a0a0f);
    padding: 8px 20px;
    color: #e0e0ff;
    border-bottom: 2px solid #7b2eda;
    box-shadow: 0 0 20px #7b2eda;
    position: fixed;
    top: 0; /
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(5px);
}


.top-bar .left img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #9f7aea;
    box-shadow: 0 0 15px #7b2eda;
}

.top-bar .centre h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(14px, 4vw, 24px);
    color: #b794f4;
    text-shadow: 0 0 15px #7b2eda;
    margin: 0;
    letter-spacing: 2px;
}

.material-icons {
    color: #b794f4;
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
    text-shadow: 0 0 10px #7b2eda;
    transition: all 0.3s;
}

.material-icons:hover {
    color: #e0e0ff;
    transform: scale(1.2);
    text-shadow: 0 0 20px #b794f4;
}

.poup-menu {
    position: fixed;
    right: -100%;
    top: 60px;
    width: 250px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #7b2eda;
    border-radius: 15px 0 0 15px;
    padding: 15px;
    transition: right 0.3s ease;
    z-index: 99;
    box-shadow: -5px 5px 25px #7b2eda;
}

.poup-menu.open {
    right: 0;
}

.poup-menu button {
    display: flex;
    width: 100%;
    padding: 12px;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: #b794f4;
    background: linear-gradient(145deg, #1a1a2e, #0a0a1a);
    border: 1px solid #7b2eda;
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.poup-menu button i {
    margin-right: 10px;
    color: #9f7aea;
}

.poup-menu button:hover {
    background: linear-gradient(145deg, #2a1b3d, #1a0f2a);
    border-color: #b794f4;
    transform: translateX(-5px);
    box-shadow: 0 0 20px #9f7aea;
}

.sidebar {
    position: fixed;
    right: -100%;
    top: 60px;
    width: 300px;
    height: calc(100% - 60px);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-left: 2px solid #7b2eda;
    padding: 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 99;
    box-shadow: -5px 0 30px #7b2eda;
}

.sidebar.open {
    right: 0;
}

.sidebar h2, .sidebar h3 {
    color: #b794f4;
    text-shadow: 0 0 10px #7b2eda;
    font-family: 'Orbitron', sans-serif;
    margin: 15px 0;
}

.sidebar h2 i, .sidebar h3 i {
    margin-right: 10px;
    color: #9f7aea;
}

.sidebar button {
    display: flex;
    width: 100%;
    padding: 10px;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    color: #b794f4;
    background: linear-gradient(145deg, #1a1a2e, #0a0a1a);
    border: 1px solid #7b2eda;
    margin: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar button i {
    margin-right: 10px;
    color: #9f7aea;
}

.sidebar button:hover {
    background: linear-gradient(145deg, #2a1b3d, #1a0f2a);
    border-color: #b794f4;
    transform: translateX(-5px);
    box-shadow: 0 0 15px #9f7aea;
}

.sidebar p {
    color: #7b2eda;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.main-content {
    width: 100%;
    height: calc(100vh - 60px);
    margin-top: 60px;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    scroll-behavior: smooth;
}

.stats-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 20px;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(5px);
    border: 2px solid #7b2eda;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(123, 46, 218, 0.3);
}

.stats-header {
    text-align: center;
    margin-bottom: 30px;
}

.stats-header h2 {
    color: #b794f4;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stats-header h2 i {
    font-size: 32px;
    color: #9f7aea;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(10, 10, 26, 0.9));
    border: 2px solid #7b2eda;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    animation: cardGlow 3s infinite;
}

@keyframes cardGlow {
    0% { border-color: #7b2eda; box-shadow: 0 0 15px #7b2eda; }
    50% { border-color: #b794f4; box-shadow: 0 0 30px #b794f4; }
    100% { border-color: #7b2eda; box-shadow: 0 0 15px #7b2eda; }
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px #7b2eda;
}

.stat-icon i {
    font-size: 48px;
    color: #9f7aea;
}

.stat-info h3 {
    color: #b794f4;
    font-size: 16px;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: #e0e0ff;
    text-shadow: 0 0 20px #7b2eda;
    line-height: 1.2;
}

.stat-label {
    color: #9f7aea;
    font-size: 14px;
    margin-top: 5px;
}

.charts-container {
    margin-top: 30px;
}

.charts-container h3 {
    color: #b794f4;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-item {
    background: rgba(10, 10, 26, 0.8);
    border: 1px solid #7b2eda;
    border-radius: 10px;
    padding: 15px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-header span {
    color: #b794f4;
    font-size: 16px;
    font-weight: 700;
}

.progress-header .count {
    color: #9f7aea;
    font-size: 14px;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid #7b2eda;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7b2eda, #b794f4);
    border-radius: 15px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 0 5px black;
    z-index: 1;
}

.owner-info-container {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
}
#avatarImg {
    width: 70px;
    height: 70px;
    border-radius: 70%;
    object-fit: cover;
    cursor: pointer;
}


.owner-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(10, 10, 26, 0.9));
    border: 2px solid #7b2eda;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 40px rgba(123, 46, 218, 0.5);
    animation: cardGlow 4s infinite;
}

.owner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.owner-header i {
    font-size: 40px;
    color: #9f7aea;
}

.owner-header h2 {
    font-size: 32px;
    color: #b794f4;
    text-shadow: 0 0 15px #7b2eda;
}

.owner-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #7b2eda;
    border-radius: 50px;
    color: #b794f4;
    font-size: 15px;
    transition: all 0.3s;
}

.detail-item i {
    color: #9f7aea;
    font-size: 18px;
}

.detail-item:hover {
    background: rgba(123, 46, 218, 0.2);
    border-color: #b794f4;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px #9f7aea;
}

.frame {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(5px);
    border: 2px solid #7b2eda;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(123, 46, 218, 0.3);
}

.profile-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-box img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #9f7aea;
    box-shadow: 0 0 50px #7b2eda, 0 0 100px #b794f4;
    animation: glow 4s infinite;
}

@keyframes glow {
    0% { box-shadow: 0 0 50px #7b2eda, 0 0 100px #b794f4; }
    50% { box-shadow: 0 0 80px #b794f4, 0 0 150px #7b2eda; }
    100% { box-shadow: 0 0 50px #7b2eda, 0 0 100px #b794f4; }
}

.profile-box .text h2 {
    font-size: 36px;
    color: #b794f4;
    text-shadow: 0 0 20px #7b2eda;
    margin: 20px 0;
}

.profile-box .text p {
    font-size: 18px;
    color: #e0e0ff;
}

.example {
    padding: 20px;
}

.example h2 {
    color: #b794f4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.api-display {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #7b2eda;
    border-radius: 10px;
    padding: 15px;
}

#api-url {
    font-family: 'Orbitron', sans-serif;
    background: #0a0a1a;
    color: #b794f4;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #9f7aea;
    margin-bottom: 15px;
    word-break: break-all;
    font-size: 14px;
}

.response-box {
    background: #0a0a0f;
    color: #e0e0ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #7b2eda;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}

.description {
    text-align: center;
    padding: 20px;
}

.description h1 {
    color: #b794f4;
    font-size: 32px;
    margin-bottom: 20px;
}

.description h2 {
    color: #e0e0ff;
    font-size: 24px;
    margin: 15px 0;
}

.description h3 {
    color: #9f7aea;
    font-size: 20px;
    margin: 15px 0;
}

.description p {
    color: #c0c0ff;
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.6;
}

.notification {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #2a1b3d, #0a0a1a);
    border: 2px solid #9f7aea;
    border-radius: 15px;
    padding: 15px 30px;
    color: #b794f4;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 40px #7b2eda;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

.notification.show {
    display: block;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .owner-details {
        grid-template-columns: 1fr;
    }
    
    .profile-box img {
        width: 150px;
        height: 150px;
    }
    
    .profile-box .text h2 {
        font-size: 28px;
    }
    
    .sidebar {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .profile-box .text h2 {
        font-size: 24px;
    }
    
    .description h1 {
        font-size: 24px;
    }
    
    .owner-header h2 {
        font-size: 24px;
    }
}
