* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
    background-color: #f9fafb;
    color: #101828;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 0;
    margin: 0;
    min-height: calc(100vh - 120.881px);
}



/* Sidebar */
.offline-section-sidebar {
    background-color: white;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 23.991px;
    position: sticky;
    top: 71px;
    height: fit-content;
    z-index: 9;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 400;
    color: #101828;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7.997px;
}

.sidebar-btn {
    background-color: transparent;
    border: none;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #364153;
    text-align: left;
    transition: all 0.3s ease;
    min-height: 47.969px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-btn:hover {
    background-color: rgba(255, 122, 0, 0.08);
    color: #ff7a00;
}

.sidebar-btn.active {
    background-color: #ff7a00;
    color: white;
}

.sidebar-btn svg {
    width: 15.994px;
    height: 15.994px;
    flex-shrink: 0;
}*/

/* Content Area */
.main-content>.offline-content-area {
    padding: 32px 24px 24px 24px;
    overflow-y: auto;
}

.offline-content-area {
    padding: 32px 24px 24px 24px;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 31.989px;
}

.page-title {
    font-size: 24px;
    font-weight: 400;
    color: #101828;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #4a5565;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-template {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0 12px;
    height: 35.994px;
    cursor: pointer;
    font-size: 14px;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-template:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.btn-template svg {
    width: 15.994px;
    height: 15.994px;
}

/* Form Card */
.form-card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 32.898px;
    margin-bottom: 23.991px;
}

.card-title {
    font-size: 16px;
    font-weight: 400;
    color: #101828;
    margin-bottom: 23.991px;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Fields */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7.997px;
}

.form-label {
    font-size: 14px;
    font-weight: 400;
    color: #364153;
}

.form-label.discount {
    display: flex;
    gap: 5px;
    align-items: center;
}

.required {
    color: #fb2c36;
    margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
    background-color: #f3f3f5;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #717182;
    height: 35.994px;
    transition: all 0.3s ease;
}

.form-textarea {
    height: 63.991px;
    padding: 8px 12px;
    resize: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    background-color: white;
    border-color: #ff7a00;
}

.form-input::placeholder,
.form-select,
.form-textarea::placeholder {
    color: #717182;
}

.form-hint {
    font-size: 14px;
    color: #6a7282;
    margin-top: 4px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #d1d5dc;
    border-radius: 10px;
    padding: 48px 24px;
    text-align: center;
    background-color: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #ff7a00;
    background-color: rgba(255, 122, 0, 0.02);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    color: #4a5565;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 14px;
    color: #6a7282;
}

.upload-input {
    display: none;
}
.document-preview {
    display: none;
}

.document-preview {
    position: relative;
    width: 100%;
    margin: 0 auto 16px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f9fafb;
}

.filename-preview {
    margin-bottom: 15px;
    margin-top: 15px;
}

/* discount section */
.discount-part {
    display: flex; 
    flex-direction: column; 
    gap: 7.997px; 
    opacity: 0.4; 
    pointer-events: none; 
    transition: opacity 0.3s ease;
}

.discount-part.active {
    display: flex; 
    flex-direction: column; 
    gap: 7.997px; 
    opacity: 1; 
    pointer-events: auto; 
    transition: opacity 0.3s ease;
}

/* Radio/Checkbox */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #ff7a00;
    cursor: pointer;
}

.radio-label {
    font-size: 16px;
    color: #364153;
    cursor: pointer;
    flex: 1;
}

.radio-input-group {
    display: none;
}

.radio-input-group.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    margin-left: 24px;
}

.radio-input-group .form-input {
    height: 35.994px;
}

/* Divider */
.divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 24px 0;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Price Section */
.price-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input-group .form-input {
    flex: 1;
}

