body {
        margin: 0 auto;
        font-family: Arial, sans-serif;
        background-color: #f3f4f6;
        width: 1280px;
    }
/* 공통 섹션 패딩 */
.page-section {
    padding: 40px 30px;
}

/* 헤더 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fafafa;
    padding: 15px 40px;
    border-bottom: 1px solid #ccc;
}

.logo a {
    font-size: 40px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.search-bar {
    display: flex;
    justify-content: flex-start; 
    margin-bottom: 20px;
    padding: 0 40px 0 20px; /* 오른쪽 여백을 40px로 줄임 */
    position: relative;
    max-width: 600px; /* 검색바 전체 최대 너비 조절 */
    margin-top: 15px;
}



.search-bar form {
    display: flex;
    align-items: center;
    max-width: 500px; /* 길이 늘리기 */
    width: 100%;
}

.search-bar input {
    flex: 1;
    padding: 12px 18px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-right: none;
    border-radius: 25px 0 0 25px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.05);
    outline: none;
    background-color: #fff;
}

.search-btn {
    padding: 12px 20px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-left: none;
    border-radius: 0 25px 25px 0;
    background-color: #6a5acd;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-btn:hover {
    background-color: #5a4abc;
}


.search-btn svg {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.search-warning {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #d9534f;
    color: white;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 5px;
    margin-top: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-warning.show {
    display: block;
    opacity: 1;
}

/* 메뉴 */
.menu {
    display: flex;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 28px;
    margin-left: 30px;
    transition: transform 0.2s, color 0.3s;
    position: relative;
}

.menu a:hover {
    color: #a499f2;
    transform: scale(1.2);
}

.menu a::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10;
}

.menu a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

/* 명언 */
/* 명언 컨테이너 */
.quote-container {
    position: relative;
    max-width: 700px;
    margin: 30px auto;
    padding: 30px 40px;
    background: linear-gradient(135deg, #f7f8fc 0%, #e2e6f9 100%);
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(99, 99, 99, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.06);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #3b3f58;
    user-select: text;
    transition: box-shadow 0.3s ease;
}

.quote-container:hover {
    box-shadow:
        0 12px 24px rgba(99, 99, 99, 0.15),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 제목 */
.quote-title {
    font-weight: 700;
    font-size: 24px;
    color: #4b4e6d;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    user-select: none;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}


#quote-text {
    position: relative;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 22px;
    font-style: italic;
    line-height: 1.8;
    color: #3a3f55;
    max-width: 90%;
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
    text-shadow: 0 1px 2px rgba(150, 150, 150, 0.2);
    letter-spacing: 0.03em;
    text-align: center;
}

/*#quote-text::before {
    content: "🍃";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.2;
}

#quote-text::after {
    content: "🍃";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.2;
}


/* 섹션 타이틀 공통 */
.section-title,
.category-title,
.share-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-top: 40px;
}

/* 밑줄 */
.underline {
    width: 60px;
    height: 3px;
    background-color: #a499f2;
    margin: 10px auto 30px;
}

/* 카테고리/이달의책/공유 박스 공통 */
.share-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
    padding: 0 30px;
    justify-items: center;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
    margin: 0px;
    padding: 0px;
}

.category-item {
    width: 140px;
    height: 36px;
    background-color: #e6e6fa;
    border: 1px solid #e0e0ff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 2px rgba(180, 180, 255, 0.1);
    padding: 0 6px;
    margin: 0px;
}

.share-box {
    width: 180px;
    height: 48px;
    background-color: #e6e6fa;
    border: 1px solid #e0e0ff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 5px rgba(180, 180, 255, 0.2);
}

.category-item:hover,
.share-box:hover {
    background-color: #dedbff;
    transform: translateY(-2px);
    box-shadow: 2px 2px 8px rgba(100, 100, 200, 0.3);
}

/* 책 카드 */
.book-card {
    text-align: center;
    width: 100%;
    max-width: 200px;
}

.book-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 1px 1px 6px rgba(150, 150, 200, 0.2);
}

