* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
    background-color: #f9fafb;
    color: #101828;
}


/* Main Content Styles */
.main {
    width: 100%;
    margin-left: 255.994px;
    padding: 23.991px;
}

.page-header {
    margin-bottom: 23.991px;
}

.page-title {
    font-size: 30px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 7.997px;
}

.page-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #4a5565;
}

/* Settings Page Styles */
.settings-container {
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 23.991px;
    max-width: 1023.991px;
}

/* Tab List */
.tab-list {
    display: flex;
    background-color: #ececf0;
    border-radius: 14px;
    padding: 3.49px;
    gap: 0;
    width: 447.997px;
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 4px 20px;
    height: 28.991px;
    border: 0.909px solid transparent;
    background: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    color: #0a0a0a;
    font-weight: 400;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn.active {
    background-color: white;
    border-color: transparent;
}

.tab-btn img {
    width: 15.994px;
    height: 15.994px;
}

/* Tab Panel */
.tab-panel {
    display: none;
    flex-direction: column;
    gap: 23.991px;
}

.tab-panel.active {
    display: flex;
}

/* Form Styles */
.form-section {
    background-color: white;
    border: 0.909px solid #e5e7eb;
    border-radius: 10px;
    padding: 24.901px;
    display: flex;
    flex-direction: column;
    gap: 23.991px;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px 0px rgba(0,0,0,0.1);
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 7.997px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7.997px;
}

.form-group.double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24.901px;
}

.form-label {
    font-size: 14px;
    font-weight: 400;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: #ff6b6b;
}

.form-input,
.form-select {
    background-color: #f3f3f5;
    border: 0.909px solid transparent;
    border-radius: 8px;
    padding: 4px 12px;
    height: 35.994px;
    font-size: 14px;
    color: #717182;
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
    cursor: text;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23717182' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
    cursor: pointer;
}

.form-input::placeholder,
.form-select {
    color: #717182;
}

/* SNS Links Container */
.sns-links-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7.997px;
}

.sns-label {
    font-size: 14px;
    font-weight: 400;
    color: #0a0a0a;
}

.btn-add-link {
    background: none;
    border: none;
    color: #4f39f6;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.sns-input-row {
    display: flex;
    gap: 11.989px;
    align-items: center;
    height: 35.994px;
    margin: 10px 0 0 0;
}

