/* ===============================
   기존 스타일
=============================== */

/* 루트 폰트 사이즈 설정 */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}



body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
    font-size: 14px;
}

.headline {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    padding: 20px 0;
    margin-bottom: 0px;
    background-color: #d4ecf5;
    color: #003b5c;
    border-top: 3px solid #3399cc;
    border-bottom: 3px solid #3399cc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newspaper-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1060px;
    margin: 30px auto;
    padding: 0 20px 50px;
}

.article {
    background-color: #ffffff;
    border: 2px solid #a3cbe3;
    border-left: 8px solid #3399cc;
    padding: 10px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}



.article-body {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* 메뉴바 스타일 */
.top-navbar {
    background-color: #ffffff;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 998;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);

}

.navbar-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.2s ease;
    border-radius: 4px;
    font-size: 15px;
}

.nav-links li a:hover {
    color: #4169E1;
}

.nav-links li a.active {
    color: #4169E1;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-button {
    text-decoration: none;
    padding: 8px 14px;
    font-weight: 400;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #4169E1;
    color: #4169E1;
    
}

.auth-button i {
    font-size: 14px;
}


.auth-button-combined:hover {
    background-color: #4169E1;
    color: #ffffff;
}


.auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-links-wrapper {
    display: flex;
    align-items: center;
}

.welcome-text {
    font-weight: 500;
    color: #003b5c;
    font-size: 15px;
    cursor: pointer;
}

/* 헤더 아이콘 버튼 */
.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: transparent;
    color: #999;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.header-icon-btn:hover {
    background-color: #f5f5f5;
    border-color: #e5e7eb;
    color: #4169E1;
}

.header-icon-btn i {
    font-size: 18px;
}

/* 헤더 배지 (알림 카운트) */
.header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* 사용자 드롭다운 */
.user-dropdown {
    position: relative;
}

.user-dropdown-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.user-dropdown-display:hover {
    background-color: #f5f5f5;
    border-color: #e5e7eb;
}

.user-name {
    font-weight: 500;
    color: #111;
    font-size: 14px;
}

.user-dropdown-display .dropdown-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.user-dropdown.active .user-dropdown-display .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

/* 프로필 헤더 영역 */
.user-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.user-profile-info {
    flex: 1;
}

.user-profile-name {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.user-profile-role {
    font-size: 12px;
    color: #666;
}

.user-profile-settings {
    font-size: 0.875rem;
    width: 22px;
    height: 22px;
    padding:6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #4169E1;
    border-radius: 8px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.user-profile-settings:hover {
    background-color: #3151c7;
    text-decoration: none;
}

/* 프로필 상세 정보 영역 */
.user-profile-details {
    padding: 12px 16px;
}

.user-profile-title{
    margin: 0 0 10px 0;
}
.profile-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    box-sizing: border-box;
}

.profile-detail-item:last-child {
    margin-bottom: 0;
}

.profile-detail-label {
    font-weight: 500;
    color: #666;
    min-width: 56px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-detail-label i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

.profile-detail-value {
    color: #333;
    flex: 1;
}

.user-dropdown.active .user-dropdown-menu,
.user-dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
    pointer-events: auto;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    max-width: 100%;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.user-dropdown-item > span:not(.dropdown-badge) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-item:hover {
    background-color: #f5f5f5;
}

.user-dropdown-item i {
    font-size: 16px;
    color: #666;
    width: 20px;
}

.user-dropdown-item.logout-item,
.user-dropdown-item.logout-item i {
    color: #999;
}

.user-dropdown-item.logout-item:hover {
    background-color: #f5f5f5;
}

.user-dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 4px 0;
}

/* 드롭다운 메뉴 내 배지 */
.dropdown-badge {
    background-color: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    margin-left: auto;
    flex-shrink: 0;
}

.logout-form-inline {
    margin: 0;
    padding: 0;
}

/* 프로필 카드 */
#profileCard {
    display: none;
    position: absolute;
    top: 50px;
    right: 10px;
    background: #fff;
    border: 2px solid #3399cc;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 220px;
}

.profile-card-btn {
    display: block;
    margin-top: 5px;
    background-color: #3399cc;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-card-btn:hover {
    background-color: #267aa5;
}

#profileCard a {
    display: block;
    text-align: center;
    margin-top: 5px;
    background-color: #3399cc;
    color: #fff;
    border-radius: 4px;
    padding: 6px 12px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

