* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
    background-color: #f9fafb;
    color: #101828;
}

.main-content {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 0;
    margin: 0;
    min-height: calc(100vh - 120.881px);
}

.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: 120.881px;
    height: fit-content;
    z-index: 9;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #101828;
    padding: 0 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7.997px;
}

.sidebar-btn {
    background-color: transparent;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    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;
    text-decoration: none;
}

.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: 20px;
    height: 20px;
    flex-shrink: 0;
}

.content-area {
    padding: 32px 32px 24px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 24px;
}

.page-header-text {
    flex: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 400;
    color: #101828;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.page-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #4a5565;
    margin: 0;
    line-height: 1.5;
}

.placeholder-content {
    background-color: white;
    border: 0.909px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 64px 32px;
    text-align: center;
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    background-color: #f3f3f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    opacity: 0.5;
}

.placeholder-title {
    font-size: 18px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 8px;
}

.placeholder-text {
    font-size: 14px;
    color: #6a7282;
    line-height: 1.6;
}

.btn-primary {
    background-color: #ff7a00;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #e67e00;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: auto;
    }

    .content-area {
        padding: 20px 24px;
    }
    
    .sidebar {
        top: 73px;
        overflow-x: auto;
        width: 100%;
        padding: 16px 12px;
    }
    
    .sidebar-title {
        padding: 0 8px;
        font-size: 14px;
    }
    
    .sidebar-nav {
        flex-direction: row;
    }

    .sidebar-btn {
        height: 40px;
        font-size: 12px;
        padding: 0 8px;
        gap: 8px;
        white-space: nowrap;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 16px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .placeholder-content {
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .content-area {
        padding: 12px;
    }

    .page-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .page-title {
        font-size: 18px;
    }

    .page-subtitle {
        font-size: 12px;
    }

    .placeholder-content {
        padding: 32px 16px;
    }
}

/* 기존의 강의 업로드 스타일 */
/* Header Section */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 7.997px;
}

.header-title {
    font-size: 20px;
    font-weight: normal;
    line-height: 30px;
    color: #0a0a0a;
}

.header-subtitle {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #4a5565;
}

