/* Base Styles & Imports */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Montez&display=swap");

:root {
    --primary-color: #2263b7;
    --hover-color: #FF9933;
    --text-color: #333;
    --bg-color: #f4f7fc;
    --border-color: #e1e5f0;
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --dark-bg: #2d2d2d;
    --dark-input: #3d3d3d;
    --dark-border: #4d4d4d;
    --header-height: 70px;
    --footer-height: 60px;
    --header-bg-color: #ffffff;
    --header-text-color: #333333;
    --button-primary-bg: #007bff;
    --button-primary-text: #ffffff;
    --button-primary-border: #007bff;
    --button-primary-hover-bg: #0056b3;
    --button-primary-hover-text: #ffffff;
    --button-primary-hover-border: #0056b3;
    --button-secondary-bg: #f8f9fa;
    --button-secondary-text: #343a40;
    --button-secondary-border: #ced4da;
    --button-secondary-hover-bg: #e2e6ea;
    --button-secondary-hover-text: #343a40;
    --button-secondary-hover-border: #dae0e5;
    --accent-color: var(--primary-color);
}

[data-theme="dark"] {
    --text-color: #ffffff;
    --bg-color: #1a1a1a;
    --border-color: #4d4d4d;
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --header-bg-color: #2c3e50;
    --header-text-color: #ecf0f1;
    --button-primary-bg: #3498db;
    --button-primary-text: #ffffff;
    --button-primary-border: #3498db;
    --button-primary-hover-bg: #2980b9;
    --button-primary-hover-text: #ffffff;
    --button-primary-hover-border: #2980b9;
    --button-secondary-bg: #3a536b;
    --button-secondary-text: #ecf0f1;
    --button-secondary-border: #4e6a85;
    --button-secondary-hover-bg: #435c75;
    --button-secondary-hover-text: #ecf0f1;
    --button-secondary-hover-border: #597896;
    --accent-color: #3498db;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Pretendard', -apple-system, system-ui, sans-serif !important;
}

body {
    line-height: 1.6;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
}

