#calendar {
    margin: 1rem 0;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
}

.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    margin-bottom: 1rem;
}
.filter-bar .form-group {
    margin-bottom: 0;
}

.controls .action-btn {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
}

.controls {
    text-align: right;
    margin-top: 1rem;
}
.today-section {
    margin-top: 1.5rem;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 8px;
    padding: 0.75rem;
}
.today-section h3 {
    font-family: 'mabinogi_classic';
    margin-top: 0;
}
.today-section ul {
    list-style: none;
    padding: 0;
}
.today-section li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--section-border);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.server-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.4rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.filter-buttons::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.filter-button {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #e5e7eb;
    color: #2d3436;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.85rem;
    text-align: center;
}

.filter-button[data-selected="true"] {
    background: #0984e3;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-button[data-selected="false"] {
    background: #e5e7eb;
    color: #2d3436;
}

/* Apple Calendar inspired styles */
.apple-calendar {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, sans-serif;
}
.apple-calendar .fc-toolbar-title {
    font-size: 1.4rem;
    font-weight: 600;
}
.apple-calendar .fc-button {
    background: var(--button-bg);
    border: none;
    color: var(--button-text);
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-family: 'mabinogi_classic';
}
.apple-calendar .fc-button:hover {
    background: var(--button-hover-bg);
}
.apple-calendar .fc-button:disabled {
    background: #ccc;
    color: #fff;
}
.apple-calendar .fc-daygrid-day.fc-day-today {
    background-color: var(--notification-bg);
}
.apple-calendar .fc-daygrid-event {
    border: none;
    color: var(--text-color);
    padding: 0 2px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Pretendard-Regular';
}
.apple-calendar .fc-scrollgrid {
    border-color: #e2e2e2;
    border-radius: 6px;
}
.apple-calendar td,
.apple-calendar th {
    border-color: #e2e2e2;
}

@media (max-width: 600px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        gap: 0.3rem;
    }

    .filter-button {
        flex: 0 0 auto;
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    #register-link.styled-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        text-align: center;
    }

    .apple-calendar .fc-toolbar {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .apple-calendar .fc-toolbar-chunk {
        margin-bottom: 0.25rem;
    }

    .apple-calendar .fc-button {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}
.apple-calendar .fc-col-header-cell {
    padding: 0.5rem 0;
    font-family: 'mabinogi_classic';
    text-align: right;
}
.apple-calendar .fc-daygrid-day-number {
    font-family: 'mabinogi_classic';
    text-align: right;
    display: block;
    padding-right: 0.25rem;
    opacity: 0.7;
    font-size: small;
}

/* weekend colors */
.apple-calendar .fc-day-sun .fc-daygrid-day-number {
    color: #e74c3c;
}
.apple-calendar .fc-day-sat .fc-daygrid-day-number {
    color: #3498db;
}

/* button tweaks */
.apple-calendar .fc-prev-button i,
.apple-calendar .fc-next-button i {
    pointer-events: none;
}

/* Modal styles (borrowed from rune.css) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    background: var(--modal-content-bg);
    color: var(--modal-content-text);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    padding: 1rem;
}

.rune-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--section-border);
}

.rune-modal-header h2 {
    margin: 0;
    font-family: 'mabinogi_classic';
    font-size: 1.2rem;
    flex-grow: 1;
    text-align: center;
    color: var(--text-color);
}

.rune-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    line-height: 1;
}

.rune-modal-close:hover {
    color: var(--text-color);
}

.rune-info-group {
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.rune-info {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    display: flex;
  	justify-content: space-between;
  	align-items: center;
}

.rune-info .label {
    font-family: 'mabinogi_classic';
    font-weight: bold;
    width: 100px;
    flex-shrink: 0;
    color: var(--text-color);
    flex: 0 0 auto;
  	margin-right: 0.5rem;
}

.rune-info .value {
    flex: 1;
    color: var(--text-color);
    white-space: pre-line;
    flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (max-width: 600px) {
    .rune-info {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    /* 추가: flex-item의 가로 제약을 위해 min-width와 width 설정 */
    .rune-info .value {
        /* flex 아이템이 내용에 맞춰 늘어나지 않도록 */
        min-width: 0;
        /* 부모 너비에 맞춰 제한 */
        width: 100%;
        /* 기존 ellipsis 속성은 그대로 유지됩니다 */
    }
}
.value.clickable {
  cursor: pointer;
}
.band-create-form {
    max-width: 500px;
    margin: 0 auto;
}

.radio-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.band-create-form textarea,
.band-create-form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    resize: vertical;
}

/* Dark mode adjustments */
body.dark-mode .modal {
    background: var(--modal-bg);
}

body.dark-mode .modal-content {
    background: var(--modal-content-bg);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

body.dark-mode .rune-modal-header {
    border-bottom: 1px solid #3a3a3a;
}

body.dark-mode .rune-modal-header h2,
body.dark-mode .rune-modal-close,
body.dark-mode .rune-info .label,
body.dark-mode .rune-info .value {
    color: var(--modal-content-text);
}

body.dark-mode .rune-modal-close:hover {
    color: #81d4fa;
}

body.dark-mode .rune-info-group {
    background: #252525;
    border-color: #3a3a3a;
}
