/* PROFILE SETTINGS STYLES */
:root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-red: #ff4d5d;
    --accent-gold: #f1c40f;
    --text-main: #ffffff;
    --text-dim: #aaaaaa;
}

body {
    background-color: #000;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-top: 100px; /* Adjusted for standard navbar height */
}

.settings-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Nav */
.settings-sidebar {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    cursor: pointer;
}

.settings-nav-item:hover, .settings-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.settings-nav-item i {
    font-size: 1.2rem;
}

/* Content Area */
.settings-content {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
}

.settings-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.settings-section.active {
    display: block;
}

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

h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

/* Modern Select/Dropdown Styling */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-control option {
    background-color: #111;
    color: #fff;
    padding: 15px;
}

.form-control:focus {
    border-color: var(--accent-red);
}

/* Avatar Upload */
.avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-red);
}

.btn-upload {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Action Buttons */
.btn-save {
    background: linear-gradient(135deg, var(--accent-red), #c0392b);
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    transition: transform 0.2s;
}

.btn-save:active {
    transform: scale(0.98);
}

/* Wallet Card */
.wallet-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wallet-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-connected {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .settings-container {
        grid-template-columns: 1fr;
        padding: 15px;
        margin: 0;
    }

    .settings-sidebar {
        position: sticky;
        top: 70px; /* Stay below standard mobile top bar */
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 15px 10px;
        margin-bottom: 10px;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(10px);
        border-radius: 0;
        border-left: none;
        border-right: none;
        z-index: 999;
        -webkit-overflow-scrolling: touch;
    }

    .settings-sidebar::-webkit-scrollbar {
        display: none;
    }

    .settings-nav-item {
        flex: 0 0 auto;
        padding: 10px 15px;
        margin-bottom: 0;
        font-size: 0.85rem;
    }

    .settings-content {
        padding: 25px 20px;
        border-radius: 20px;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .avatar-section {
        flex-direction: column;
        align-items: flex-start;
    }
}