.price-unit {
    color: #6a7282;
    font-size: 14px;
    min-width: 80px;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 400;
    height: 35.994px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-cancel {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0a0a0a;
}

.btn-cancel:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.btn-primary {
    background-color: #ff7a00;
    color: white;
}

.btn-primary:hover {
    background-color: #e67e00;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6a7282;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
    color: #6a7282;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 10px;
}

.toggle-input {
    appearance: none;
    -webkit-appearance: none;
    width: 32px;
    height: 18px;
    background-color: #ccc;
    border-radius: 9px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.toggle-input:checked {
    background-color: #ff7a00;
}

.toggle-input:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    top: 1px;
    left: 1px;
    transition: left 0.3s;
}

.toggle-input:checked:before {
    left: 15px;
}

/* Onboarding Banner */
.onboarding-banner {
    background: linear-gradient(172.79deg, rgb(255, 233, 214) 0%, rgb(255, 244, 230) 50%, rgb(255, 239, 213) 100%);
    border-radius: 14px;
    padding: 20px 23.991px;
    margin-bottom: 32px;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px 0px rgba(0,0,0,0.1);
}

.onboarding-content {
    flex: 1;
}

.onboarding-title {
    font-size: 16px;
    font-weight: 400;
    color: #1e2939;
    margin-bottom: 4px;
}

.onboarding-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #4a5565;
    margin-bottom: 12px;
}

.progress-bar-container {
    background-color: #ffe9d6;
    border-radius: 30504000px;
    height: 8px;
    margin-bottom: 4px;
    overflow: hidden;
    width: 100%;
}

.progress-bar {
    background-color: #ff7a00;
    height: 100%;
    width: 40%;
    border-radius: 30504000px;
}

.progress-text {
    font-size: 12px;
    color: #4a5565;
}

.onboarding-btn {
    background-color: #ff7a00;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    height: 52px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.onboarding-btn:hover {
    background-color: #e67e00;
}

/* Thumbnail Preview */
.thumbnail-preview-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 16px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f9fafb;
}

.thumbnail-preview-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 800/450;
    object-fit: cover;
}

.thumbnail-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #101828;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail-remove-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Template Modal */
.template-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.template-modal-overlay.active {
    display: flex;
}

.template-modal-card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 23.991px;
    width: 90%;
    max-width: 672px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.template-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 23.991px;
}

.template-modal-title {
    font-size: 20px;
    font-weight: 400;
    color: #101828;
    margin: 0;
}

.template-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #101828;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.template-modal-close:hover {
    color: #6a7282;
}

.template-modal-description {
    font-size: 16px;
    font-weight: 400;
    color: #4a5565;
    line-height: 24px;
    margin-bottom: 23.991px;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 11.989px;
}

.template-item {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 16.903px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.template-item:hover {
    border-color: #ff7a00;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.1);
}

.template-info {
    flex: 1;
}

.template-title {
    font-size: 16px;
    font-weight: 400;
    color: #101828;
    margin: 0 0 3.991px 0;
}

.template-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #4a5565;
    margin: 0 0 3.991px 0;
}

.template-date {
    font-size: 12px;
    font-weight: 400;
    color: #6a7282;
    margin: 0;
}

.template-actions {
    display: flex;
    gap: 7.997px;
    margin-left: 16px;
}

.template-btn {
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    height: 31.989px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.template-btn-load {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0a0a0a;
}

.template-btn-load:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.template-btn-copy {
    background-color: #ff7a00;
    color: white;
}

.template-btn-copy:hover {
    background-color: #e67e00;
}

.template-btn svg {
    width: 15.994px;
    height: 15.994px;
    flex-shrink: 0;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Space Accordion */
.space-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.space-accordion-item {
    background-color: white;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    overflow: hidden;
}

.space-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.space-header:hover {
    background-color: #f9fafb;
}

.space-header-info {
    flex: 1;
}

.space-name {
    margin: 0;
    color: #101828;
    font-size: 16px;
    font-weight: 600;
}

.space-details {
    margin: 8px 0 0 0;
    color: #6a7282;
    font-size: 13px;
}

.toggle-icon {
    font-size: 12px;
    color: #6a7282;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.space-accordion-item.expanded .toggle-icon {
    transform: rotate(180deg);
}

.space-content {
    display: none;
    padding: 20px;
    border-top: 1px solid #e0e4e8;
}

.space-accordion-item.expanded .space-content {
    display: block;
}

/* Space Info Modal */
.space-info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.space-info-modal-overlay.active {
    display: flex;
}

.space-info-modal {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.space-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
}

.space-info-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #101828;
}

.space-info-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6a7282;
}