/* Theme Switch Styles */
.theme-switch {
    display: none;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.theme-toggle .mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.theme-toggle .mode-text {
    transition: opacity 0.3s ease;
}

/* Active state */
.theme-toggle[data-active="true"] {
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
}

.theme-toggle[data-active="false"] {
    opacity: 0.7;
}

.theme-toggle[data-active="false"]:hover {
    opacity: 1;
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
    background: transparent;
    box-shadow: none;
    border: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--header-bg-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--header-text-color);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container h2.montez-regular {
    font-family: 'Montez', cursive !important;
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
    transition: color 0.3s ease;
}

[data-theme="dark"] .logo-container h2.montez-regular {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* 네비게이션 컨테이너 */
.nav-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 테마 토글 컨테이너 */
.theme-toggle-container {
    display: flex;
    align-items: center;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 사용자 드롭다운 메뉴 */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    background-color: transparent;
    color: var(--text-color);
    padding: 10px 15px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.user-dropdown-btn:hover {
    background-color: var(--secondary-bg);
}

.dropdown-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--primary-bg);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.user-dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
}

.user-dropdown-content a:hover {
    background-color: var(--primary-color);
    color: white;
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* User Info */
.user-info {
    background-color: var(--primary-bg);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.user-info p {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.user-info a:hover {
    background: var(--primary-color);
    color: white;
}

/* Title */
.title {
    display: none;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Form Elements */
.input-section {
    margin-bottom: 20px;
    background-color: var(--primary-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

#userNote {
    width: 100%;
    min-height: 250px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--primary-bg);
    color: var(--text-color);
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#userNote:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 99, 183, 0.1);
}

/* Source Toggle */
.source-toggle {
    display: flex;
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 4px;
    margin: 24px auto;
    width: fit-content;
    gap: 4px;
}

.source-toggle label {
    padding: 10px 24px;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.source-toggle input[type="radio"] {
    display: none;
}

.source-toggle input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: white;
    opacity: 1;
}

/* Keywords Section Styling */
.keywords-section {
    margin: 24px 0;
}

.keywords-container {
    position: relative;
    margin-bottom: 16px;
}

.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.keyword-input {
    width: 100%;
    padding: 12px;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.keyword-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 99, 183, 0.1);
}

.add-keyword-btn {
    position: relative;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.add-keyword-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.add-keyword-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

.keywords-info {
    margin-top: 12px;
}

.keyword-count {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 8px;
}

.keyword-count.limit {
    color: #ff6b6b;
}


.keyword-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyword-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.keyword-btn.add {
    background: var(--primary-color);
    color: white;
}

.keyword-btn.remove {
    background: #ff6b6b;
    color: white;
}

.keyword-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.keyword-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.keyword-btn.add:not(:disabled):hover {
    background: var(--hover-color);
}

.keyword-btn.remove:not(:disabled):hover {
    background: #fa5252;
}

.info-message {
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 8px;
    font-size: 14px;
}

.info-sub {
    font-size: 13px;
}

/* Loading */
#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    position: relative;
    animation: l14 2s linear infinite;
    margin-bottom: 24px;
}

.loader::before {
    content: "";
    position: absolute;
    background: var(--primary-bg);
    width: 70%;
    height: 70%;
    border-radius: 50%;
    top: 15%;
    left: 15%;
}

@keyframes l14 {
    100% {transform: rotate(360deg)}
}

/* 단계별 진행 상태 */
.workflow-progress {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 20%;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.step-icon.active {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(34, 99, 183, 0.2);
}

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

.step-label {
    font-size: 12px;
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 100px;
}

.step-icon.active + .step-label {
    opacity: 1;
    font-weight: 500;
}

#timer {
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

#loadingMessage {
    margin-top: 12px;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 14px;
    height: 20px;
}

/* Result Area */
#result {
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in-out;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.download-btn {
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(34, 99, 183, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.download-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 99, 183, 0.2);
}

/* Markdown Preview */
#markdownPreview {
    max-width: 100%;
    overflow-x: auto;
    background: var(--primary-bg);
    padding: 30px;
    border-radius: 8px;
    color: var(--text-color);
    line-height: 1.8;
    border: 1px solid var(--border-color);
    margin-top: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

#markdownPreview h1,
#markdownPreview h2,
#markdownPreview h3,
#markdownPreview h4,
#markdownPreview h5,
#markdownPreview h6 {
    color: var(--text-color);
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.4;
}

#markdownPreview h1 { font-size: 2em; }
#markdownPreview h2 { font-size: 1.5em; }
#markdownPreview h3 { font-size: 1.3em; }

#markdownPreview p {
    margin-bottom: 1em;
}

#markdownPreview ul,
#markdownPreview ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

#markdownPreview code {
    font-family: monospace;
    padding: 0.2em 0.4em;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    font-size: 0.9em;
}

#markdownPreview pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1em 0;
}

#markdownPreview pre code {
    background: none;
    padding: 0;
}

/* PDF Upload Area */
.pdf-upload-container {
    margin: 24px 0;
}

.pdf-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    background: var(--secondary-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.pdf-drop-zone.drag-active {
    border-color: var(--primary-color);
    background: rgba(34, 99, 183, 0.05);
}

.pdf-drop-zone:hover {
    border-color: var(--primary-color);
    background: rgba(34, 99, 183, 0.05);
}

.pdf-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    stroke: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.pdf-drop-zone:hover .pdf-icon {
    stroke: var(--primary-color);
    opacity: 1;
    transform: scale(1.05);
}

.pdf-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.pdf-sublabel {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

/* Selected Files Display */
.selected-files {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.file-name {
    font-size: 14px;
    color: var(--text-color);
    margin-right: 12px;
    word-break: break-all;
}

.remove-file {
    cursor: pointer;
    color: #ff6b6b;
    font-size: 18px;
    font-weight: bold;
    padding: 0 4px;
    transition: all 0.2s ease;
}

.remove-file:hover {
    transform: scale(1.1);
    color: #fa5252;
}

/* Submit Button */
.submit-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 99, 183, 0.2);
    text-align: center;
}

.submit-button:hover {
    background: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(34, 99, 183, 0.3);
}

.submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 99, 183, 0.2);
}

/* Character Counter */
.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    background: var(--primary-bg);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px 0;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    height: var(--footer-height);
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content img {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-content img:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .site-header {
        padding: 0 20px;
    }
    
    .main-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .content-section, .input-section, #loading, #result {
        padding: 20px;
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header {
        padding: 0 15px;
    }
    
    .nav-container {
        gap: 10px;
    }
    
    .user-dropdown-btn {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .theme-toggle-container {
        padding: 2px;
    }
    
    .theme-toggle {
        padding: 4px 8px;
    }
}

/* Input Section Styles */
.input-section {
    margin-bottom: 24px;
    position: relative;
}

.input-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
}