.book-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* 책 추가 버튼 */
.add-book-button {
    font-size: 22px;
    margin-left: 15px;
    text-decoration: none;
    color: #5a4fcf;
    transition: 0.3s;
}

.add-book-button:hover {
    transform: scale(1.3);
    color: #a499f2;
}

/* 푸터 */
.footer-box {
    display: flex;
    justify-content: center;
    gap: 50px;
    background-color: #fafafa;
    border-top: 1px solid #ccc;
    padding: 30px;
    margin-top: 60px;
    font-size: 14px;
    color: #777;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {

    .category-container,
    .monthly-books,
    .share-container {
        grid-template-columns: 1fr 1fr;
        gap: 0px;
    }

    .category-item,
    .share-box {
        width: 180px;
        height: 48px;
    }

    .menu a {
        font-size: 22px;
        margin-left: 20px;
    }

    .search-bar input {
        width: 100%;
        padding: 12px 18px;
        /* 패딩을 약간 줄였습니다 */
        font-size: 14px;
        /* 폰트 크기도 살짝 줄였습니다 */
        border: 1px solid #ccc;
        border-radius: 25px;
        box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.)
    }

    .book-card {
        max-width: 150px;
    }
}

@media screen and (max-width: 480px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .search-bar {
        flex-grow: 1;
        max-width: 800px;
        /* 너비를 줄여줍니다 */
        margin: 0 30px;
    }

    .menu {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .category-container,
    .monthly-books,
    .share-container {
        grid-template-columns: 1fr;
    }

    .footer-box {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
}

/* 로그인 페이지 기본 스타일 */
.login-page {
    background-color: #f0f0f0;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* 로그인 카드 */
.login-page .auth-container {
    width: 360px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 로고 스타일 */
.login-page .auth-logo a {
    font-size: 20px;
    color: #a499f2;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: bold;
}

/* 로그인 제목 */
.login-page .auth-header h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

/* 입력 박스 스타일 */
.login-page .input-box {
    margin-bottom: 18px;
}

/* 레이블 스타일 */
.login-page .input-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

/* 입력창 스타일 */
.login-page .input-box input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 입력창 포커스 상태 */
.login-page .input-box input:focus {
    border-color: #a499f2;
    background-color: #fff;
    outline: none;
}

/* 로그인 버튼 */
.login-page .auth-btn {
    width: 100%;
    padding: 14px;
    background-color: #e6e6fa;
    color: 000000;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 로그인 버튼 hover 시 효과 */
.login-page .auth-btn:hover {
    background-color: #dedbff;
}

.login-page .auth-footer {
    text-align: center;
    margin-top: 40px;
}

.login-page .auth-footer a {
    color: #000000;
    font-size: 14px;
    text-decoration: none;
}

/* 링크 hover 효과 */
.login-page .auth-footer a:hover {
    color: #333;
    text-decoration: underline;
}

/* 성공 메시지 스타일 */
.login-page .success-message {
    background-color: #d4f5d4;
    color: #2e7d32;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 에러 메시지 스타일 */
.login-page .error-message {
    background-color: #fddede;
    color: #d32f2f;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 회원가입 페이지 기본 스타일 */
.signup-page {
    background-color: #f0f0f0;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* 회원가입 카드 */
.signup-page .auth-container {
    width: 360px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 로고 스타일 */
.signup-page .auth-logo a {
    font-size: 20px;
    color: #a499f2;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: bold;
    display: block;
}

/* 회원가입 제목 */
.signup-page .auth-header h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

/* 입력 박스 스타일 */
.signup-page .input-box {
    margin-bottom: 18px;
}

/* 레이블 스타일 */
.signup-page .input-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

/* 입력창 스타일 */
.signup-page .input-box input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 입력창 포커스 상태 */
.signup-page .input-box input:focus {
    border-color: #a499f2;
    background-color: #fff;
    outline: none;
}

/* 회원가입 버튼 */
.signup-page .auth-btn {
    width: 100%;
    padding: 14px;
    background-color: #e6e6fa;
    color: #000000;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 회원가입 버튼 hover 시 효과 */
.signup-page .auth-btn:hover {
    background-color: #dedbff;
}

/* 푸터 스타일 */
.signup-page .auth-footer {
    text-align: center;
    margin-top: 40px;
}

.signup-page .auth-footer a {
    color: #000000;
    font-size: 14px;
    text-decoration: none;
}

/* 링크 hover 효과 */
.signup-page .auth-footer a:hover {
    color: #333;
    text-decoration: underline;
}

/* 성공 메시지 스타일 */
.signup-page .success-message {
    background-color: #d4f5d4;
    color: #2e7d32;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* 에러 메시지 스타일 */
.signup-page .error-message {
    background-color: #fddede;
    color: #d32f2f;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.welcome-message {
    padding: 6px 24px 6px 12px;
    background-color: #e6e6fa;
    /* 연보라 배경 */
    color: #333;
    /* 네이비 텍스트 */
    font-weight: 600;
    border-radius: 16px;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1.5;
    /* 텍스트 수직 정렬 */
    display: flex;
    /* 플렉스로 변경 */
    justify-content: center;
    /* 수평 가운데 정렬 */
    align-items: center;
    /* 수직 가운데 정렬 */
    overflow: hidden;
    /* 오버플로우된 텍스트 숨기기 */
    margin-left: auto;
    margin-right: auto;
}

/* 탈퇴 완료 페이지에만 쓰일 스타일 */
.goodbye-page .auth-header h2 {
    font-size: 24px;
    color: #444;
    text-align: center;
    margin-bottom: 20px;
}

.goodbye-page .success-message {
    background-color: #f0f9ff;
    color: #31708f;
    padding: 12px;
    border: 1px solid #bce8f1;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 25px;
    text-align: center;
}

main {
    padding: 0 40px;
    /* 좌우 여백 */
}

/* 1) book-item 간격 늘리기 */
.book-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 30px 20px;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #e4e4ec; /* ✨ 연한 테두리 추가 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.book-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}
/* 책 이미지 */
.book-image img {
    width: 120px;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* 책 정보 */
.book-info {
    flex: 1;
    position: relative; /* 아이콘 기준 위치 설정 */
}

.book-info .book-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.book-author,
.book-publisher,
.book-date,
.book-price {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}

.book-description {
    margin: 10px 0 14px;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

/* 아이콘 버튼 영역 */
.icons {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 12px;
}

.icons button {
    background-color: #f0f0f5;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.icons button:hover {
    background-color: #dedbff;
    transform: scale(1.1);
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 한 줄에 3개 */
    gap: 40px 40px;
    padding: 0 10px;
    max-width: 800px;
    margin: 20px auto 40px;
}

.category-buttons button {
    background-color: #f5f5f8;
    border: 2px solid #bbb; /* 테두리 추가 */
    border-radius: 14px;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #44495a;
    cursor: pointer;
    box-shadow:
      4px 4px 8px #d9dbdf,
      -4px -4px 8px #ffffff;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-buttons button:hover,
.category-buttons button:focus {
    background-color: #e6e6fa;
    color: #6a5acd;
    border-color: #6a5acd; /* 호버 시 테두리 색 변경 */
    box-shadow:
      inset 4px 4px 8px #bebed1,
      inset -4px -4px 8px #ffffff;
    outline: none;
    transform: translateY(-3px);
}

.category-buttons button:active {
    background-color: #dcd8f9;
    transform: translateY(0);
}

/* 만약 링크가 있으면 아래처럼 */
.category-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f8;
    border: 2px solid #bbb; /* 테두리 추가 */
    border-radius: 14px;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #44495a;
    text-decoration: none;
    box-shadow:
      4px 4px 8px #d9dbdf,
      -4px -4px 8px #ffffff;
    transition: all 0.3s ease;
    user-select: none;
    cursor: pointer;
    margin-top: 0;
}

.category-buttons a:hover,
.category-buttons a:focus {
    background-color: #e6e6fa;
    color: #6a5acd;
    border-color: #6a5acd; /* 호버 시 테두리 색 변경 */
    box-shadow:
      inset 4px 4px 8px #bebed1,
      inset -4px -4px 8px #ffffff;
    outline: none;
    transform: translateY(-3px);
}

.category-buttons a:active {
    background-color: #dcd8f9;
    transform: translateY(0);
}


.flash-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000;
    /* 초록색 배경 */
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    font-size: 16px;
    z-index: 1000;
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    10%,
    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 장바구니 테이블 - 책 제목, 수량, 가격 관련 컬럼 스타일 */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    margin-top: 20px;
}

.cart-table thead {
    background-color: #fafafa;
    color: 000000;
}

.cart-table th,
.cart-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.cart-table tbody tr:hover {
    background-color: #f0f4ff;
}

/* 책 표지 이미지 */
.cart-table img {
    width: 60px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 책 제목 */
.cart-table td:nth-child(2) {
    font-weight: 600;
    color: #182848;
    text-align: left;
    padding-left: 10px;
}

/* 수량 input */
input[type="number"] {
    width: 60px;
    padding: 5px 8px;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    border-color: #a499f2;
    outline: none;
}

/* 가격, 합계 컬럼 */
.cart-table td:nth-child(4),
.cart-table td:nth-child(6) {
    font-weight: 600;
    color: #000000;
}

/* 버튼 스타일 */
button {
    background-color: #a499f2;
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

button:hover {
    background-color: #dedbff;
}

.book-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.book-title {
    font-weight: bold;
    font-size: 18px;
    color: navy;
}

.delete-button {
    background-color: #ffccd5;
    color: #8b0000;
    border: none;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.2s ease;
}

.delete-button:hover {
    background-color: #ff99aa;
    color: white;
}

/* 마이페이지 기본 스타일 */
.mypage-container {
    background-color: #f7f7f7;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

/* 마이페이지 섹션 */
.mypage-section {
    margin-bottom: 40px;
}

/* 마이페이지 항목 박스 */
.mypage-item-box {
    background-color: #e6e6fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(180, 180, 255, 0.2);
    transition: background-color 0.3s, border-color 0.3s;
}

.mypage-item-box.selected {
    background-color: #e0f7fa;
    border-left: 4px solid #6a54c1;
}

/* 책 제목 색상 */
.mypage-item-box .book-title {
    color: #000000 !important;
    /* 검정색 */
}


/* 리뷰 삭제 버튼 스타일 */
.mypage-delete-btn {
    background-color: #ffccd5;
    color: #8b0000;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s ease;
}

.mypage-delete-btn:hover {
    background-color: #ff99aa;
    color: white;
}

/* 마이페이지 버튼 스타일 */
.mypage-button {
    background-color: #a499f2;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.mypage-button:hover {
    background-color: #dedbff;
}

/* Modal 스타일 */
#mypageDeleteModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.mypage-modal-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.mypage-modal-buttons button {
    margin: 0 10px;
}

/* 성공 메시지 스타일 */
.success-message {
    background-color: #28a745;
    /* 초록색 배경 */
    color: white;
    /* 텍스트는 흰색 */
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
    /* 애니메이션 추가 */
}

/* 성공 메시지 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 리뷰 작성 폼 스타일 */
.review-form {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.review-form label {
    display: block;
    margin: 10px 0 5px;
}

.review-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    resize: vertical;
}

.review-form input[type="number"] {
    width: 60px;
    padding: 5px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.review-form button {
    background-color: #a499f2;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.review-form button:hover {
    background-color: #dedbff;
}

/* 추가: 별점 표시 스타일 */
.star-rating {
    display: flex;
    direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    width: 20px;
    height: 20px;
    background: url('star-icon.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

.star-rating input:checked~label {
    background: url('star-filled-icon.png') no-repeat center center;
    background-size: contain;
}

.star-rating input:disabled~label {
    opacity: 0.5;
}

/* 확인 창 스타일 */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.confirmation-modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.confirmation-modal button {
    margin: 10px;
}

/* 친구 추가 페이지 컨테이너 */
.friend-wrapper {
    max-width: 900px;
    margin: 50px auto;
    padding: 35px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    color: #333;
    transition: all 0.3s ease;
}

/* 섹션 제목 */
.friend-wrapper .section-title {
    font-weight: 900;
    font-size: 2rem;
    color: #6a5acd;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

/* 친구 검색 폼 */
.friend-wrapper .friend-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.friend-wrapper .friend-search-form input[type="text"] {
    flex-grow: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    background-color: #f4f4ff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: all 0.3s ease;
}

.friend-wrapper .friend-search-form input[type="text"]:focus {
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}

.friend-wrapper .friend-search-form button {
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to right, #6a5acd, #836fff);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(106, 90, 205, 0.3);
    position: relative;
    overflow: hidden;
}

.friend-wrapper .friend-search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(106, 90, 205, 0.4);
}

/* 버튼 로딩 애니메이션 */
.friend-wrapper .friend-search-form button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 섹션 제목 */
.friend-wrapper .section h3 {
    font-weight: 700;
    color: #6a5acd;
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-left: 4px solid #6a5acd;
    padding-left: 10px;
}

/* 친구 목록 */
.friend-wrapper .friend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 15px;
}

.friend-wrapper .friend-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.friend-wrapper .friend-list li:hover {
    transform: scale(1.01);
}

/* 친구 목록 버튼 */
.friend-wrapper .friend-list li button {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-wrapper .friend-list li button:disabled {
    background-color: #e0e0f8;
    color: #666;
    cursor: default;
}

/* 친구 요청 버튼 */
.friend-request-btn {
    background-color: #6a5acd;
    color: #fff;
}

.friend-request-btn:hover:not(:disabled) {
    background-color: #4b3bbd;
}

/* 친구 요청 수락 버튼 */
.accept-btn {
    background-color: #4caf50;
    color: white;
    margin-right: 10px;
}

.accept-btn:hover {
    background-color: #388e3c;
}

/* 친구 요청 거절 버튼 */
.reject-btn {
    background-color: #e74c3c;
    color: white;
}

.reject-btn:hover {
    background-color: #c0392b;
}

/* 친구 상태 메시지 */
.friend-status {
    font-weight: 600;
    color: #28a745;
    margin-left: 12px;
    font-size: 0.95rem;
}

/* 결과 없음 메시지 */
.no-results {
    font-style: italic;
    color: #999;
    text-align: center;
    margin-top: 15px;
}

/* 인라인 폼 */
.inline-form {
    display: inline-block;
}

/* 상태 메시지 */
span[id^="status-"] {
    margin-left: 10px;
    font-weight: 600;
}

/* 알림 메시지 */
.alert {
    padding: 14px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.alert.success {
    background-color: #e0f9e9;
    color: #2e7d32;
    border: 1px solid #b2dfdb;
}

.alert.error {
    background-color: #ffe5e5;
    color: #c62828;
    border: 1px solid #f5c6cb;
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    .friend-wrapper {
        padding: 20px;
    }

    .friend-search-form {
        flex-direction: column;
    }

    .friend-search-form input,
    .friend-search-form button {
        width: 100%;
        border-radius: 12px;
    }

    .friend-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .button-wrapper {
    text-align: center;        /* 가운데 정렬 */
    margin-top: 30px;          /* 위쪽 여백 */
}

.button-wrapper .btn {
    display: inline-block;
    background-color: #a499f2;
    color: white;
    padding: 12px 25px;
    margin: 0 10px;             /* 버튼 사이 간격 */
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button-wrapper .btn:hover {
    background-color: #e6e6fa;
    color: #333;
}

}