@import url("general.css");

.profile-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Styles */
.sidebar {
    width: 290px;
    height: 540px;
    background: var(--color-bg);
    padding: 0;
    border-radius: 20px;
    border: 16px;
    flex-shrink: 0;
    background-color: #f4f4f4;
}

.profile-header {
    text-align: center;
    margin-top: -70px;
}
.profile-divider {
    border-bottom: 1px solid var(--color-border);
    margin: 8px 20px;
}
.profile-img-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-img-edit {
    position: absolute;
    bottom: 0px;
    right: 5px;
    background: var(--color-bg);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.profile-img-edit {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Icon stays visible */
.edit-icon {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.avatar-loading {
    position: absolute;
    top: 40px;
    font-size: 13px;
    left: 40px;
    color: #e84e1b;
    font-weight: 600;
}
#profileUpload {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    opacity: 0;
    cursor: pointer;
}

.profile-greeting {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.sidebar-nav {
    list-style: none;
    padding: 15px 12px;
}

.sidebar-nav li {
    margin-bottom: 6px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 16px 14px;
    text-decoration: none;
    color: var(--color-text);
    border-radius: 50px;
    transition: all 0.2s ease;
    font-size: 14px;
    height: 40px;
}

.sidebar-nav a i {
    margin-right: 10px;
    font-size: 14px;
    width: 18px;
}

.sidebar-nav a:hover {
    background-color: #fff0ed;
}

.sidebar-nav a.active {
    background-color: var(--color-primary);
    color: var(--color-primary-contrast);
}

.sidebar-nav a.active img {
    filter: brightness(0) invert(1);
}

.address-header {
    margin-bottom: 25px;
}

.address-header h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 18px;
}

.address-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    padding: 9px 22px;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
}

.tab-btn.active {
    background: var(--color-primary);
    color: var(--color-primary-contrast);
}

.tab-btn:hover:not(.active) {
    background: #fff0ed;
}

.profile-bg {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    width: 290px;
    height: 100px;
    object-fit: cover;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text);
}

.form-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
}

.form-label {
    font-size: 13px;
    color: var(--color-text);
    margin-bottom: 7px;
    font-weight: 500;
    display: block;
}

.form-control,
.form-select {
    padding: 11px 14px;
    padding-left: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
    background: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(232, 78, 27, 0.2);
    outline: none;
}

.input-wrapper {
    position: relative;
    margin-bottom: 18px;
}

.input-wrapper img {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    font-size: 13px;
}

.form-select {
    padding-left: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
}

.btn-cancel {
    padding: 11px 26px;
    border: none;
    background: transparent;
    color: var(--color-primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
}

.btn-cancel:hover {
    background: #fff0ed;
}

.btn-submit {
    padding: 11px 32px;
    border: none;
    background: var(--color-primary);
    color: var(--color-primary-contrast);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 10px;
}

.btn-submit:hover {
    background: #e84e1b;
    /* transform: translateY(-1px); */
    /* box-shadow: 0 4px 12px rgba(232, 78, 27, 0.3); */
}
.form-wrapper {
    background: #f4f4f4;
    border-radius: 14px;
    padding: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .profile-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .tab-btn {
        width: 100%;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
    .profile-bg {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .content-inner {
        padding: 20px 0px;
    }

    .form-wrapper {
        padding: 20px;
    }
}

@media (width: 1024px) {
    .content-inner {
        width: 95%;
        margin-left: 50px;
    }
}
