:root {
    --primary-color: #3F80EA;
    --secondary-color: #3F80EA;
    --accent-color: #FF9FDF;
    --text-color: #222222;
    --light-bg: #F4F9FF;
    --white-bg: #FFFFFF;
    --dark-bg: #222222;
    --main-blue: #3F80EA;
    --hover-blue: #0051C6;
    --gradient-primary: linear-gradient(277.82deg, #FF9FDF 7.07%, #0E6AF0 96.74%);
    --main-font: 'Pretendard', 'Noto Sans KR', sans-serif;
    --main-width: 1720px;
    --header-btn-width: 100px;
    --header-btn-height: 45px;
}
@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

body {
    font-family: var(--main-font);
    color: var(--text-color);
    background: var(--white-bg);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.header {
    width: 100%;
    height: 100px;
    background: var(--white-bg);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    padding: 27px 99px;
}

.header-container {
    width: 100%;
    max-width: var(--main-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left,
.header-nav,
.header-right {
    display: flex;
    align-items: center;
}
/*
.logo-group {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .3rem;
}
    */

.logo-group > a {
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: .3rem;
}

.logo {
    width: 57px;
    height: 56px;
    /*background: linear-gradient(135deg, #ff6b9d 0%, #4a69bd 50%, #764ba2 100%);*/
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.brand-text {
    font-family: 'GMarketSans';
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    height: 30px;
    line-height: 45px;
    color: var(--main-blue);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    font-family: 'Pretendard';
    color: #444444;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-style: SemiBold;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.5%;
}

.nav-link:hover {
    color: var(--hover-blue);
    /*background: #f8f9fa;*/
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 45px;
    background: var(--white-bg);
    border: 1px solid var(--primary-color);
    border-radius:506px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    /*
    background: #4a69bd;
    color: white;
    */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mypage-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 100px;
    height: 45px;

    background: linear-gradient(279deg, #FF9FDF 3%, #0E6AF0 95%);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Pretendard';
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mypage-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.notification-btn {
    position: relative;
    width: 43px;
    height: 43px;
    background: unset;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}
/*
.notification-btn:hover {
    background: #e9ecef;
    color: #4a69bd;
}
*/

.notification-badge {
    position: absolute;
    top: 2px;
    right: -2px;
    background: #ff4757;
    color: white;
    border-radius: 50px;
    width: 25px;
    height: 16px;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn {
    width: 45px;
    height: 45px;
    background-color: var(--white-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/*
.menu-btn:hover {
    background: #e9ecef;
    color: #4a69bd;
}
*/

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1050;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--main-blue)
}

.dropdown {
    position: relative;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.form-control {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: var(--main-width);
    padding: 2rem 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-bg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1050;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
}

.dropdown-menu.show {
    display: block;
}

.notification-menu {
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.modal-backdrop {
    z-index: 1060;
}

.modal {
    z-index: 1065;
}

.modal-dialog {
    margin: 1.75rem auto;
}

.company-card {
    border-radius: 1rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}
.company-card:hover {
    box-shadow: 0 8px 24px rgba(52,152,219,0.15);
    transform: translateY(-4px);
}
.company-card h5 {
    font-size: 1.2rem;
}
.company-card ul {
    margin-bottom: 0.5rem;
}
.company-card ul li {
    margin-bottom: 0.35rem;
}
.company-card strong {
    color: #2c3e50;
}
/* 페이지네이션 스타일 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    text-decoration: none;
    border-radius: 50%;  /* 원형으로 변경 */
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #f9fafb;
    color: #3b82f6;
    border-color: #3b82f6;
}

.page-item.active .page-link {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    font-weight: 600;
}

.page-item.disabled .page-link {
    background: #f9fafb;
    color: #d1d5db;
    border-color: #e5e7eb;
    border-radius: 50%;
    cursor: not-allowed;
    pointer-events: none;
}

.page-item:last-child .page-link {
    border-radius: 50%;
}

.page-item:first-child .page-link {
    border-radius: 50%;
}

/* 이전/다음 버튼 스타일 */
.page-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    padding: 0;
    font-size: 0.8rem;
}

.page-arrow i {
    font-size: 0.75rem;
}

/* 생략 부호 스타일 */
.page-ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: default;
}
/* 푸터 스타일 */
.footer {
    background: var(--dark-bg);
    height: 30rem;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer > .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;

}

.footer-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-divider {
    height: 1px;
    background: #9F9F9F;
    margin: 1.5rem 0;
}

.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.footer-contact .contact-item {
    flex-direction: column;
    display: flex;
    gap: 1rem;
}

.footer-contact .contact-detail {
    color: #9F9F9F;
}

.footer .copyright {
    color: #9F9F9F;
}

#topButton {
    top: 40%;
    right: 20px;
    position: fixed;
    transform: translateY(-50%);
    z-index: 1050;
}

@media (max-width: 1600px) {
    .header,
    .footer {
        padding: 0 1rem;
    }
    .header-nav { gap: 2rem;}

}

@media (max-width: 768px) {
    .footer .container {
        gap: 1rem;
    }
    .footer-contact {
        flex-direction: column;
        margin-bottom: 1rem;
        gap: .5rem;
    }
}

@media (max-width: 576px) {
    .footer {
        height: 40rem;
    }
}