.space-info-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.space-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.space-title-section h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #101828;
}

.space-title-section p {
    margin: 0;
    font-size: 14px;
    color: #4a5565;
}

.space-image {
    width: 100%;
    height: 240px;
    border-radius: 10px;
    object-fit: cover;
    background-color: #f3f4f6;
}

.space-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.space-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #101828;
    margin: 0;
}

.space-section-title::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.location-map {
    background-color: #f3f4f6;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.location-map-icon {
    font-size: 48px;
    opacity: 0.5;
}

.location-map-text {
    margin: 0;
    font-size: 14px;
    color: #4a5565;
}

.location-map-subtext {
    margin: 0;
    font-size: 12px;
    color: #6a7282;
}

.facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.facility-item {
    background-color: #f9fafb;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.facility-item-name {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #101828;
}

.facility-item-detail {
    margin: 0;
    font-size: 12px;
    color: #4a5565;
}

.capacity-section {
    background-color: #6c4dfd;
    border-radius: 10px;
    padding: 16px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.capacity-number {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.capacity-detail {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.space-notice {
    background-color: #eff6ff;
    border: 1px solid #bedbff;
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    color: #1c398e;
    margin: 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.space-notice::before {
    content: 'ℹ️';
    flex-shrink: 0;
    font-size: 16px;
}

.space-info-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background-color: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.space-info-confirm-btn {
    width: 100%;
    background-color: #6c4dfd;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.space-info-confirm-btn:hover {
    background-color: #5840d6;
}

/* Management Tab - Offline Class Cards */
.search-filter-area {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    height: 35.994px;
    border: 1px solid #d1d5dc;
    border-radius: 8px;
    padding: 0 40px 0 12px;
    background-color: #f3f3f5;
    font-size: 14px;
    color: #717182;
}

.search-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6a7282;
}

.filter-dropdown {
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    padding: 0 12px;
    height: 40.54px;
    background-color: white;
    cursor: pointer;
    font-size: 14px;
    color: #4a5565;
    min-width: 150px;
}

.offline-class-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 24px;
}

.offline-class-card {
    background-color: white;
    border: 0.909px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.offline-class-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #e5e7eb;
}

.class-thumbnail {
    width: 100%;
    height: 191.989px;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a7282;
    font-size: 48px;
}

.class-thumbnail>img {
    height: 100%;
    width: 100%;
}

.class-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.class-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.class-title {
    font-size: 18px;
    font-weight: 400;
    color: #101828;
    margin: 0;
}

.class-menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6a7282;
}

.location-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.location-badge {
    background-color: #ffedd4;
    border-radius: 30504000px;
    padding: 6px 12px;
    font-size: 12px;
    color: #ff7a00;
    display: flex;
    align-items: center;
    gap: 4px;
}

.location-badge::before {
    content: '📍';
    font-size: 11px;
}

.class-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 16px 0;
    border-top: 0.909px solid #e5e7eb;
    border-bottom: 0.909px solid #e5e7eb;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #6a7282;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.star-icon {
    font-size: 16px;
}

.class-price-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.original-price {
    font-size: 14px;
    color: #6a7282;
    text-decoration: line-through;
    margin: 0;
}

.discount-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff7a00;
    margin: 0;
}

.class-actions {
    display: flex;
    gap: 8px;
}

.class-action-btn {
    flex: 1;
    border: 0.909px solid rgba(0,0,0,0.1);
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    color: #0a0a0a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.class-action-btn:hover {
    background-color: rgba(0,0,0,0.02);
}

.class-action-btn-small {
    flex: 0 0 auto;
    width: 35.994px;
    padding: 0;
}

.save-template-btn {
    width: 100%;
    background-color: white;
    color: #ff7a00;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.save-template-btn:hover {
    background-color: #fff7ed;
}