#profileCard a:hover {
    background-color: #267aa5;
    text-decoration: none;
}

.admin-links-container {
    text-align: center;
    margin: 20px 0;
}

.admin-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 25px;
}

.admin-links li a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #003b5c;
    transition: color 0.2s;
}

.admin-links li a:hover {
    color: #3399cc;
}

.pipe-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pipe-letter {
    display: inline-block;
    background: linear-gradient(145deg, #cdd6e0, #f2f2f3);
    border: 3px solid #6e7c91;
    color: #003b5c;
    font-weight: bold;
    font-size: 32px;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2), 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.pipe-connector {
    width: 20px;
    height: 8px;
    background-color: #6e7c91;
    border-radius: 4px;
}

/* alltable 시작 */
.alltable-wrapper {
    max-width: 1060px;
    margin: 0 auto;
    padding: 10px;
}

.alltable-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 2px solid #a3cbe3;
    text-align: center;
}

.alltable-table th, 
.alltable-table td {
    border: 1px solid #a3cbe3;
    padding: 12px;
}

.alltable-table th {
    background-color: #d4ecf5;
    color: #003b5c;
    font-weight: bold;
}

.alltable-table tr:hover {
    background-color: #f5fbff;
}

.alltable-table a {
    color: #003b5c;
    font-weight: 500;
    text-decoration: none;
}

.alltable-table a:hover {
    color: #3399cc;
    text-decoration: underline;
}

/* 버튼 영역 */
.alltable-actions {
    display: flex;
    justify-content: space-between;
    margin: 10px auto;
    max-width: 1060px;
}

.alltable-actions a {
    text-decoration: none;
    background-color: #3399cc;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.alltable-actions a:hover {
    background-color: #003b5c;
}

/* 페이지네이션 */
.alltable-pagination {
    display: flex;
    justify-content: center;
    padding: 5px;
    font-family: Arial, sans-serif;
}

.alltable-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.alltable-pagination li {
    display: inline-block;
}

.alltable-pagination li a,
.alltable-pagination li span {
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #999;
    text-decoration: none;
}

.alltable-pagination li a.active {
    background-color: #4169E1;
    color: #fff;
    font-weight: 400;
}

.alltable-pagination li a:hover {
    background-color: #2980b9;
    color: #fff;
    border-color: #2980b9;
}

.alltable-pagination li.disabled span,
.alltable-pagination li.disabled a {
    color: #bbb;
    background-color: #f5f5f5;
    border-color: #ddd;
    cursor: not-allowed;
}

/* ===============================
   쪽지함/1:1문의 및 환영메시지 분리
=============================== */

/* 쪽지함 + 1:1문의 작은 글자, 한 줄 (글자만, 버튼 스타일 없음) */
.user-notification-links {
    display: flex;
    font-size: 12px; /* 글자 작게 */
    align-items: center;
    margin-bottom: 2px;
    margin-left: -0px; /* 위치 조정 */
}

.user-notification-links a {
    all: unset;
    color: #003b5c;
    text-decoration: none;
    position: relative;
    padding: 0 4px;       /* 살짝 패딩 */
    cursor: pointer;
    border-radius: 4px;   /* 배경색 호버 둥글게 */
}

.user-notification-links a:hover {
    background-color: rgba(51, 153, 204, 0.2); /* 연한 하늘색 배경 */
    color: #003b5c;                            /* 글자 고정 */
}

.user-notification-links .divider {
    color: #aaa;
}

/* ===============================
   쪽지함 배지
=============================== */
.user-notification-links .message-link .badge {
    background-color: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 8px;
    position: relative;   /* 글 바로 옆에 붙도록 relative */
    top: -2px;            /* 글 높이에 맞춰 살짝 위로 */
    margin-left: -1px;     /* 글과 배지 사이 간격 */
    line-height: 1;
    box-shadow: 0 1px 3px rgba(51, 153, 204, 0.2);
}

/* ===============================
   1:1 문의 배지
=============================== */
.user-notification-links .inquiry-link .badge {
    background-color: #3498db;  /* 문의용은 다른 색상 가능 */
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 8px;
    position: relative;   /* 글 바로 옆에 붙도록 relative */
    top: -2px;            /* 글 높이에 맞춰 살짝 위로 */
    margin-left: -1px;     /* 글과 배지 사이 간격 */
    line-height: 1;
    box-shadow: 0 1px 3px rgba(51, 153, 204, 0.2);
}