.input-section textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
}

#userPrompt {
    min-height: 100px; /* Writing Instructions 텍스트 영역은 좀 더 작게 */
}

.input-section textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 99, 183, 0.1);
}

.input-hint {
    display: block;
    font-size: 0.85em;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 6px;
    font-style: italic;
}

/* Temperature Control Styles */
.temperature-control {
    margin-top: 30px;
    padding: 20px;
    background: var(--primary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.temperature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.temperature-header label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0;
}

.temperature-value {
    font-family: 'Pretendard', monospace;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

.temperature-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.temperature-label {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    min-width: 85px;
}

/* Custom Slider Styling */
#temperatureSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
}

#temperatureSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#temperatureSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#temperatureSlider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#temperatureSlider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dark theme adjustments */
[data-theme="dark"] #temperatureSlider::-webkit-slider-thumb {
    border-color: var(--dark-bg);
}

[data-theme="dark"] #temperatureSlider::-moz-range-thumb {
    border-color: var(--dark-bg);
}

/* Date Filter Styles */
.date-filter {
    margin-bottom: 12px;
}

.date-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.date-filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.date-filter-btn .icon {
    font-size: 16px;
}

.date-slider-container {
    margin-top: 12px;
    padding: 16px;
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.year-value {
    font-weight: 500;
    color: var(--primary-color);
}

.slider-wrapper {
    margin: 8px 0;
}

#dateSlider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--hover-color));
    border-radius: 2px;
    outline: none;
}

#dateSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 4px;
}

/* 템플릿 버튼 및 모달 스타일 */
.template-section {
    margin-bottom: 24px;
}

.template-toggle {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.template-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(34, 99, 183, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.template-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 99, 183, 0.3);
}

.template-btn .icon {
    font-size: 18px;
}

.template-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    transform: translate(-50%, -50%);
}

.template-modal-content {
    background-color: var(--bg-color);
    margin: 0 auto;
    padding: 24px;
    border-radius: 12px;
    width: 85%;
    height: 75%;
    max-width: 85%;
    max-height: 75vh;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow-y: auto;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.template-card {
    background-color: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.template-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.template-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(34, 99, 183, 0.05);
}

.template-card h4 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.template-card p {
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.template-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.template-card:hover .template-details {
    max-height: 200px;
}

.template-details ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    opacity: 0.9;
}

.template-details li {
    margin-bottom: 4px;
}

/* 선택된 템플릿 정보 영역 스타일 */
#selectedTemplateInfo {
    background-color: var(--primary-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    height: 95%;
    overflow-y: auto;
}

.selected-template-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.header-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-desc-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-top: 0.5rem;
}

.header-desc-row p {
    flex: 1;
    margin-right: 1rem;
    margin-bottom: 0;
}

.header-title-row h3 {
    margin: 0;
    text-align: left;
    font-size: 1.2rem;
    color: var(--text-color);
}

.change-template-btn {
    width: auto;
    min-width: 70px;
    padding: 0.4rem 0.8rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.change-template-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .change-template-btn {
    color: #ffffff;
    border-color: #ffffff;
    border-width: 1px;
    opacity: 0.9;
}

[data-theme="dark"] .change-template-btn:hover {
    background-color: #ffffff;
    color: var(--dark-bg);
    opacity: 1;
}

.selected-template-description {
    margin-top: 1rem;
}

.selected-template-description p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 0.8rem;
}

.selected-template-details {
    margin-top: 1rem;
}

.selected-template-details h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

#selectedTemplatePoints {
    margin-top: 0.5rem;
}

#selectedTemplatePoints ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

#selectedTemplatePoints li {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.4;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .template-modal-content {
        padding: 20px;
        margin: 20px auto;
        width: 90%;
    }
    
    .selected-template-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .change-template-btn {
        align-self: flex-start;
    }
}

/* 두 컬럼 레이아웃 스타일 */
.two-column-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.column-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.column-right {
    flex: 0.8;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 템플릿 버튼 래퍼 */
.template-toggle-wrapper {
    margin-bottom: 20px;
}

/* 템플릿 없을 때 메시지 */
#noTemplateMessage {
    background-color: var(--primary-bg);
    padding: 30px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#noTemplateMessage p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
}