/* Preview Tab Styles */
.preview-tab-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.preview-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.preview-header-text {
    flex: 1;
}

.preview-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.preview-page-subtitle {
    font-size: 16px;
    color: #4a5565;
    margin: 0;
    line-height: 1.5;
}

.view-public-page-btn {
    background-color: white;
    border: 0.909px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: #0a0a0a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-public-page-btn:hover {
    background-color: rgba(0,0,0,0.02);
}

.preview-content-grid {
    display: grid;
    grid-template-columns: 1fr 70%;
    gap: 32px;
    align-items: flex-start;
}

.preview-class-list-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    margin: 0;
    padding: 0;
}

.preview-class-card {
    background-color: white;
    border: 0.909px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    gap: 0;
    transition: all 0.3s ease;
}

.preview-class-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.preview-class-thumbnail {
    width: 192px;
    min-width: 192px;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a7282;
    font-size: 14px;
}

.preview-class-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-class-title {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.preview-class-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.class-tag {
    background-color: #ffedd4;
    color: #ff7a00;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.preview-class-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    gap: 16px;
}

.preview-price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-old-price {
    font-size: 14px;
    color: #6a7282;
    text-decoration: line-through;
    margin: 0;
    font-weight: 400;
}

.preview-new-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff7a00;
    margin: 0;
}

.preview-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.preview-rating-text {
    font-size: 14px;
    color: #4a5565;
}

/* Instructor Profile Card */
.instructor-profile-card {
    background-color: white;
    border: 0.909px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.instructor-profile-image {
    width: 128px;
    height: 128px;
    background-color: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.instructor-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-name {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    margin: 0;
    text-align: center;
}

.instructor-description {
    font-size: 14px;
    color: #4a5565;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.instructor-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.instructor-tag {
    background-color: #ffedd4;
    color: #ff7a00;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.instructor-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    margin: 8px 0;
}

.instructor-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instructor-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
}

.instructor-stat:last-child {
    padding-bottom: 0;
}

.stat-label {
    font-size: 14px;
    color: #4a5565;
    text-align: center;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #101828;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Calendar Tab Styles */
.calendar-tab-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.calendar-header-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #101828;
    margin: 0;
    line-height: 1.2;
}

.calendar-page-subtitle {
    font-size: 16px;
    color: #4a5565;
    margin: 0;
    line-height: 1.5;
}

.calendar-info-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background-color: #eff6ff;
    border: 0.909px solid #bedbff;
    border-radius: 14px;
    padding: 16px;
}

.banner-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.banner-text {
    font-size: 14px;
    color: #1c398e;
    margin: 0;
    line-height: 1.5;
}