.user-notification-links a[data-unread="0"] .badge {
    background-color: #999;
}

/* ===============================
   환영 메시지 + 로그아웃 버튼
=============================== */
.user-welcome-logout {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

/* 환영 메시지 + 줄임표 적용 */
.user-welcome-logout .welcome-text {
    font-weight: 500;
    color: #003b5c;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;

    white-space: nowrap;       /* 한 줄로 유지 */
    overflow: hidden;          /* 넘치는 부분 숨김 */
    text-overflow: ellipsis;   /* ... 표시 */
    max-width: 150px;          /* 필요에 따라 너비 조정 */
}

.user-welcome-logout .welcome-text:hover {
    background-color: rgba(51, 153, 204, 0.2); /* 조금 더 진한 연하늘색 */
    color: #003b5c;              /* 글자색 유지 */
}


/* 로그아웃 버튼 스타일 */
.user-welcome-logout .logout-form {
    margin: 0;
}

.user-welcome-logout .logout-form button {
    /* 기존 버튼 스타일 import */
    text-decoration: none;
    background-color: #3399cc;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 12px;
}

.user-welcome-logout .logout-form button:hover {
    background-color: #267aa5;
    color: #fff;
}

    /* ===============================
    📌 프로필 카드 닫기 버튼 (네모)
    =============================== */
    #profileCard .close-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 25px;
        height: 25px;
        background-color: #3399cc;
        color: #fff;
        border: none;
        border-radius: 4px; /* 네모로 변경 */
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        transition: background-color 0.3s;
        line-height: 1;
    }

    #profileCard .close-btn:hover {
        background-color: #267aa5;
    }

