/* 프로필 설정 페이지 스타일 */

/* 프로필 컨테이너 (오래된 스타일 - 호환성 유지) */
.profile-container {
    padding: 20px;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* 오래된 프로필 섹션 스타일 오버라이드 (새 스타일이 우선) */
.main-v2-main-content .profile-section,
.main-v2-main-content .change-section {
    display: none !important;
}

/* 오래된 프로필 컨테이너 숨김 (새 스타일 사용) */
.main-v2-main-content > .profile-container:not(.profile-container-horizontal) {
    display: none !important;
}

/* 가로 정렬 프로필 컨테이너 */
.profile-container-horizontal {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* main-v2-main-content 내부 프로필 컨테이너 오버라이드 */
.main-v2-main-content .profile-container-horizontal {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 프로필 페이지 헤더 */
.profile-page-header {
    margin-bottom: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
}

/* main-v2-main-content 내부에서도 보장 */
.main-v2-main-content .profile-page-header {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.profile-title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-direction: row !important;
}

/* main-v2-main-content 내부에서도 보장 */
.main-v2-main-content .profile-title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-direction: row !important;
}

.profile-icon-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid var(--text-primary) !important;
    background-color: transparent !important;
    flex-shrink: 0 !important;
    transition: border-color var(--transition-normal),
                color var(--transition-normal);
}

/* main-v2-main-content 내부에서도 보장 */
.main-v2-main-content .profile-icon-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
}

.profile-icon {
    width: 20px !important;
    height: 20px !important;
    color: var(--text-primary) !important;
    stroke: currentColor !important;
    transition: color var(--transition-normal);
    display: block !important;
}