.calendar-card {
    background-color: white;
    border: 0.909px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.calendar-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.month-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.month-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.month-btn:hover {
    background-color: #f3f4f6;
}

.month-title {
    font-size: 20px;
    font-weight: 700;
    color: #101828;
    margin: 0;
    min-width: 103px;
    text-align: center;
}

.calendar-filters {
    display: flex;
    gap: 8px;
}

.calendar-filter-select {
    border: 0.909px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    color: #4a5565;
    min-width: 122px;
}

.calendar-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.calendar-left-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-weekday-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.weekday-header {
    text-align: center;
    font-size: 14px;
    color: #4a5565;
    font-weight: 500;
    padding: 8px 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-dates-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-date {
    background-color: white;
    border: 0.909px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-date.has-event {
    background-color: #fff7ed;
    border-color: #ffb86a;
}

.calendar-date-number {
    font-size: 16px;
    font-weight: 400;
    color: #364153;
}

.calendar-event {
    background-color: #ff7a00;
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.calendar-right-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 0.909px solid #e5e7eb;
    padding-left: 24px;
}

.schedule-date-title {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    margin: 0;
    padding: 0;
}

.schedule-card {
    background-color: white;
    border: 0.909px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.schedule-time {
    font-size: 14px;
    font-weight: 700;
    color: #ff7a00;
}

.schedule-status {
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    background-color: #dcfce7;
    color: #008236;
}

.schedule-title {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    margin: 0;
    padding: 0;
}

.schedule-location,
.schedule-capacity {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
    color: #4a5565;
}

.schedule-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.schedule-location-text,
.schedule-capacity-text {
    margin: 0;
    padding: 0;
}

.schedule-detail-btn {
    background-color: white;
    border: 0.909px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    color: #0a0a0a;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.schedule-detail-btn:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: auto;
    }

    .offline-section-sidebar {
        top: 65px;
        overflow-x: auto;
        width: 100%;
        padding: 16px 12px;
    }
    
    .sidebar-nav {
        flex-direction: row;
    }

    .sidebar-btn {
        height: 40px;
        font-size: 12px;
        padding: 0 8px;
        gap: 8px;
        white-space: nowrap;
    }

    .sidebar-btn svg {
        width: 16px;
        height: 16px;
    }

    .navigation {
        padding: 0 20px;
    }

    .nav-buttons {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .offline-content-area {
        padding: 20px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 768px) {

    .offline-section-sidebar {
        padding: 12px 8px;
    }

    .sidebar-btn {
        height: 36px;
        font-size: 11px;
        padding: 0 6px;
        gap: 6px;
        border-radius: 6px;
    }

    .sidebar-btn svg {
        width: 14px;
        height: 14px;
    }

    .navigation {
        height: auto;
        padding: 12px 16px;
    }

    .logo {
        margin-right: 20px;
        font-size: 20px;
    }

    .offline-content-area {
        padding: 16px;
    }

    .form-card {
        padding: 20px;
    }

    .card-title {
        font-size: 14px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .button-group {
        flex-wrap: wrap;
    }

    .btn {
        flex: 1;
        min-width: 100px;
    }

    .onboarding-banner {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .onboarding-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .template-modal-card {
        width: 95%;
        padding: 16px;
    }

    .template-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .template-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }

    .template-btn {
        flex: 1;
    }
    
    .preview-content-grid {
        grid-template-columns: auto;
    }
    
    .preview-header-section {
        flex-direction: column;
    }
    
    .calendar-grid-container {
        grid-template-columns: auto;
    }
    
    .calendar-month-nav {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    .offline-section-sidebar {
        padding: 10px 6px;
    }

    .sidebar-btn {
        height: 32px;
        font-size: 10px;
        padding: 0 4px;
        gap: 4px;
        border-radius: 4px;
    }

    .sidebar-btn svg {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

    .navigation {
        padding: 10px 12px;
    }

    .logo {
        font-size: 18px;
        margin-right: 12px;
    }

    .nav-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .form-card {
        padding: 16px;
        border-radius: 10px;
    }

    .card-title {
        font-size: 13px;
    }

    .form-label {
        font-size: 12px;
    }

    .form-input,
    .form-textarea {
        font-size: 13px;
        border-radius: 6px;
    }

    .upload-area {
        padding: 32px 12px;
        border-radius: 8px;
    }

    .upload-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .upload-text {
        font-size: 14px;
    }

    .upload-subtext {
        font-size: 12px;
    }

    .button-group {
        margin-top: 16px;
        padding-top: 12px;
        gap: 8px;
    }
    
    .offline-class-list {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
        height: 32px;
        flex: 1;
    }

    .page-title {
        font-size: 18px;
    }

    .page-subtitle {
        font-size: 12px;
    }

    .header-actions {
        margin-bottom: 12px;
    }

    .btn-template {
        font-size: 12px;
        height: 32px;
        padding: 0 8px;
    }

    /* Space Accordion Mobile Styles */
    .space-header {
        padding: 12px 16px;
    }

    .space-name {
        font-size: 14px;
    }

    .space-details {
        font-size: 12px;
    }
    
    .preview-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
    
    .preview-class-footer {
        flex-direction: column;
    }
}

/* Region Time Modal */
.region-time-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.region-time-modal-overlay.active {
    display: flex;
}

.region-time-modal-container {
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-time-modal-card {
    background-color: white;
    border-radius: 14px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    max-height: 90vh;
}

.region-time-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.region-time-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6a7282;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.region-time-modal-close:hover {
    color: #101828;
}

.region-time-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.region-time-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-time-label {
    font-size: 14px;
    font-weight: 500;
    color: #364153;
    display: flex;
    align-items: center;
    gap: 4px;
}

.region-time-required {
    color: #fb2c36;
    font-weight: 600;
}

.region-time-input {
    padding: 12px 16px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
    color: #101828;
    background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.region-time-input:focus {
    outline: none;
    border-color: #6c4dfd;
    box-shadow: 0 0 0 3px rgba(108, 77, 253, 0.1);
}

.region-time-select {
    cursor: pointer;
    appearance: none;
    padding-right: 36px;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27%23364153%27 d=%27M4.5 6L8 10l3.5-4%27/%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.region-time-textarea {
    resize: vertical;
    min-height: 70px;
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
    color: #717182;
}

.region-time-day-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.region-time-day-btn {
    flex: 1;
    min-width: 50px;
    padding: 12px 16px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    background-color: white;
    color: #364153;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.region-time-day-btn:hover {
    background-color: #f9fafb;
    border-color: #6c4dfd;
}

.region-time-day-btn.active {
    background-color: #6c4dfd;
    color: white;
    border-color: #6c4dfd;
}

.region-time-time-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.region-time-time-selector .region-time-select {
    flex: 1;
}

.region-time-add-btn {
    padding: 10px 16px;
    background-color: white;
    border: 1px solid #d1d5dc;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}

.region-time-add-btn:hover {
    background-color: #f9fafb;
    border-color: #6c4dfd;
}

.region-time-modal-footer {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.region-time-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
}

.region-time-btn-cancel {
    background-color: white;
    color: #0a0a0a;
    border: 1px solid #d1d5dc;
}

.region-time-btn-cancel:hover {
    background-color: #f9fafb;
    border-color: #6c4dfd;
}

.region-time-btn-primary {
    background-color: #ff7a00;
    color: white;
}

.region-time-btn-primary:hover {
    background-color: #e56a00;
}

.region-time-btn-primary:active {
    background-color: #d05a00;
}

/* Mobile responsive for region-time modal */
@media (max-width: 768px) {
    .region-time-modal-card {
        padding: 20px;
    }

    .region-time-day-selector {
        gap: 6px;
    }

    .region-time-day-btn {
        min-width: 40px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .region-time-time-selector {
        flex-direction: column;
    }

    .region-time-modal-footer {
        flex-direction: column;
    }
}

/* QnA Form Modal */
.qna-form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.qna-form-modal-overlay.active {
    display: flex;
}

.qna-form-modal-container {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qna-form-modal-card {
    background-color: white;
    border-radius: 14px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    max-height: 90vh;
}

.qna-form-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.qna-form-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6a7282;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.qna-form-modal-close:hover {
    color: #101828;
}

.qna-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qna-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qna-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #364153;
    display: flex;
    align-items: center;
    gap: 4px;
}

.qna-form-required {
    color: #fb2c36;
    font-weight: 600;
}

.qna-form-textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
    color: #101828;
    background-color: white;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.qna-form-textarea:focus {
    outline: none;
    border-color: #6c4dfd;
    box-shadow: 0 0 0 3px rgba(108, 77, 253, 0.1);
}

.qna-form-textarea::placeholder {
    color: #717182;
}

.qna-form-modal-footer {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.qna-form-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
}

.qna-form-btn-cancel {
    background-color: white;
    color: #0a0a0a;
    border: 1px solid #d1d5dc;
}

.qna-form-btn-cancel:hover {
    background-color: #f9fafb;
    border-color: #6c4dfd;
}

.qna-form-btn-primary {
    background-color: #ff7a00;
    color: white;
}

.qna-form-btn-primary:hover {
    background-color: #e56a00;
}

.qna-form-btn-primary:active {
    background-color: #d05a00;
}

/* Mobile responsive for QnA form modal */
@media (max-width: 768px) {
    .qna-form-modal-card {
        padding: 20px;
    }

    .qna-form-textarea {
        min-height: 120px;
    }

    .qna-form-modal-footer {
        flex-direction: column;
    }
}