.hamburger,
.offcanvas-menu{
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1060px) {
    .top-navbar {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-container {
        width:100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .nav-links{
        display: none;
    }
    /* 로고 - 왼쪽 */
    .logo {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        margin: 0;
        width: auto;
    }

    /* 네비게이션 링크 숨기기 */
    .nav-links {
        display: none;
    }

    /* 태블릿/모바일에서 유저 드롭다운 숨기기 */
    .user-links-wrapper,
    .user-dropdown {
        display: none !important;
    }

    /* 인증 섹션 - 오른쪽에 사용자 드롭다운과 햄버거 버튼 */
    .auth-section {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 0 0 auto;
        position: relative;
    }

    /* 로그인/회원가입 버튼 숨기기 */
    .auth-buttons {
        display: none;
    }

    /* 햄버거 버튼 - 모던 디자인 */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 20px;
        height: 40px;
        background:none;
        border-radius: 12px;
        cursor: pointer;
        padding: 10px;
        position: relative;
        z-index: 1001;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        overflow: hidden;
        border:none;
    }

    .hamburger::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 12px;
    }



    .hamburger:hover::before {
        opacity: 1;
    }

    .hamburger:active {
        transform: translateY(0) scale(0.98);
    }

    .hamburger span {
        display: block;
        width: 20px;
        height: 1.5px;
        border-radius: 4px;
        background: #333;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        position: absolute;
    }

    .hamburger:hover span {
        background: #666;
    }

    .hamburger span:nth-child(1) {
        top: 13px;
    }

    .hamburger span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .hamburger span:nth-child(3) {
        bottom: 13px;
    }


    /* Offcanvas 메뉴 오버레이 */
    .offcanvas-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(2px);
    }

    .offcanvas-overlay.active {
        opacity: 1;
        visibility: visible;
        z-index: 999;
    }

    /* Offcanvas 메뉴 */
    .offcanvas-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .offcanvas-menu.active {
        right: 0;
    }

    /* Offcanvas 헤더 */
    .offcanvas-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        box-sizing: border-box;
        height:60px;
        color: #333;
        border-bottom: 1px solid #e5e7eb;
    }
    
    
    .offcanvas-header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    
    
    
    .offcanvas-home,
    .offcanvas-close {
        border: none;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        background: none;
        text-decoration: none;
        padding:0;
    }


    /* Offcanvas 본문 */
    .offcanvas-body {
        flex: 1;
        padding: 0;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    /* Offcanvas 인증 섹션 - 맨 상단 */
    .offcanvas-auth {
        margin-top: 20px;
    }

    /* Offcanvas 내 프로필 헤더 스타일 */
    .offcanvas-auth .user-profile-header {
        padding:0 20px 16px;
        border-bottom: 1px solid #e5e7eb;
    }
 

    /* Offcanvas 내 프로필 상세 정보 스타일 */
    .offcanvas-auth .user-profile-details {
        padding: 16px 20px;
        border-bottom: 1px solid #e5e7eb;
        background-color: #f5f5f5;
    }

    /* Offcanvas 인증 버튼 그룹 */
    .offcanvas-auth-buttons {
        display: flex;
        width: 100%;
    }

    .offcanvas-auth-buttons .auth-button {
        width: 100%;
        justify-content: center;
        padding:10px 0;
        margin:0 20px auto;
    } 

    /* Offcanvas 네비게이션 섹션 */
    .offcanvas-nav-section {
        padding: 20px 0 0;
    }

    /* Offcanvas 로그아웃 섹션 - 맨 하단 */
    .offcanvas-logout-section {
        padding: 20px 0;
        margin-top: auto;
        border-top: 1px solid #e5e7eb;
    }

    .offcanvas-nav-title {
        padding: 0 20px;
        margin: 0 0 10px;
        font-size: 0.875rem;
        font-weight: 400;
        color: #999;
    }

    /* Offcanvas 네비게이션 링크 */
    .offcanvas-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .offcanvas-nav-links li {
        border-bottom: 1px solid #f0f0f0;
    }
 
    .offcanvas-nav-links li:last-child {
        border-bottom: none;
    }

    .offcanvas-nav-links li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 400;
    }

    .offcanvas-nav-links li a i {
        font-size: 1rem;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }

    .offcanvas-nav-links li a.active {
        background-color: #f0f4ff;
        color: #4169E1;
    }

    .offcanvas-user-info {
        padding: 16px;
        background: #fff;
        border-radius: 8px;
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
    }

    .offcanvas-user-name {
        font-size: 18px;
        font-weight: 600;
        color: #111;
        margin-bottom: 4px;
    }

    .offcanvas-user-email {
        font-size: 14px;
        color: #666;
    }

    .offcanvas-user-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .offcanvas-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        color: #333;
        text-decoration: none;
        font-size: 15px;
        transition: all 0.2s ease;
    }

    .offcanvas-link i {
        font-size: 18px;
        color: #4169E1;
    }

    .offcanvas-link:hover {
        background-color: #f0f4ff;
        border-color: #4169E1;
        color: #4169E1;
        transform: translateX(4px);
    }

    .offcanvas-badge {
        background-color: #ef4444;
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 12px;
        min-width: 20px;
        text-align: center;
    }
    .offcanvas-logout-section{
        padding: 20px;
    }

    .offcanvas-logout-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #fff;
        padding: 10px 0;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        color: #999;
        font-size: 0.875rem;
    }



    .offcanvas-logout-btn i {
        font-size: 18px;
    }

    .nav-links li a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
        color: #003b5c;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.2s ease, color 0.2s ease;
        border-radius: 4px;
    }


    /* ✅ 로그아웃 버튼 (한 줄 유지, 줄바꿈 방지) */
    .logout-form button {
        display: inline-block;
        white-space: nowrap;
        word-break: keep-all;
        padding: 8px 12px;
        background-color: #3399cc;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }

    

    /* ✅ 반갑습니다 텍스트 클릭 시 프로필 카드 토글 */
    .welcome-text {
        cursor: pointer;
        color: #003b5c;
        font-weight: 500;
        white-space: nowrap;
    }

    /* 프로필 카드 왼쪽 표시 */
    #profileCard {
        position: absolute;
        top: 50px; /* 메뉴 상단 기준 */
        left: 10px; /* 왼쪽에서 나오도록 */
        display: none; /* 기본 숨김 */
        background-color: #fff;
        border: 1px solid #a3cbe3;
        border-radius: 6px;
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        z-index: 1000;
    }

    /* ✅ 파이프 타이틀 유지 */
    .pipe-title {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .pipe-connector {
        width: 20px;
        height: 8px;
    }
}

@media (max-width: 468px) {
    .offcanvas-auth .user-profile-header {
        padding: 0 15px 15px;
    }

    .offcanvas-header  {
        padding: 0 15px;
    }
    .offcanvas-auth .user-profile-details{
        padding: 15px;
    }
    .offcanvas-nav-links li a{
        padding: 15px;
    }
    .offcanvas-logout-section{
        padding: 15px;
    }
    
    .offcanvas-auth-buttons .auth-button {
        margin:0 15px auto;
    } 
}