/* main-v2-main-content 내부에서도 보장 */
.main-v2-main-content .profile-icon {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

.profile-main-title {
    margin: 0 !important;
    color: var(--text-primary) !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    text-align: left !important;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif !important;
    letter-spacing: -0.5px !important;
    transition: color var(--transition-normal);
    display: block !important;
    line-height: 1.2 !important;
}

/* main-v2-main-content 내부에서도 보장 */
.main-v2-main-content .profile-main-title {
    display: block !important;
    font-size: 32px !important;
}

/* 헤더 구분선 */
.profile-header-divider {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background-color: var(--border-primary) !important;
    margin-top: 24px !important;
    margin-bottom: 0 !important;
    border-radius: 1px !important;
    transition: background-color var(--transition-normal);
    visibility: visible !important;
    opacity: 1 !important;
}

/* main-v2-main-content 내부에서도 보장 */
.main-v2-main-content .profile-header-divider {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background-color: var(--border-primary) !important;
    margin-top: 24px !important;
    margin-bottom: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 카드 그리드 컨테이너 */
.profile-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* main-v2-main-content 내부 카드 그리드 오버라이드 */
.main-v2-main-content .profile-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* 카드 아이템 */
.profile-card-item {
    background-color: var(--bg-card) !important;
    padding: 32px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    transition: background-color var(--transition-normal), 
                border-color var(--transition-normal),
                box-shadow var(--transition-normal);
    display: flex !important;
    flex-direction: column !important;
    min-height: 400px !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 프로필 사진 인라인 배치 */
.profile-photo-inline {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.profile-photo-image {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    border: 3px solid var(--border-primary) !important;
    background: var(--bg-elevated) !important;
    object-fit: cover !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-photo-buttons {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.profile-photo-buttons .btn-primary-horizontal,
.profile-photo-buttons .btn-secondary-horizontal {
    font-size: 13px !important;
    padding: 10px 18px !important;
}

.profile-photo-note {
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

/* main-v2-main-content 내부에서도 보장 */
.main-v2-main-content .profile-card-item {
    display: flex !important;
    flex-direction: column !important;
    background-color: var(--bg-card) !important;
    padding: 32px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.card-title {
    margin: 0 0 24px 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    letter-spacing: -0.3px;
}

/* 계정 정보 목록 */
.account-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.account-info-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    text-align: left;
}

.account-info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    text-align: right;
}

/* 가로 정렬 폼 스타일 */
.profile-form-horizontal {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.field-label .required-mark {
    color: #e74c3c;
    margin-left: 2px;
}

/* 비밀번호 입력 래퍼 */
.password-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.field-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    transition: border-color var(--transition-normal), 
                background-color var(--transition-normal), 
                color var(--transition-normal);
    box-sizing: border-box;
    text-align: left;
}

.password-input {
    padding-right: 48px !important;
}

/* 비밀번호 토글 버튼 */
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    flex-shrink: 0;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.password-toggle-btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.eye-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    transition: opacity var(--transition-normal);
}

.eye-icon.hidden {
    display: none !important;
}

.hidden {
    display: none !important;
}

.field-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: var(--bg-secondary);
}

.field-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.field-input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.field-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}

/* 폼 액션 버튼 */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.btn-primary-horizontal {
    width: 100%;
    height: 48px;
    padding: 0;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    cursor: pointer;
    transition: background-color var(--transition-normal);
    text-align: center;
}

.btn-primary-horizontal:hover:not(:disabled) {
    background-color: var(--accent-hover);
}

.btn-primary-horizontal:active:not(:disabled) {
    background-color: var(--accent-active);
}

.btn-primary-horizontal:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary-horizontal {
    width: 100%;
    height: 48px;
    padding: 0;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    cursor: pointer;
    transition: background-color var(--transition-normal),
                border-color var(--transition-normal),
                color var(--transition-normal);
    text-align: center;
}

.btn-secondary-horizontal:hover:not(:disabled) {
    background-color: var(--bg-elevated);
    border-color: var(--border-hover);
}

.btn-secondary-horizontal:active:not(:disabled) {
    background-color: var(--bg-tertiary);
}

.btn-secondary-horizontal:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 메시지 영역 */
.message-area-horizontal {
    margin-top: 0;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    display: none;
    text-align: left;
    transition: all var(--transition-normal);
}

.message-area-horizontal.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
    display: block;
}

.message-area-horizontal.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
    display: block;
}

.message-area-horizontal.info {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 123, 255, 0.2);
    display: block;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .profile-cards-grid,
    .main-v2-main-content .profile-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
    
    .profile-container-horizontal,
    .main-v2-main-content .profile-container-horizontal {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .profile-container-horizontal,
    .main-v2-main-content .profile-container-horizontal {
        padding: 30px 20px !important;
        gap: 32px !important;
    }

    .profile-icon-container {
        width: 40px !important;
        height: 40px !important;
    }

    .profile-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .profile-main-title {
        font-size: 28px !important;
    }

    .profile-header-divider {
        margin-top: 20px !important;
    }

    .profile-cards-grid,
    .main-v2-main-content .profile-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .profile-card-item {
        padding: 24px;
        min-height: auto;
    }

    .profile-photo-image {
        width: 140px !important;
        height: 140px !important;
    }

    .card-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .account-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .account-info-label {
        font-size: 14px;
    }

    .account-info-value {
        font-size: 14px;
        text-align: left;
    }

    .field-input {
        height: 44px;
        font-size: 14px;
    }

    .btn-primary-horizontal,
    .btn-secondary-horizontal {
        height: 44px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .profile-container-horizontal {
        padding: 24px 16px;
        gap: 24px;
    }

    .profile-title-wrapper {
        gap: 10px;
    }

    .profile-icon-container {
        width: 36px;
        height: 36px;
    }

    .profile-icon {
        width: 18px;
        height: 18px;
    }

    .profile-main-title {
        font-size: 24px;
    }

    .profile-photo-image {
        width: 120px !important;
        height: 120px !important;
    }

    .profile-header-divider {
        margin-top: 18px;
        height: 1px;
    }

    .profile-card-item {
        padding: 20px;
        border-radius: 8px;
    }

    .card-title {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .profile-form-horizontal {
        gap: 18px;
    }

    .field-input {
        height: 42px;
        font-size: 14px;
    }

    .btn-primary-horizontal,
    .btn-secondary-horizontal {
        height: 42px;
        font-size: 14px;
    }
}

/* 간결한 프로필 컨테이너 */
.profile-container-simple {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 프로필 정보 카드 */
.profile-info-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-primary);
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
}

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

/* 프로필 액션 버튼 영역 */
.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.profile-action-btn {
    padding: 12px 24px;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-normal), transform var(--transition-fast);
}

.profile-action-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.profile-action-btn:active {
    transform: translateY(0);
}

/* 프로필 수정 폼 */
.profile-edit-form {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.profile-form-simple {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-simple {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-simple label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.form-group-simple input {
    padding: 12px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal);
}

.form-group-simple input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.form-buttons-simple {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-primary-simple {
    padding: 10px 20px;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.btn-primary-simple:hover {
    background-color: var(--accent-hover);
}

.btn-secondary-simple {
    padding: 10px 20px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.btn-secondary-simple:hover {
    background-color: var(--bg-elevated);
    border-color: var(--border-hover);
}

/* 일반 사용자용 상단 메뉴바 */
.user-top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-top-menu .menu-left .greeting {
    color: #ecf0f1;
    font-size: 16px;
    font-weight: 500;
}

.user-top-menu .menu-left .greeting #menu-username {
    color: #f1c40f;
    font-weight: bold;
}

.user-top-menu .menu-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-top-menu .menu-right .btn-logout-top {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-top-menu .menu-right .btn-logout-top:hover {
    background-color: #c0392b;
}

.user-top-menu .menu-right .btn-logout-top.active {
    background-color: #3498db;
}

/* 상단 메뉴바가 있을 때 컨테이너 상단 여백 추가 */
body:has(.user-top-menu[style*="block"]) .container {
    margin-top: 60px;
}

/* 헤더 스타일 - 대시보드와 통일 (admin-dashboard.css에서 가져옴) */

/* 페이지 헤더 스타일 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    margin: 0;
    color: var(--brand-color);
    font-size: 28px;
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.profile-section {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-primary);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.profile-section h2 {
    color: var(--brand-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 120px;
}

.info-item span {
    color: var(--text-primary);
    font-weight: 600;
}

.change-section {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-primary);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.change-section h2 {
    color: var(--brand-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    padding: 12px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal);
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.form-group input:invalid {
    border-color: #e74c3c;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.form-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.message-area {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

.message-area.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message-area.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.message-area.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        text-align: center;
    }
    
    .header-left h1 {
        font-size: 24px;
    }
    
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-right a,
    .header-right button {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .profile-info {
        gap: 8px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-item label {
        min-width: auto;
        font-size: 14px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .header-right a,
    .header-right button {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .profile-section,
    .change-section {
        padding: 15px;
    }
    
    .profile-section h2,
    .change-section h2 {
        font-size: 16px;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-buttons .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}
