/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-spinner p {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Header */
.header {
    background: transparent;
    padding: 40px 0 20px;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo i {
    font-size: 2.2rem;
    color: #4f46e5;
}

.subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Search and Filter Section */
.search-filter-section {
    padding: 20px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 500;
    color: #374151;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Main Content */
.main-content {
    margin-bottom: 100px;
}

/* Discussions Grid */
.discussions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Discussion Card */
.discussion-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    flex-direction: column;
}

.discussion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    position: relative;
}

.discussion-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 0;
    flex: 1;
    margin-right: 120px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 10px;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.type-badge.팀전 {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.type-badge.자유 {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.type-badge.역할극 {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}



.card-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b7280;
}

.meta-item i {
    font-size: 12px;
    width: 14px;
}

.author-info {
    color: #374151;
}

.participants-info {
    color: #059669;
    font-weight: 600;
}

.time-remaining {
    color: #dc2626;
    font-weight: 500;
    font-size: 13px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.empty-icon {
    font-size: 80px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #6b7280;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-state p {
    color: #9ca3af;
}

/* Floating Button */
.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
}

.floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.5);
    background: #4338ca;
}

.floating-button i {
    font-size: 16px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

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

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-title-section {
    flex: 1;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

.modal-close {
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    padding: 4px !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.modal-close:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

/* 토론방 공유 모달 닫기 버튼 강제 적용 */
#shareModal .modal-close,
#shareModal button.modal-close {
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    padding: 4px !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

#shareModal .modal-close:hover,
#shareModal button.modal-close:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.modal-body {
    padding: 20px 24px 24px;
}

.modal-form {
    padding: 20px 24px 24px;
}

/* Form Styles */
.form-group {
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.3;
}

/* Button Styles */
.btn-primary {
    background: #5b8def;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-primary:hover {
    background: #4a7ce0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 141, 239, 0.3);
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    background: #f9fafb;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Discussion Detail Modal */
.discussion-description {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.discussion-description p {
    color: #6b7280;
    line-height: 1.6;
}

.opinions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.opinion-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}

.pros-section {
    background: linear-gradient(135deg, #f0fdf4, #f7fee7);
    border-left: 3px solid #22c55e;
}

.cons-section {
    background: linear-gradient(135deg, #fef2f2, #fef7f7);
    border-left: 3px solid #ef4444;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pros-section .section-header h3 {
    color: #16a34a;
}

.cons-section .section-header h3 {
    color: #dc2626;
}

.opinion-count {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.opinions-list {
    max-height: 250px;
    overflow-y: auto;
}

.opinion-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.opinion-author {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 13px;
}

.opinion-text {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 14px;
}

.opinion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #9ca3af;
}

.like-btn {
    background: none;
    border: 1px solid #e5e7eb;
    padding: 2px 6px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.like-btn:hover {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.opinion-form-container {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}

.opinion-form-container h4 {
    margin-bottom: 12px;
    color: #374151;
    font-weight: 700;
    font-size: 1rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-icon {
    font-size: 16px;
}

.toast.success {
    background: #059669;
}

.toast.error {
    background: #dc2626;
}

.toast.info {
    background: #2563eb;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .discussions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 30px 0 15px;
    }

    .logo {
        font-size: 2rem;
        flex-direction: column;
        gap: 8px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .search-filter-section {
        padding: 15px 0 30px;
    }

    .discussions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .discussion-card {
        height: auto;
        min-height: 180px;
    }

    .opinions-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-content {
        margin: 0 10px;
        max-width: calc(100% - 20px);
    }

    .modal-header,
    .modal-body,
    .modal-form {
        padding: 16px;
    }

    .floating-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
    }

    .button-text {
        display: none;
    }

    .filter-section {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .filter-select {
        width: 100%;
    }
}

/* 3단계 모달 스타일 */
.modal-wizard {
    max-width: 600px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 10px;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active {
    background: #007bff;
    color: white;
}

.step.completed {
    background: #28a745;
    color: white;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
}

.step-labels {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #757575;
}

.step-label.active {
    color: #007bff;
    font-weight: 600;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-description {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 모드 선택 */
.mode-selection {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mode-option:hover {
    background-color: #f8f9fa;
}

.mode-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #007bff;
    cursor: pointer;
}

.mode-title {
    font-size: 14px;
    color: #333;
}

.ai-recommend-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ai-recommend-btn:hover {
    background: #0056b3;
}

.ai-recommend-btn .sparkle {
    font-size: 10px;
}

.mode-option input[type="radio"]:checked + .mode-title {
    color: #007bff;
    font-weight: 600;
}

.mode-option input[type="radio"]:checked ~ .ai-recommend-btn {
    background: #0056b3;
}

/* 찬성/반대 예시 입력 */
.pros-cons-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

/* 텍스트영역 컨테이너 */
.textarea-container {
    position: relative;
}

/* 찬성/반대 섹션 */
.pros-cons-section {
    margin: 15px 0;
}

/* 역할 섹션 */
.role-section {
    margin: 15px 0;
}

/* 토글 섹션 */
.toggle-section {
    margin: 20px 0;
}

.toggle-section label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.checkmark {
    display: none;
}

/* AI 버튼 */
.textarea-wrapper {
    position: relative;
}

.ai-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 역할 목록 미리보기 */
.role-preview {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.role-tag {
    display: inline-block;
    background: #e0e0e0;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 4px;
    font-size: 13px;
}

/* 교사 권한 뱃지 */
.teacher-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 600;
}

/* 카드 액션 버튼 */
.card-actions {
    display: flex;
    gap: 5px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.edit-btn, .delete-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    opacity: 0;
    background: none;
}

.edit-btn {
    color: #3b82f6;
}

.delete-btn {
    color: #ef4444;
}

.discussion-card:hover .edit-btn,
.discussion-card:hover .delete-btn {
    opacity: 0.8;
}

.edit-btn:hover,
.delete-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.edit-btn {
    background: #ffc107;
    color: #000;
}

.edit-btn:hover {
    background: #ffb300;
    opacity: 1;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    opacity: 1;
}

.delete-btn.admin-delete {
    background: #6f42c1;
}

.delete-btn.admin-delete:hover {
    background: #5a359a;
}

/* 로비 아이콘 크기 설정 */
.lobby-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.lock-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
}

/* 카드 헤더에 상대 위치 설정 */
.card-header {
    position: relative;
}

/* 비밀번호 확인 모달 */
.password-modal {
    max-width: 400px;
}

.password-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .discussions-grid {
        grid-template-columns: 1fr;
    }

    .discussion-card {
        padding: 16px;
        min-height: 160px;
    }

    .discussion-title {
        font-size: 16px;
        margin-right: 50px;
    }

    .type-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* 비밀글 토글 스타일 */
.toggle-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.toggle-option:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.toggle-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4f46e5;
    cursor: pointer;
    margin: 0;
}

.toggle-title {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.toggle-description {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.toggle-option input[type="checkbox"]:checked ~ .toggle-title {
    color: #4f46e5;
}

.toggle-option input[type="checkbox"]:checked ~ .toggle-description {
    color: #4f46e5;
}

/* 입장코드 입력란 스타일 */
.form-hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}

#entryCodeSection {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 150px;
        padding-top: inherit;
        padding-bottom: inherit;
        margin-top: inherit;
        margin-bottom: 20px;
    }
}

/* URL 복사 그룹 레이아웃 */
.url-copy-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.url-copy-group input {
    flex: 1;
}

/* 복사 버튼 기본 스타일 - 별칭 확인과 동일한 디자인 */
.btn-copy {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background-color: #fef9c3;
    border-color: #fde68a;
}

/* 공유 모달 복사 버튼 - 별칭 확인과 동일한 디자인 */
.btn-copy-primary {
    background-color: white !important;
    color: #6b7280 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-copy-primary:hover {
    background-color: #fef9c3 !important;
    border-color: #fde68a !important;
}

.btn-copy-primary:active {
    transform: scale(0.95);
}

.btn-copy-primary i,
.btn-copy-primary img {
    width: 16px;
    height: 16px;
}

.btn-copy i,
.btn-copy img {
    width: 16px;
    height: 16px;
}
/* 단축 링크 만들기 버튼 */
.btn-create-shortlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    padding: 8px 16px;
    background-color: #f4f4f5;
    color: #18181b;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-create-shortlink:hover {
    background-color: rgba(244, 244, 245, 0.8);
}

.btn-create-shortlink .btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 0;
}

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

/* 단축 링크 모달 QR 코드 섹션 */
.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.qr-code-display {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    min-width: 200px;
}

.qr-code-display canvas,
.qr-code-display img {
    max-width: 200px;
    max-height: 200px;
}

/* 사용자 지정 URL 입력 그룹 */
.custom-url-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.custom-url-group .custom-alias {
    flex: 1;
}

.custom-url-group .form-select {
    width: auto;
    min-width: 200px;
}

.btn-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-check:hover {
    background-color: #fef9c3;
    border-color: #fde68a;
}

/* 결과 섹션 */
.result-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.url-copy-group {
    display: flex;
    gap: 8px;
}

.url-copy-group .form-input {
    flex: 1;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background-color: #fef9c3;
    border-color: #fde68a;
}