.template-preview-image {
    max-width: 200px;
    margin: 0 auto;
    opacity: 0.7;
}

.template-preview-image img {
    width: 100%;
    height: auto;
}

/* 하단 컨트롤 스타일 */
.bottom-controls {
    background-color: var(--primary-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 온도 컨트롤 컴팩트 버전 */
.temperature-control {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 25px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.temperature-label-compact {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.temperature-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .two-column-layout {
        flex-direction: column;
    }
    
    .column-left, .column-right {
        width: 100%;
    }
    
    #selectedTemplateInfo, #noTemplateMessage {
        height: auto;
        margin-bottom: 20px;
    }
    
    .input-section {
        height: auto;
    }
    
    #userNote {
        min-height: 200px;
    }
}

/* Main Container - 백그라운드 환경으로 변경 */
.main-container.no-card {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    background: transparent;
    box-shadow: none;
    border: none;
}

/* 컨테이너 없는 평평한 레이아웃 */
.flat-section {
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 30px;
}

/* Form Layout */
.main-container.no-card .two-column-layout {
    max-width: 1200px;
    margin: 0 auto;
}

/* 유저 노트 스타일 */
#userNote {
    width: 100%;
    min-height: 180px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--text-color);
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
    margin-top: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#userNote:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 버튼 컨테이너 스타일 */