.header-buttons {
    display: flex;
    gap: 11.989px;
    align-items: center;
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:disabled {
    background-color: #d1d5dc !important;
    color: #99a1af !important;
    cursor: not-allowed;
    opacity: 1;
}

.btn:disabled:hover {
    opacity: 1;
}

.btn-gray {
    background-color: #f3f4f6;
    color: #364153;
}

.btn-gray:hover {
    background-color: #e5e7eb;
}

.btn-primary {
    background-color: #6c4dfd;
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    background-color: #d1d5dc;
    color: #99a1af;
    cursor: not-allowed;
    opacity: 1;
}

.btn-primary:disabled:hover {
    opacity: 1;
}

/* Card */
.card {
    background-color: #ffffff;
    border: 0.909px solid #e5e7eb;
    border-radius: 14px;
    padding: 24.901px;
    display: flex;
    flex-direction: column;
    gap: 15.994px;
}

/* Readiness Section */
.readiness-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.readiness-info {
    display: flex;
    flex-direction: column;
    gap: 3.991px;
}

.readiness-title {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #0a0a0a;
}

.readiness-desc {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #4a5565;
}

.readiness-percent {
    display: flex;
    flex-direction: column;
    gap: 3.991px;
    text-align: right;
}

.percent-value {
    font-size: 30px;
    font-weight: normal;
    line-height: 36px;
    color: #6c4dfd;
}

.percent-text {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #4a5565;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 11.989px;
    background-color: #e5e7eb;
    border-radius: 30504000px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 22%;
    background-color: #6c4dfd;
}

/* Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 11.989px;
}

.checklist-item {
    display: flex;
    gap: 11.989px;
    align-items: center;
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
}

.checklist-icon {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.checklist-icon.pending {
    color: #99a1af;
}

.checklist-icon.completed {
    color: #00c950;
}

.checklist-text {
    color: #6a7282;
}

.checklist-text.completed {
    color: #101828;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7.997px;
}

.form-label {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #0a0a0a;
}

.form-label .required {
    color: #fb2c36;
    margin-left: 3px;
}

.form-input,
.form-textarea {
    border: 0.909px solid #d1d5dc;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #0a0a0a;
    background-color: #ffffff;
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(10, 10, 10, 0.5);
}

.form-textarea {
    min-height: 169.744px;
    resize: vertical;
}

.form-helper {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #6a7282;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Select/Dropdown */
.form-select {
    border: 0.909px solid #d1d5dc;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #0a0a0a;
    background-color: #ffffff;
    cursor: pointer;
    font-family: inherit;
}

/* File Upload */
.file-upload {
    border: 1.818px dashed #d1d5dc;
    border-radius: 10px;
    padding: 33.807px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11.989px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.file-upload:hover {
    background-color: #f9fafb;
    border-color: #6c4dfd;
}

.file-upload-icon {
    font-size: 48px;
}

.file-upload-text {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #364153;
}

.file-upload-helper {
    font-size: 14px;
    font-weight: normal;
    line-height: 16px;
    color: #6a7282;
}

/* Curriculum Section */
.curriculum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.curriculum-title {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #0a0a0a;
}

.btn-add-section, .btn-modify-section {
    background-color: #6c4dfd;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-section:hover, .btn-modify-section:hover {
    opacity: 0.9;
}

/* Curriculum Table */
.curriculum-container {
    border: 0.909px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.curriculum-section-header {
    background-color: #f9fafb;
    border-bottom: 0.909px solid #f3f4f6;
    padding: 15.994px;
    display: flex;
    gap: 15.994px;
    align-items: center;
}

.section-name {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #6a7282;
    min-width: 46.449px;
}

.section-input {
    flex: 1;
    border: 0.909px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #0a0a0a;
    font-family: inherit;
}

.btn-add-lecture {
    background-color: transparent;
    color: #6c4dfd;
    border: none;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-lecture:hover {
    background-color: rgba(108, 77, 253, 0.08);
}

/* Lecture Item */
.lecture-item {
    border-bottom: 0.909px solid #f3f4f6;
    padding: 15.994px;
    display: flex;
    gap: 15.994px;
    align-items: center;
}

.lecture-item:last-child {
    border-bottom: none;
}

.lecture-number {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #99a1af;
    min-width: 31.989px;
}

.lecture-name {
    flex: 1;
    border: 0.909px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #0a0a0a;
    font-family: inherit;
}

.lecture-type {
    border: 0.909px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #0a0a0a;
    width: 87.614px;
    font-family: inherit;
}

.lecture-duration {
    border: 0.909px solid #d1d5dc;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: rgba(10, 10, 10, 0.5);
    width: 80px;
    text-align: center;
    font-family: inherit;
}

.lecture-delete, .section-delete {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #99a1af;
    padding: 6px;
}

.lecture-delete:hover {
    color: #fb2c36;
}

/* Video Upload Area */
.video-upload-area {
    border: 1.818px dashed #d1d5dc;
    border-radius: 10px;
    padding: 25.81px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7.997px;
    background-color: #ffffff;
    margin-left: 63.99px;
    margin-top: 15.994px;
    margin-bottom: 15.994px;
    cursor: pointer;
}

.video-upload-area:hover {
    background-color: #f9fafb;
    border-color: #6c4dfd;
}

.video-icon {
    font-size: 30px;
}

.video-upload-text {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #364153;
    text-align: center;
}

.video-upload-helper {
    font-size: 12px;
    font-weight: normal;
    line-height: 16px;
    color: #6a7282;
    text-align: center;
}

/* Hidden File Input */
.hidden-file-input {
    display: none;
}
.hidden-file-input-doc {
    display: none;
}

/* Preview Image */
.preview-container {
    position: relative;
    display: none;
    width: 90%;
    margin: 15px auto;
}

.preview-container.active {
    display: block;
}

.preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 0.909px solid #e5e7eb;
    max-height: 400px;
    object-fit: cover;
}

.preview-controls {
    display: flex;
    gap: 11.989px;
    margin-top: 11.989px;
    justify-content: center;
}

.btn-remove-preview {
    background-color: #fb2c36;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-preview:hover {
    opacity: 0.9;
}

.btn-change-file {
    background-color: #6c4dfd;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-change-file:hover {
    opacity: 0.9;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0px 25px 50px 0px rgba(0, 0, 0, 0.25);
    width: 420px;
    padding: 31.989px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 15.99px;
    right: 15.99px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 20px;
}

.modal-icon.success {
    background-color: #ff7a00;
}

.modal-icon.error {
    background-color: #ff3b30;
}

.modal-icon.loading {
    background-color: transparent;
    font-size: 48px;
}

.modal-title {
    font-size: 20px;
    font-weight: normal;
    line-height: 28px;
    color: #111;
    text-align: center;
}

.modal-description {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #666;
    text-align: center;
}

.progress-container {
    width: 100%;
    margin: 15.994px 0;
}

.progress-bar-modal {
    width: 100%;
    height: 10px;
    background-color: #f4f4f4;
    border-radius: 30504000px;
    overflow: hidden;
    margin-bottom: 15.994px;
}

.progress-fill-modal {
    height: 100%;
    width: 0%;
    background-color: #ff7a00;
    border-radius: 30504000px;
    transition: width 0.3s ease;
}

.upload-info-box {
    background-color: #fafafa;
    border-radius: 10px;
    padding: 11.989px;
    display: flex;
    flex-direction: column;
    gap: 3.991px;
}

.upload-info-text {
    font-size: 13px;
    font-weight: normal;
    line-height: 19.5px;
    color: #555;
}

.modal-divider {
    height: 0.994px;
    background-color: #f0f0f0;
    width: 100%;
}

.modal-button-group {
    display: flex;
    flex-direction: column;
    gap: 7.997px;
    width: 100%;
}

.modal-btn {
    width: 100%;
    padding: 11.989px;
    border: none;
    border-radius: 30504000px;
    font-size: 14px;
    font-weight: normal;
    line-height: 21px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn.primary {
    background-color: #ff7a00;
    color: #ffffff;
}

.modal-btn.primary:hover {
    opacity: 0.9;
}

.modal-btn.secondary {
    background-color: #ffffff;
    color: #666;
    border: 0.909px solid #ddd;
}

.modal-btn.secondary:hover {
    background-color: #f9f9f9;
}

.modal-btn-text {
    font-size: 13px;
    font-weight: normal;
    line-height: 19.5px;
    color: #999;
    text-align: center;
}

.error-info-box {
    background-color: #fff7f6;
    border-radius: 8px;
    padding: 11.989px;
    display: flex;
    flex-direction: column;
    gap: 5.994px;
}

.error-info-title {
    font-size: 13px;
    font-weight: normal;
    line-height: 19.5px;
    color: #444;
}

.error-info-item {
    font-size: 12px;
    font-weight: normal;
    line-height: 19.2px;
    color: #777;
}

/* Spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Tip Box */
.tip-box {
    background-color: rgba(108, 77, 253, 0.06);
    border: 0.909px solid rgba(108, 77, 253, 0.19);
    border-radius: 14px;
    padding: 24.901px;
    display: flex;
    gap: 15.994px;
}

.tip-icon {
    font-size: 24px;
    min-width: 24px;
}

.tip-content {
    display: flex;
    flex-direction: column;
    gap: 7.997px;
}

.tip-title {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #6c4dfd;
}

.tip-list {
    display: flex;
    flex-direction: column;
    gap: 3.991px;
}

.tip-item {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #364153;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 11.989px;
    justify-content: flex-end;
}

.btn-large {
    border: none;
    border-radius: 14px;
    padding: 11px 32px;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 133.608px;
}

.btn-large-gray {
    background-color: #f3f4f6;
    color: #364153;
}

.btn-large-gray:hover {
    background-color: #e5e7eb;
}

.btn-large-primary {
    background-color: #6c4dfd;
    color: #ffffff;
}

.btn-large-primary:hover {
    opacity: 0.9;
}

.btn-large-primary:disabled {
    background-color: #d1d5dc;
    color: #99a1af;
    cursor: not-allowed;
    opacity: 1;
}

.btn-large-primary:disabled:hover {
    opacity: 1;
}

/* Responsive */
/* Toggle Switch */
.toggle-switch {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #818183 !important;
}

.toggle-switch.active {
    background-color: #030213 !important;
}

.toggle-switch.active .toggle-knob {
    transform: translateX(16px);
}

.toggle-knob {
    transition: transform 0.3s ease;
    margin-left: 0;
}

/* Resource Links */
.resource-link {
    transition: all 0.2s ease;
}

.resource-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        padding: 31.989px 40px;
    }

    .header-section {
        flex-direction: column;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .lecture-item {
        flex-wrap: wrap;
    }

    .lecture-type,
    .lecture-duration {
        width: auto;
    }
}

@media (max-width: 768px) {

    .main-content {
        padding: 20px;
        gap: 15.994px;
    }

    .card {
        padding: 16px;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .header-title {
        font-size: 18px;
    }

    .action-buttons {
        flex-direction: column;
    }

    /* Resource Links Responsive */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .btn-large {
        width: 100%;
    }

    .curriculum-section-header {
        flex-direction: column;
        gap: 10px;
    }

    .lecture-item {
        flex-direction: column;
        gap: 10px;
    }

    .lecture-name,
    .section-input {
        width: 100%;
    }
}