/* --- Account Page Layout --- */
body {
    /* Default profile colors for account page */
    --profile-text-color: #e0e0e0;
    --profile-border-color: #01edf0;
    --profile-panel-color: rgba(0, 0, 0, 0.3);
}

.account-container {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
}

.sidebar {
    width: 300px;
    background: var(--profile-panel-color);
    border: 2px solid var(--profile-border-color, #01edf0);
    padding: 20px;
    box-shadow: 0 0 15px rgba(1, 237, 240, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content {
    flex: 1;
    background: var(--profile-panel-color);
    border: 2px solid var(--profile-border-color, #01edf0);
    padding: 20px;
    box-shadow: 0 0 15px rgba(1, 237, 240, 0.5);
}

/* --- User Card --- */
.user-card {
    text-align: center;
    margin-bottom: 30px;
}

.user-card .pfp-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--profile-border-color, #01edf0);
    margin-bottom: 15px;
}

.user-card h2 {
    font-size: 1.8rem;
    color: var(--profile-text-color, #fff);
    margin-bottom: 5px;
}

.user-card p {
    font-size: 1rem;
    color: var(--profile-text-color, #e0e0e0);
    opacity: 0.8;
    margin-bottom: 20px;
}

/* --- Account Nav --- */
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 30px;
}

.account-nav .nav-item {
    background-color: transparent;
    color: inherit;
    padding: 10px 15px;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.account-nav .nav-item:hover {
    background-color: rgba(1, 237, 240, 0.1);
    border-left-color: var(--profile-border-color, #01edf0);
}

.account-nav .nav-item.active {
    background-color: rgba(1, 237, 240, 0.2);
    border-left: 4px solid var(--profile-border-color, #01edf0);
    font-weight: bold;
}

/* --- Tab Content --- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* --- Form Groups --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* --- Logout Button --- */
.logout-btn-container {
    margin-top: auto; /* Pushes the logout button to the bottom */
}

/* Back Arrow */
.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    color: inherit;
    text-decoration: none;
    font-size: 24px;
}

/* Modal Fixes */
.modal.hidden {
    display: none;
}

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

/* Custom Social Links */
.social-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background-color: rgba(1, 237, 240, 0.05);
    border-left: 3px solid var(--profile-border-color, #01edf0);
}

.social-link-item span {
    flex-grow: 1;
    color: var(--profile-text-color, #fff);
}

.social-link-item a {
    color: inherit;
    text-decoration: none;
}

.social-link-item a:hover {
    text-decoration: underline;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.edit-social-link {
    background-color: var(--accent-color, #007bff);
    color: white;
    border: none;
}

.edit-social-link:hover {
    background-color: var(--button-hover-color, #0056b3);
}

.remove-social-link {
    background-color: var(--danger-color, #dc3545);
    color: white;
    border: none;
}

.remove-social-link:hover {
    background-color: var(--danger-hover-color, #c82333);
}

/* --- Responsive Design for account.css --- */
@media (max-width: 768px) {
    .account-container {
        flex-direction: column;
        margin: 20px auto;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
        padding: 15px;
        border-radius: 8px;
    }

    .main-content {
        width: 100%;
        padding: 15px;
        border-radius: 8px;
    }

    .user-card .pfp-image {
        width: 100px;
        height: 100px;
    }

    .user-card h2 {
        font-size: 1.5rem;
    }

    .account-nav .nav-item {
        font-size: 1rem;
        padding: 8px 10px;
    }

    .tab-content h3 {
        font-size: 1.3rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .social-link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .social-link-item span {
        margin-bottom: 5px;
    }

    .social-link-item button {
        width: 100%;
    }
}

#lastfm-status {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--profile-text-color);
}

#lastfm-message {
    margin-top: 10px;
    font-size: 0.9rem;
}