* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background-color: #2d2d2d;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    text-align: center;
}

.site-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.header-text {
    text-align: center;
    width: 100%;
}

header h1 {
    color: #ff9800;
    font-size: 2rem;
    margin: 0;
    text-align: center;
    width: 100%;
    display: block;
}

.site-description {
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
    margin: 10px 0 0 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .site-logo {
        width: 50px;
        height: 50px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .site-description {
        font-size: 0.85rem;
    }
}

main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.my-info {
    background-color: #2d2d2d;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.my-info h2 {
    margin-bottom: 10px;
}

.my-party {
    background-color: #2d2d2d;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.my-party-card {
    background-color: #3d3d3d;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ff9800;
    position: relative;
    transition: all 0.3s;
}

.my-party-card.updating {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.my-party-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.my-party-title {
    font-size: 1.1rem;
    color: #ff9800;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.my-party-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.my-party-info .info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.info-group .form-group {
    flex: 0 1 auto;
    min-width: 150px;
    max-width: 250px;
}

.btn-save {
    padding: 10px 20px;
    background-color: #4CAF50;
    align-self: flex-end;
    margin-top: auto;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    white-space: nowrap;
    flex: 0 0 auto;
}

.btn-save:hover {
    background-color: #45a049;
}

/* 일반 버튼 스타일 */
.delete-btn {
    padding: 8px 16px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    font-weight: bold;
}

.delete-btn:hover {
    background-color: #da190b;
}

.btn-edit {
    padding: 8px 16px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    font-weight: bold;
}

.btn-edit:hover {
    background-color: #1976D2;
}

.create-party {
    background-color: #2d2d2d;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.party-list {
    background-color: #2d2d2d;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 100%;
}

h2 {
    color: #ff9800;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group {
    /* margin-bottom: 15px; */
}

label {
    display: block;
    margin-bottom: 3px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    background-color: #3d3d3d;
    border: 1px solid #4d4d4d;
    color: #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ff9800;
}

select[multiple] {
    height: 120px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #e0e0e0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
    cursor: pointer;
}

/* 실시간 구인현황 스타일 */
.recruitment-section {
    margin: 20px 0;
    background-color: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recruitment-header {
    background: #1a1a1a;
    padding: 15px 20px;
    border-bottom: 2px solid #ff9800;
    text-align: center;
}

.recruitment-header h3 {
    color: #ff9800;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.quick-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    border: 2px solid transparent;
}

.stat-badge:hover {
    transform: scale(1.05);
}

.stat-badge.active {
    background-color: #ff9800;
}

.stat-badge.inactive {
    background-color: #666;
}

.stat-badge.selected {
    border: 2px solid #ffeb3b;
    box-shadow: 0 0 8px rgba(255, 235, 59, 0.6);
    transform: scale(1.05);
}

.stat-badge span:first-child {
    color: #fff;
    font-weight: bold;
}

.stat-badge span:last-child {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.recruitment-content {
    padding: 15px;
    background-color: #1a1a1a;
    text-align: center;
}

/* 맵 이미지 스타일 */
.map-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 1;
    display: block;
    transition: opacity 0.3s ease;
}

.map-image.progressive-image {
    background-color: #2d2d2d;
    min-height: 300px;
}

.map-image.image-error {
    opacity: 0.7;
    background-color: #2d2d2d;
}

/* 텍스트 스타일 클래스 */
.text-gray {
    color: #808080;
}

.text-small {
    font-size: 0.85rem;
}

.mt-5 {
    margin-top: 5px;
}

.mb-15 {
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

.text-small {
    font-size: 0.85rem;
}

.text-smaller {
    font-size: 0.8rem;
}

.text-italic {
    font-style: italic;
}

.text-error {
    color: #ff0000;
}

.text-warning {
    color: #ff9800;
}

/* 메시지 스타일 */
.message-gray {
    color: #808080;
    text-align: center;
    padding: 20px;
}

.message-error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
}

.message-box {
    margin-top: 8px;
    padding: 8px;
    background-color: rgba(128, 128, 128, 0.1);
    border-radius: 4px;
    font-style: italic;
    color: #808080;
}

/* 레이아웃 유틸리티 */
.flex-center {
    display: flex;
    align-items: center;
}

.gap-8 {
    gap: 8px;
}

.gap-10 {
    gap: 10px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.p-20 {
    padding: 20px;
}

.p-5 {
    padding: 5px;
}

.w-full {
    width: 100%;
}

/* 구분선 */
.divider-top {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

/* 버튼 스타일 */
.btn-full {
    width: 100%;
}

.btn-small {
    padding: 5px 12px;
    font-size: 0.85rem;
}

.btn-tiny {
    padding: 2px 8px;
    font-size: 0.75rem;
}

.btn-orange {
    background-color: #ff9800;
}

/* 테이블 스타일 */
.table-full {
    width: 100%;
}

.table-cell-fixed {
    padding: 5px;
    width: 150px;
}

.clickable {
    cursor: pointer;
}

/* 폼 입력 스타일 */
.input-dark {
    width: 100%;
    padding: 5px;
    background-color: #3d3d3d;
    border: 1px solid #4d4d4d;
    color: #e0e0e0;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* 모달 크기 */
.modal-medium {
    max-width: 500px;
}

.modal-large {
    max-width: 600px;
}

/* 멤버 하이라이트 (동적) */
.member-leader {
    border-color: #FFD700 !important;
    background-color: rgba(255, 215, 0, 0.1) !important;
}

.member-current {
    border-color: #ff9800 !important;
}

/* 이미지 로딩 스피너 */
.image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 20px;
}

/* 이미지 토글 버튼 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.toggle-image-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.toggle-image-btn:hover {
    background: #383838;
    border-color: #ff9800;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #ff9800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 구인현황 섹션 애니메이션 */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 1000px;
    }
    to {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
}

.recruitment-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.checkbox-label span {
    font-size: 0.9rem;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #ff9800;
    color: #1a1a1a;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.world-filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.world-btn {
    padding: 8px 20px;
    background-color: #3d3d3d;
    color: #e0e0e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.world-btn:hover {
    background-color: #4d4d4d;
}

.world-btn.active {
    background-color: #ff9800;
    color: #1a1a1a;
}

.filter-section {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.filter-section label {
    margin-bottom: 0;
    white-space: nowrap;
    color: #b0b0b0;
}

.filter-section select {
    flex: 1;
}

/* 파티 테이블 스타일 */
.party-table {
    width: 100%;
    background-color: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 모바일 카드 레이아웃 */
.parties-mobile {
    display: none;
}

.party-card-mobile {
    background-color: #3d3d3d;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #4d4d4d;
}

.party-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.party-card-mobile .party-title {
    color: #ff9800;
    font-weight: bold;
    font-size: 0.95rem;
    flex: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.party-card-info {
    margin-bottom: 10px;
}

.party-card-info .info-line {
    font-size: 0.85rem;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.party-card-actions {
    display: flex;
    gap: 8px;
}

.party-card-mobile .join-btn,
.party-card-mobile .delete-btn,
.party-card-mobile .btn-view-members,
.party-card-mobile .btn-applications {
    flex: 1;
    padding: 6px 12px;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.party-card-mobile .join-btn {
    background-color: #4CAF50;
    color: white;
}

.party-card-mobile .join-btn:hover {
    background-color: #45a049;
}

.party-card-mobile .join-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.party-card-mobile .delete-btn {
    background-color: #f44336;
    color: white;
}

.party-card-mobile .btn-view-members {
    background-color: #9C27B0;
    color: white;
}

.party-card-mobile .btn-applications {
    background-color: #ff9800;
    color: white;
}

/* 시간 표시 스타일 */
.time-cell {
    color: #808080;
    font-size: 0.85rem;
    white-space: nowrap;
}

.time-badge {
    background-color: #2d2d2d;
    color: #808080;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.party-table table {
    width: 100%;
    border-collapse: collapse;
}

.party-table th {
    background-color: #252525;
    color: #ff9800;
    padding: 15px 10px;
    text-align: left;
    font-weight: bold;
    font-size: 0.95rem;
    border-bottom: 2px solid #ff9800;
}

.party-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #3d3d3d;
    font-size: 0.9rem;
    color: #e0e0e0;
    vertical-align: middle;
}

.party-table tr {
    transition: background-color 0.2s;
}

.party-table tr:hover {
    background-color: #3d3d3d;
}

.party-title-cell {
    font-weight: bold;
    color: #ff9800;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.members-count {
    background-color: #4d4d4d;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
}

.members-count.full {
    background-color: #f44336;
}

.members-count.available {
    background-color: #4CAF50;
}

.location-tag {
    background-color: #3d3d3d;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 3px;
}

.job-tag {
    background-color: #4d4d4d;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
    display: inline-block;
    color: #ff9800;
    margin-bottom: 3px;
}

.party-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

/* 테이블 내 버튼 스타일 */
.party-table .join-btn,
.party-table .delete-btn,
.party-table .btn-edit,
.party-table .btn-view-members,
.party-table .btn-applications {
    padding: 5px 10px;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.party-table .join-btn {
    background-color: #4CAF50;
    color: white;
}

.party-table .join-btn:hover {
    background-color: #45a049;
}

.party-table .join-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.party-table .delete-btn {
    background-color: #f44336;
    color: white;
}

.party-table .delete-btn:hover {
    background-color: #da190b;
}

.party-table .btn-edit {
    background-color: #2196F3;
    color: white;
}

.party-table .btn-edit:hover {
    background-color: #1976D2;
}

.party-table .btn-view-members {
    background-color: #9C27B0;
    color: white;
}

.party-table .btn-view-members:hover {
    background-color: #7B1FA2;
}

.party-table .btn-applications {
    background-color: #ff9800;
    color: white;
}

.party-table .btn-applications:hover {
    background-color: #e68900;
}

/* 파티장 온라인 상태 표시 */
.leader-status-icon {
    font-size: 0.8em;
    margin-left: 5px;
    vertical-align: middle;
    cursor: help;
}

.map-container {
    position: relative;
    display: inline-block;
}

.location-marker {
    position: absolute;
    background-color: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.location-marker:hover {
    background-color: rgba(255, 152, 0, 1);
    transform: scale(1.1);
}

.location-marker.empty {
    background-color: rgba(100, 100, 100, 0.7);
}

.location-marker.selected {
    border: 2px solid #ffeb3b;
    box-shadow: 0 0 8px rgba(255, 235, 59, 0.6);
    transform: scale(1.1);
}

/* 구인 현황 테이블 스타일 */
.recruitment-table-container {
    background-color: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 400px;
}

.recruitment-header {
    user-select: none;
    transition: opacity 0.2s;
}

.recruitment-header:hover {
    opacity: 0.8;
}

.recruitment-title-wrapper {
    text-align: center;
    margin-bottom: 5px;
}

.recruitment-title {
    margin: 0;
    display: inline-block;
}

.toggle-image-btn {
    margin-left: 10px;
}

.header-controls {
    display: block;
}

.header-controls.hidden {
    display: none;
}

.recruitment-content.hidden {
    display: none;
}

.quick-stats {
    min-height: 40px;
}

.loading-text {
    color: #808080;
    width: 100%;
    text-align: center;
}

/* 반응형 표시/숨김 클래스 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

/* 프로그레시브 로딩 애니메이션 */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.party-table tbody tr {
    animation: fadeInRow 0.3s ease-out;
}

.party-card-mobile {
    animation: fadeInRow 0.3s ease-out;
}

/* 로딩 중 스타일 */
.loading-row td,
.loading-card {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.recruitment-footer {
    padding: 15px 20px;
    background: #252525;
    border-top: 1px solid #383838;
    border-radius: 0 0 10px 10px;
    text-align: center;
    margin-top: 15px;
}

#recruitment-toggle {
    transition: transform 0.3s;
    display: inline-block;
}

/* 구인 현황 탭 스타일 */
.recruitment-view-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    justify-content: center;
}

.view-tab {
    padding: 8px 16px;
    background-color: #3d3d3d;
    color: #e0e0e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-tab:hover {
    background-color: #4d4d4d;
}

.view-tab.active {
    background-color: #ff9800;
    color: #1a1a1a;
    font-weight: bold;
}

.recruitment-content {
    margin-top: 10px;
}

.recruitment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.recruitment-table th {
    background-color: #252525;
    color: #ff9800;
    padding: 8px;
    text-align: left;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 2px solid #ff9800;
}

.recruitment-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #3d3d3d;
    font-size: 0.9rem;
    color: #e0e0e0;
    vertical-align: middle;
}

.recruitment-table tr:hover td {
    background-color: #3d3d3d;
}

.recruitment-table tbody tr {
    transition: background-color 0.2s;
}

.location-badge {
    background-color: #4d4d4d;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.count-badge {
    font-weight: bold;
    font-size: 0.95rem;
}

.count-badge.active {
    color: #4CAF50;
}

.status-recruiting {
    color: #4CAF50;
    font-weight: bold;
}

.status-full {
    color: #808080;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    /* 모달을 중앙에 배치 */
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #2d2d2d;
    padding: 0;
    border: 1px solid #444;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* 모달 콘텐츠 중앙 정렬 */
    position: relative;
    transform: translateY(-50px);
}

.modal-header {
    padding: 20px;
    background-color: #252525;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #ff9800;
    margin: 0;
}

.close {
    color: #808080;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ff9800;
}

#party-form {
    padding: 20px;
}

.party-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.party-list-header h2 {
    margin: 0;
}

.btn-create-party {
    padding: 10px 20px;
    background-color: #ff9800;
    color: #1a1a1a;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-create-party:hover {
    background-color: #e68900;
}

.btn-refresh {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh:hover {
    background-color: #45a049;
    transform: rotate(180deg);
}



.radio-label {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #4d4d4d;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-label:hover {
    border-color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
}

.radio-label input[type="radio"] {
    margin-right: 10px;
}

.pending-alert {
    background-color: #ff9800;
    color: #1a1a1a;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.btn-applications {
    width: 100%;
    padding: 8px;
    background-color: #ff9800;
    color: #1a1a1a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
}

.btn-applications:hover {
    background-color: #e68900;
}

.application-card {
    background-color: #3d3d3d;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.application-info {
    flex: 1;
}

.application-actions {
    display: flex;
    gap: 10px;
}

.btn-accept {
    padding: 6px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-accept:hover {
    background-color: #45a049;
}

.btn-reject {
    padding: 6px 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

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

/* 알림 스타일 */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2d2d2d;
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 20px;
    max-width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.notification-title {
    color: #ff9800;
    font-size: 1.1rem;
    font-weight: bold;
}

.notification-close {
    color: #808080;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.notification-close:hover {
    color: #ff9800;
}

.notification-content {
    color: #e0e0e0;
    margin-bottom: 15px;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.notification-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    cursor: pointer;
    z-index: 1999;
}

/* 파티원 목록 스타일 */
.party-members-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #4d4d4d;
}

.members-title {
    color: #ff9800;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.member-item {
    background-color: #2d2d2d;
    padding: 6px 10px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border: 1px solid #4d4d4d;
}

.member-info {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.member-position {
    background-color: #ff9800;
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.member-name {
    font-weight: bold;
    color: #e0e0e0;
}

.member-level {
    color: #808080;
    font-size: 0.9rem;
}

.member-job {
    color: #b0b0b0;
}

.btn-kick {
    padding: 4px 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-kick:hover {
    background-color: #da190b;
}

.btn-view-members {
    padding: 6px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
}

.btn-view-members:hover {
    background-color: #45a049;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .info-group {
        gap: 8px;
    }
    
    .info-group .form-group {
        min-width: 140px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .my-info {
        padding: 15px;
    }
    
    .info-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .info-group .form-group {
        width: 100%;
        min-width: unset;
    }
    
    .btn-save {
        width: 100%;
        margin-top: 10px;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    /* 파티 테이블 모바일 */
    .party-table {
        overflow-x: auto;
    }
    
    .party-table table {
        min-width: 600px;
    }
    
    .party-table th,
    .party-table td {
        padding: 8px 5px;
        font-size: 0.85rem;
    }
    
    .party-actions {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .party-table .join-btn,
    .party-table .delete-btn,
    .party-table .btn-edit,
    .party-table .btn-view-members,
    .party-table .btn-applications {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .location-tag {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
    
    .members-count {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    header {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .my-info {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    input[type="text"],
    input[type="number"],
    select {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .btn-save {
        padding: 10px;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .party-list-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .btn-create-party {
        width: 100%;
    }
    
    /* 파티 테이블 모바일 추가 조정 */
    .party-table {
        font-size: 0.8rem;
    }
    
    .party-table th:nth-child(3),
    .party-table td:nth-child(3),
    .party-table th:nth-child(6),
    .party-table td:nth-child(6) {
        display: none; /* 맵, 시간 컬럼 숨김 */
    }
    
    .world-filter-buttons {
        gap: 5px;
    }
    
    .world-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filter-row {
        flex: 1;
        min-width: auto;
    }
    
    .filter-section select {
        width: 100%;
    }
}

/* 600px 이하에서 테이블 숨기고 카드 표시 */
@media (max-width: 600px) {
    .party-table {
        display: none;
    }
    
    .parties-mobile {
        display: block;
    }
    
    .map-container img {
        max-width: 100%;
        height: auto;
    }
    
    .recruitment-table-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .recruitment-table th,
    .recruitment-table td {
        padding: 6px;
        font-size: 0.85rem;
    }
    
    .location-badge {
        padding: 3px 8px;
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .view-tab {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .view-tab span {
        font-size: 1rem;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    
    .toggle-image-btn {
        width: 100%;
        text-align: center;
    }
}

/* 로딩 오버레이 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    min-height: 200px;
}

.loading-overlay .party-table {
    margin: 0;
    width: 100%;
}

.loading-overlay p {
    background: #2d2d2d;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 768px 이하에서 시간 컬럼 숨김 */
@media (max-width: 768px) and (min-width: 601px) {
    .party-table th:nth-child(6),
    .party-table td:nth-child(6) {
        display: none;
    }
}

/* 인쇄용 스타일 */
@media print {
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .container,
    header,
    .my-info,
    .my-party,
    .party-list,
    .party-table,
    .modal-content,
    .my-party-card {
        background-color: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    h1, h2, h3 {
        color: black !important;
    }
    
    .party-title-cell {
        color: black !important;
        font-weight: bold !important;
    }
    
    .members-count {
        background-color: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
    
    .location-tag,
    .job-tag {
        background-color: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
    
    input, select, textarea {
        background-color: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
    
    .btn-primary,
    .btn-save,
    .delete-btn,
    .btn-edit,
    .join-btn,
    .btn-applications,
    .btn-view-members,
    .btn-create-party {
        background-color: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
    
    .party-table th {
        background-color: #f0f0f0 !important;
        color: black !important;
        border-bottom: 2px solid black !important;
    }
    
    .party-table td {
        color: black !important;
        border-bottom: 1px solid #ccc !important;
    }
    
    label {
        color: black !important;
    }
    
    .member-item {
        background-color: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
}

/* 로딩 상태 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #333;
    border-radius: 50%;
    border-top-color: #ff9800;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

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

/* 맵 선택 힌트 */
.map-select-hint {
    color: #999;
    font-size: 13px;
    padding: 5px 0;
    margin: 5px 0;
}