.sns-select {
    width: 160px;
    background-color: #f3f3f5;
    border: 0.909px solid transparent;
    border-radius: 8px;
    padding: 0 12.898px;
    height: 35.994px;
    font-size: 14px;
    color: #0a0a0a;
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.sns-title {
    width: 100%;
    background-color: #f3f3f5;
    border: 0.909px solid transparent;
    border-radius: 8px;
    padding: 0 12.898px;
    height: 35.994px;
    font-size: 14px;
    color: #0a0a0a;
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.sns-input {
    flex: 1;
    background-color: #f3f3f5;
    border: 0.909px solid transparent;
    border-radius: 8px;
    padding: 4px 12px;
    height: 35.994px;
    font-size: 14px;
    color: #717182;
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
}

.btn-remove {
    width: 35.994px;
    height: 35.994px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background-color: #ececf0;
}

.btn-remove img {
    width: 15.994px;
    height: 15.994px;
}

/* Toggle Styles */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0.909px solid #e5e7eb;
    border-radius: 10px;
    padding: 16.903px;
    gap: 23.991px;
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 3.991px;
}

.toggle-title {
    font-size: 14px;
    font-weight: 400;
    color: #0a0a0a;
    margin: 0;
}

.toggle-description {
    font-size: 14px;
    font-weight: 400;
    color: #6a7282;
    margin: 0;
}

.toggle-switch {
    position: relative;
    width: 31.989px;
    height: 18.395px;
    background-color: #cbced4;
    border: 0.909px solid transparent;
    border-radius: 30504000px;
    cursor: pointer;
    padding: 0.909px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch.active {
    background-color: #030213;
    padding-left: 14.903px;
    padding-right: 0.909px;
}

.toggle-knob {
    width: 15.994px;
    height: 15.994px;
    background-color: white;
    border-radius: 30504000px;
    transition: all 0.3s ease;
}

/* Button Styles */
.btn-group {
    display: flex;
    gap: 11.989px;
}

.btn {
    padding: 8px 32px;
    height: 35.994px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #ff7a00;
    color: white;
}

.btn-primary:hover {
    background-color: #e56900;
}

.btn-secondary {
    background-color: white;
    color: #0a0a0a;
    border: 0.909px solid rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background-color: #f3f3f5;
}

/* Profile Photo Upload Styles */
.profile-photo-container {
    background-color: white;
    border: 0.909px solid #e5e7eb;
    border-radius: 10px;
    padding: 48.906px;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px 0px rgba(0,0,0,0.1);
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 23.991px;
}

.profile-image-wrapper {
    position: relative;
    width: 255.994px;
    height: 255.994px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-circle {
    width: 255.994px;
    height: 255.994px;
    background-color: #f9fafb;
    border: 3.636px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7.997px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-image-circle:hover {
    border-color: #4f39f6;
    background-color: #eef2ff;
}

.profile-image-circle div {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7.997px;
    color: #99a1af;
}

.upload-icon {
    width: 95.994px;
    height: 95.994px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-text {
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.upload-btn-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55.98px;
    height: 55.98px;
    background-color: #ff7a00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 10px 15px 0px rgba(0,0,0,0.1), 0px 4px 6px 0px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn-badge:hover {
    background-color: #e56900;
    transform: scale(1.1);
}

.upload-btn-badge svg {
    width: 24px;
    height: 24px;
    color: white;
}

#profileFileInput {
    display: none;
}

.file-info {
    text-align: center;
    color: #6a7282;
}

.file-info-size {
    font-size: 14px;
    margin-bottom: 7.997px;
}

.file-info-reselect {
    font-size: 14px;
    color: #717182;
    opacity: 0.5;
}

.reselect-btn {
    background-color: white;
    border: 0.909px solid rgba(0,0,0,0.1);
    padding: 0 24px;
    height: 31.989px;
    border-radius: 8px;
    font-size: 14px;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.reselect-btn:hover:not(:disabled) {
    background-color: #f3f3f5;
    opacity: 1;
}

.reselect-btn:disabled {
    cursor: not-allowed;
}

/* Profile Photo Guide Styles */
.profile-guide {
    background-color: #eff6ff;
    border: 0.909px solid #bedbff;
    border-radius: 10px;
    padding: 32.898px;
}

.profile-guide-title {
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 23.991px;
}

.guide-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 23.991px;
}

.guide-item {
    display: flex;
    gap: 11.989px;
    align-items: flex-start;
}

.guide-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #4f39f6;
}

.guide-item-text {
    font-size: 14px;
    color: #364153;
    line-height: 20px;
}

.profile-photo-buttons {
    display: flex;
    gap: 11.989px;
    justify-content: center;
    margin-top: 23.991px;
}

/* Personal Info Tab Styles */
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.909px solid #f3f4f6;
    padding: 15.994px 0;
    gap: 23.991px;
}

.settings-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-item-label {
    display: flex;
    flex-direction: column;
    gap: 3.991px;
}

.settings-item-title {
    font-size: 16px;
    font-weight: 400;
    color: #101828;
    margin: 0;
}

.settings-item-description {
    font-size: 14px;
    font-weight: 400;
    color: #6a7282;
    margin: 0;
}

/* Security Settings Buttons */
.security-buttons {
    display: flex;
    flex-direction: column;
    gap: 11.989px;
}

.btn-security {
    background-color: white;
    border: 0.909px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    height: 35.994px;
    font-size: 14px;
    font-weight: 400;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 11.989px;
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
}

.btn-security:hover {
    background-color: #f3f3f5;
}

.security-icon {
    width: 15.994px;
    height: 15.994px;
    color: #717182;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main {
        margin-left: 0;
    }
    .settings-item {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 15px;
    }
    .form-group.double {
        display: flex;
        flex-direction: column;
    }
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
    }
}