.button-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* 제출 버튼 스타일 수정 */
.submit-button {
    flex: 1;
    max-width: 200px;
    padding: 13px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 설정 토글 버튼 */
.toggle-settings-btn {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.toggle-settings-btn:hover {
    background-color: var(--border-color);
}

.toggle-settings-btn .dropdown-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.toggle-settings-btn.active .dropdown-icon {
    transform: rotate(180deg);
}

/* 접었다 펼치는 섹션 */
.collapsible-section {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.collapsible-section.active {
    max-height: 200px; /* 충분한 높이 */
    opacity: 1;
    padding: 15px;
}

/* 온도 컨트롤 컴팩트 버전 */
.temperature-control {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* 템플릿 카드 스타일 수정 */
.template-card {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 템플릿 버튼 스타일 수정 */
.template-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 13px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 템플릿 안내 메시지 스타일 수정 */
#noTemplateMessage {
    background-color: var(--primary-bg);
    padding: 30px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 선택된 템플릿 정보 스타일 수정 */
#selectedTemplateInfo {
    background-color: var(--primary-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    height: 95%;
    overflow-y: auto;
}

/* 결과 영역 스타일 수정 */
#result {
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 로딩 영역 스타일 수정 */
#loading {
    max-width: 1000px;
    margin: 40px auto 0;
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 반응형 수정 */
@media (max-width: 992px) {
    .button-container {
        flex-direction: column;
    }
    
    .submit-button {
        max-width: 100%;
    }
    
    .toggle-settings-btn {
        width: 100%;
        justify-content: center;
    }
}

.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    min-height: 100px;
    overflow: visible;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.input-field {
    width: 100%;
    min-height: 250px;
    padding: 12px;
    padding-bottom: 40px; /* 파일 아이콘을 위한 공간 */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* 기본 상태에서는 모든 모서리 둥글게 */
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
    background: var(--primary-bg);
    color: var(--text-color);
    position: relative;
    transition: min-height 0.3s ease, border-radius 0.3s ease; /* 높이와 테두리 전환 효과 추가 */
}

[data-theme="dark"] .input-field {
    background: var(--dark-input);
    border-color: var(--dark-border);
}

.input-actions {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2; /* .selected-files-list의 z-index인 1보다 높게 설정 */
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    margin-left: 10px; /* 클립 아이콘과 컨테이너 사이 마진 추가 */
}

.file-input-wrapper input[type="file"] {
    opacity: 0; /* 일부 브라우저에서 클릭 전달을 위해 유지 */
    position: absolute;
    left: -9999px; /* 화면 밖으로 이동시켜 브라우저 기본 텍스트 숨김 */
    top: -9999px;
    width: 1px;    /* 크기를 최소화 */
    height: 1px;
    cursor: pointer; /* 아이콘을 통해 클릭되므로 포인터 유지 */
}

.file-icon {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    color: #888; /* 기본 아이콘 색상 */
    margin: 0 5px;
}

.file-icon:hover {
    opacity: 1;
}

.file-icon.has-files {
    color: var(--accent-color); /* 정의된 accent-color 사용 */
    opacity: 1;
    font-weight: bold; /* SVG에는 영향 없음 */
    stroke-width: 3; /* SVG 테두리 두께 */
}

.file-label {
    display: none;
    font-size: 0.9em;
    color: var(--accent-color);
    margin-left: 5px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.tooltip {
    position: absolute;
    background-color: var(--primary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    
    top: 100%; 
    left: 50%;
    /* translateX(-50%)는 중앙 정렬, -25%는 중앙보다 약간 오른쪽으로 이동 */
    transform: translateX(-25%); 
    margin-top: 5px; 

    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.file-input-wrapper:hover .tooltip {
    opacity: 1;
}

/* 인증 페이지 스타일 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.auth-box {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-background);
    color: var(--text-color);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 네비게이션 스타일 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-links a:hover {
    background-color: var(--hover-color);
}

/* 푸터 스타일 */
footer {
    text-align: center;
    padding: 1rem;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

.content-container {
    width: calc(100% - 20px);
    margin: 20px 10px;
    padding: 20px;
    background-color: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-container {
    margin-bottom: 30px;
    padding: 0 10px;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

[data-theme="dark"] .loading-container {
    background-color: rgba(30, 30, 30, 0.9);
}

.main-container.loading {
    position: relative;
}

.main-container.loading .input-container,
.main-container.loading .flat-section {
    opacity: 0.5;
    pointer-events: none;
}

#result {
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#markdownPreview {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.flat-section label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
}

.input-field::placeholder {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

/* 다크모드에서 로고 색상 변경 */
[data-theme="dark"] .logo {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.logo:hover {
    opacity: 0.9;
}

.site-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

/* 다크모드에서 로고 색상 변경 */
[data-theme="dark"] .site-header .logo {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.site-header .logo:hover {
    opacity: 0.9;
}

.template-container {
    width: 90%;
    height: 80%;
    max-width: 90%;
    max-height: 80vh;
    margin: 0 auto;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
}

/* 선택된 파일 목록 스타일 */
.selected-files-list {
    margin-top: 0;
    padding: 8px 12px 45px 12px; /* top, right, bottom, left */
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-top: none; /* 상단 테두리 제거 */
    border-radius: 0 0 8px 8px; /* 상단 모서리 직각으로 변경 */
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 3px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    font-size: 13px;
    width: 100%;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item-name {
    font-size: 13px;
    color: var(--text-color);
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-remove {
    cursor: pointer;
    color: #ff6b6b;
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
    padding: 0 5px;
    transition: all 0.2s ease;
}

.file-item-remove:hover {
    transform: scale(1.2);
    color: #fa5252;
}

.input-container.has-files {
    transition: min-height 0.3s ease;
    padding-bottom: 0;
}

.input-container.has-files .input-field {
    transition: all 0.3s ease;
    padding-bottom: 40px;
    min-height: auto;
    border-radius: 8px 8px 0 0; /* 하단이 직각으로 */
}

/* 헤더 인증 버튼 기본 스타일 */
.header-auth-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent; /* 기본 테두리 투명하게 */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

/* 로그인 버튼 스타일 */
.header-auth-btn.login-btn {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border-color: var(--button-secondary-border);
}

.header-auth-btn.login-btn:hover {
    background-color: var(--button-secondary-hover-bg);
    color: var(--button-secondary-hover-text);
    border-color: var(--button-secondary-hover-border);
}

/* 회원가입 버튼 스타일 */
.header-auth-btn.register-btn {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    border-color: var(--button-primary-border);
}

.header-auth-btn.register-btn:hover {
    background-color: var(--button-primary-hover-bg);
    color: var(--button-primary-hover-text);
    border-color: var(--button-primary-hover-border);
}

/* 로그인 안내 문구 */
.login-prompt {
    margin-top: 15px; /* 버튼과의 간격 */
    text-align: center;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

.login-prompt a {
    color: var(--primary-color); /* 기본 링크 색상 */
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.login-prompt a:hover {
    color: var(--hover-color);
}

/* 다크 모드에서의 로그인 링크 색상 */
[data-theme="dark"] .login-prompt-link {
    color: #5dade2; /* 밝은 파란색 계열 */
    text-decoration-color: #5dade2; /* 밑줄 색상도 동일하게 */
}

[data-theme="dark"] .login-prompt-link:hover {
    color: #85c1e9; /* 호버 시 조금 더 밝게 */
    text-decoration-color: #85c1e9;
}