/* 사용자 화면 스타일 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
}

.main-content {
    position: relative;
    z-index: 1;
}

/* Header */
.user-header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-header .logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.user-header .logo-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.user-header .logo-main {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.user-header .logo-sub {
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
    margin-top: 2px;
}

.user-header .logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.user-header .main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.user-header .main-nav > a,
.user-header .main-nav .nav-item-dropdown {
    position: relative;
}

.user-header .main-nav > a,
.user-header .main-nav .nav-link-main {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 5px 0;
}

.user-header .main-nav > a:hover,
.user-header .main-nav .nav-link-main:hover {
    opacity: 0.8;
}

/* 드롭다운 메뉴 */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu-nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu-nav {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu-nav a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-menu-nav a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.user-header .header-icons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
}

.user-header .icon-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.user-header .icon-link i {
    font-size: 18px;
}

/* Tab Menu */
.tab-menu {
    background-color: white;
    padding: 0;
    border-bottom: 2px solid #e0e0e0;
}

.tab-menu .nav-tabs {
    border-bottom: none;
    padding: 0 20px;
}

.tab-menu .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-menu .nav-tabs .nav-link:hover {
    border-bottom-color: #ddd;
    color: #333;
}

.tab-menu .nav-tabs .nav-link.active {
    border-bottom-color: #007bff;
    color: #007bff;
    background-color: transparent;
}

/* Main Content */
.main-content {
    padding: 30px 0;
    background-color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.pension-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
}

.sub-nav {
    text-align: center;
    margin-bottom: 30px;
}

.sub-nav a {
    color: #666;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.sub-nav a:hover {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.legend-circle.available {
    background-color: #28a745;
}

.legend-circle.waiting {
    background-color: #ffc107;
}

.legend-circle.completed {
    background-color: #dc3545;
}

.legend-text {
    font-size: 13px;
    color: #666;
}

/* Calendar Grid */
.calendar-container {
    margin-top: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border: 1px solid #ddd;
    background-color: white;
}

.calendar-day-header {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-day {
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    min-height: 200px;
    background-color: white;
    position: relative;
}

.calendar-day:last-child {
    border-right: none;
}

.day-header {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.day-number {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.day-name {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.room-list {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}

.room-list li {
    font-size: 11px;
    padding: 3px 5px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: default;
    transition: background-color 0.2s;
}

.room-list li:hover {
    background-color: #f0f0f0;
}

.room-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}

.room-status.available {
    background-color: #28a745;
    color: white;
    display: inline-block;
}

.room-status.season {
    background-color: #007bff;
    color: white;
}

.room-status.completed {
    background-color: #dc3545;
    color: white;
}

.room-status.waiting {
    background-color: #ffc107;
    color: #333;
}

.room-name {
    flex: 1;
    font-size: 11px;
    color: #333;
}

.room-name a {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.room-name a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Weekend styling */
.calendar-day.weekend {
    background-color: #fff8f0;
}

.calendar-day.weekend .day-number {
    color: #ff6b6b;
}

/* Empty cell */
.calendar-day.empty {
    background-color: #f8f9fa;
}

/* Modal */
.deposit-modal .modal-content {
    border-radius: 10px;
}

.deposit-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.deposit-modal .modal-title {
    font-weight: bold;
    font-size: 18px;
}

.deposit-modal .modal-body {
    padding: 25px;
}

.deposit-modal .section-title {
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.deposit-modal .section-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.deposit-modal .example-list {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 10px;
}

.deposit-modal .example-list li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.deposit-modal .warning-text {
    color: #dc3545;
    font-weight: bold;
    margin-top: 15px;
}

/* Footer */
.user-footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.user-footer .footer-left p {
    margin-bottom: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.user-footer .footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.user-footer .social-icon,
.user-footer .scroll-top {
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.user-footer .social-icon:hover,
.user-footer .scroll-top:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .user-header .main-nav {
        flex-direction: column;
        gap: 10px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 10px;
    }

    .calendar-day {
        min-height: 120px;
    }

    .room-list li {
        font-size: 9px;
    }
}

