:root {
    --font-main: 'Inter', sans-serif;
    --bg-color: #f0f2f5;
    --text-color: #333;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    transition: background 0.3s;
}

/* Dashboard UI - Enhanced */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 10px;
    font-family: inherit;
    transition: 0.3s;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #764ba2;
    background: white;
    outline: none;
}

.profile-card {
    background: white;
    border: none;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Themes System */

/* Theme: Minimal (Default) */
.theme-minimal {
    background: #ffffff;
    color: #111;
}

.theme-minimal .profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.theme-minimal .pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.theme-minimal .link-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid #ddd;
    font-weight: 600;
}

.theme-minimal .link-btn:hover {
    background: #e0e0e0;
    transform: scale(1.02);
}

/* Theme: Neon */
.theme-neon {
    background: #050505;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.theme-neon .profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.theme-neon .pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #0ff;
    box-shadow: 0 0 20px #0ff;
    margin-bottom: 20px;
}

.theme-neon h1 {
    text-shadow: 0 0 10px #0ff;
}

.theme-neon .link-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: transparent;
    color: #0ff;
    text-decoration: none;
    border: 2px solid #0ff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.theme-neon .link-btn:hover {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 30px #0ff;
}

/* Theme: Glass */
.theme-glass {
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-glass .profile-container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 40px;
    text-align: center;
    color: #333;
}

.theme-glass .pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.theme-glass .link-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.4);
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: 0.3s;
    font-weight: bold;
}

.theme-glass .link-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

/* Theme: Cyber */
.theme-cyber {
    background-color: #000;
    background-image: radial-gradient(#111 20%, transparent 20%), radial-gradient(#111 20%, transparent 20%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    color: #ff00ff;
    font-family: 'Orbitron', sans-serif;
}

.theme-cyber .profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
    position: relative;
}

.theme-cyber .pfp {
    width: 120px;
    height: 120px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: #ff00ff;
    padding: 2px;
    margin-bottom: 20px;
}

.theme-cyber .pfp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: #000;
}

.theme-cyber .link-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #1a1a1a;
    color: #ff00ff;
    text-decoration: none;
    border-left: 5px solid #ff00ff;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    font-family: 'Orbitron', monospace;
}

.theme-cyber .link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.2), transparent);
    transition: 0.5s;
}

.theme-cyber .link-btn:hover::before {
    left: 100%;
}

.theme-cyber .link-btn:hover {
    background: #333;
    padding-left: 25px;
}

/* Theme: Ocean (Interactive) */
.theme-ocean {
    background: linear-gradient(180deg, #020024 0%, #090979 35%, #00d4ff 100%);
    min-height: 100vh;
    color: white;
    position: relative;
    overflow: hidden;
}

.theme-ocean .profile-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.theme-ocean .pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.theme-ocean .link-btn {
    display: block;
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.theme-ocean .link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rise 10s infinite ease-in;
    z-index: 1;
    pointer-events: none;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }

    50% {
        transform: translateX(100px);
    }

    100% {
        bottom: 100%;
        transform: translateX(-200px);
    }
}

/* Theme: Space (Interactive) */
.theme-space {
    background: #000;
    color: white;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
}

.theme-space .profile-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.theme-space .pfp {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.theme-space .link-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transition: 0.3s;
}

.theme-space .link-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

/* Theme: Gamer (RGB) */
.theme-gamer {
    background: #111;
    color: #0f0;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
}

.theme-gamer .profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

@keyframes rgb-border {
    0% {
        border-color: #ff0000;
        box-shadow: 0 0 10px #ff0000;
    }

    33% {
        border-color: #00ff00;
        box-shadow: 0 0 10px #00ff00;
    }

    66% {
        border-color: #0000ff;
        box-shadow: 0 0 10px #0000ff;
    }

    100% {
        border-color: #ff0000;
        box-shadow: 0 0 10px #ff0000;
    }
}

.theme-gamer .pfp {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #ff0000;
    animation: rgb-border 3s infinite linear;
}

.theme-gamer .link-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #222;
    color: white;
    text-decoration: none;
    border-left: 4px solid #ff0000;
    transition: 0.2s;
    font-weight: bold;
    text-transform: uppercase;
}

.theme-gamer .link-btn:hover {
    background: #333;
    padding-left: 20px;
    border-left-width: 8px;
    border-color: #0f0;
    color: #0f0;
}

/* Theme: Space (Interactive) */
.theme-space {
    background: #000;
    color: white;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
}

.theme-space .profile-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.theme-space .pfp {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.theme-space .link-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transition: 0.3s;
}

.theme-space .link-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

/* Theme: Gamer (RGB) */
.theme-gamer {
    background: #111;
    color: #0f0;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
}

.theme-gamer .profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

@keyframes rgb-border {
    0% {
        border-color: #ff0000;
        box-shadow: 0 0 10px #ff0000;
    }

    33% {
        border-color: #00ff00;
        box-shadow: 0 0 10px #00ff00;
    }

    66% {
        border-color: #0000ff;
        box-shadow: 0 0 10px #0000ff;
    }

    100% {
        border-color: #ff0000;
        box-shadow: 0 0 10px #ff0000;
    }
}

.theme-gamer .pfp {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #ff0000;
    animation: rgb-border 3s infinite linear;
}

.theme-gamer .link-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #222;
    color: white;
    text-decoration: none;
    border-left: 4px solid #ff0000;
    transition: 0.2s;
    font-weight: bold;
    text-transform: uppercase;
}

.theme-gamer .link-btn:hover {
    background: #333;
    padding-left: 20px;
    border-left-width: 8px;
    border-color: #0f0;
    color: #0f0;
}

/* Login Page Only */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 20px 15px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header>div:last-child {
        width: 100%;
        justify-content: space-between;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 300px;
        padding: 15px;
    }

    .profile-card {
        padding: 15px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .profile-icon {
        margin-bottom: 10px;
    }

    .profile-stats {
        flex-direction: column;
        gap: 10px;
        margin: 15px 0;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}