@charset "UTF-8";

/* ===== Text to PPT Page Styles ===== */

/* ===== CSS Variables ===== */
:root {
    --ttp-primary: #1A56DB;
    --ttp-primary-light: #2C7BE5;
    --ttp-accent: #00C8FF;
    --ttp-bg: #ffffff;
    --ttp-bg-secondary: #f8f9fa;
    --ttp-text: #2D3A4A;
    --ttp-text-secondary: #6c757d;
    --ttp-border: #e2e8f0;
    --ttp-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --ttp-radius: 12px;
    --ttp-radius-sm: 8px;
    --ttp-transition: 0.3s ease;
}

/* ===== Keyframe Animations ===== */
@keyframes ttpFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ttpSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ttpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ttpShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ttpProgressFill {
    0% { width: 0%; }
    20% { width: 15%; }
    40% { width: 35%; }
    60% { width: 55%; }
    80% { width: 75%; }
    95% { width: 88%; }
    100% { width: 92%; }
}

@keyframes ttpFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes ttpGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(26, 86, 219, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(26, 86, 219, 0.6); }
}

/* ===== Page Container ===== */
.ttp-page {
    width: 100%;
    min-height: 100vh;
}

.ttp-page .ttp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* ===== Hero Section ===== */
.ttp-page .ttp-hero {
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ttp-page .ttp-hero-content {
    position: relative;
    z-index: 1;
}

.ttp-page .ttp-hero-icon i {
    font-size: 56px;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: block;
    margin-bottom: 16px;
}

.ttp-page .ttp-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.ttp-page .ttp-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.ttp-page .ttp-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ttp-page .ttp-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Usage Bar ===== */
.ttp-page .ttp-usage-bar {
    margin-bottom: 24px;
}

.ttp-page .ttp-usage-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--card_bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    color: var(--font_2);
}

.ttp-page .ttp-usage-info i {
    color: var(--active);
    font-size: 16px;
}

.ttp-page .ttp-usage-info.admin-mode {
    border-left: 3px solid #10b981;
}

.ttp-page .ttp-usage-info.admin-mode i {
    color: #10b981;
}

.ttp-page .ttp-usage-info .ttp-admin-badge {
    background: #10b981;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.ttp-page .ttp-usage-info.limit-reached {
    border-left: 3px solid #ef4444;
    color: #ef4444;
}

.ttp-page .ttp-usage-info.limit-reached i {
    color: #ef4444;
}

/* ===== Input Section ===== */
.ttp-page .ttp-input-section {
    background: var(--card_bg);
    border-radius: var(--ttp-radius);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    animation: ttpFadeInUp 0.5s ease forwards;
}

.ttp-page .ttp-form-group {
    margin-bottom: 24px;
}

.ttp-page .ttp-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--font_1);
    margin-bottom: 10px;
}

.ttp-page .ttp-form-group label i {
    margin-right: 6px;
    color: var(--active);
}

/* Topic Input */
.ttp-page .ttp-topic-wrap {
    position: relative;
}

.ttp-page .ttp-topic-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(85, 85, 85, 0.2);
    border-radius: 10px;
    background: var(--bg);
    color: var(--font_1);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ttp-page .ttp-topic-input:focus {
    outline: none;
    border-color: var(--active);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Description Textarea */
.ttp-page .ttp-desc-wrap {
    position: relative;
}

.ttp-page .ttp-desc-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid rgba(85, 85, 85, 0.2);
    border-radius: 10px;
    background: var(--bg);
    color: var(--font_1);
    font-size: 14px;
    line-height: 1.8;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ttp-page .ttp-desc-textarea:focus {
    outline: none;
    border-color: var(--active);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.ttp-page .ttp-char-count {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 12px;
    color: var(--font_2);
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
}

.ttp-page .ttp-char-count.warn {
    color: #ef4444;
}

.ttp-page .ttp-min-hint {
    font-size: 12px;
    color: var(--font_2);
    margin-top: 6px;
}

.ttp-page .ttp-min-hint.error {
    color: #ef4444;
}

/* Count Selector (slide count) */
.ttp-page .ttp-count-selector {
    display: flex;
    gap: 10px;
}

.ttp-page .ttp-count-btn {
    padding: 10px 24px;
    border-radius: var(--ttp-radius-sm);
    border: 1px solid rgba(85, 85, 85, 0.25);
    background: var(--bg);
    color: var(--font_1);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ttp-page .ttp-count-btn:hover {
    border-color: var(--active);
    color: var(--active);
}

.ttp-page .ttp-count-btn.active {
    background: var(--active);
    color: #fff;
    border-color: var(--active);
    box-shadow: 0 2px 10px rgba(26, 86, 219, 0.3);
}

/* Theme Selector */
.ttp-page .ttp-theme-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ttp-page .ttp-theme-card {
    border: 2px solid rgba(85, 85, 85, 0.15);
    border-radius: var(--ttp-radius-sm);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg);
}

.ttp-page .ttp-theme-card:hover {
    border-color: var(--active);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ttp-page .ttp-theme-card.active {
    border-color: var(--active);
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.25);
    transform: scale(1.03);
}

.ttp-page .ttp-theme-preview {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.ttp-page .ttp-theme-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--font_1);
}

/* Language Selector */
.ttp-page .ttp-lang-selector {
    display: flex;
    gap: 10px;
}

.ttp-page .ttp-lang-btn {
    padding: 8px 20px;
    border-radius: var(--ttp-radius-sm);
    border: 1px solid rgba(85, 85, 85, 0.25);
    background: var(--bg);
    color: var(--font_1);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ttp-page .ttp-lang-btn:hover {
    border-color: var(--active);
    color: var(--active);
}

.ttp-page .ttp-lang-btn.active {
    background: var(--active);
    color: #fff;
    border-color: var(--active);
    box-shadow: 0 2px 10px rgba(26, 86, 219, 0.3);
}

/* ===== Buttons ===== */
.ttp-page .ttp-action {
    text-align: center;
    margin-bottom: 24px;
}

.ttp-page .ttp-btn-primary {
    padding: 14px 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1A56DB 0%, #2C7BE5 50%, #00C8FF 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ttp-page .ttp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 86, 219, 0.55);
}

.ttp-page .ttp-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: rgba(85, 85, 85, 0.4);
}

.ttp-page .ttp-btn-secondary {
    padding: 12px 28px;
    border-radius: var(--ttp-radius-sm);
    background: var(--bg);
    color: var(--font_1);
    border: 1px solid rgba(85, 85, 85, 0.2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ttp-page .ttp-btn-secondary:hover {
    border-color: var(--active);
    color: var(--active);
}

/* ===== Loading Section ===== */
.ttp-page .ttp-loading {
    background: var(--card_bg);
    border-radius: var(--ttp-radius);
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    animation: ttpFadeInUp 0.5s ease forwards;
}

.ttp-page .ttp-loading-shimmer {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(26, 86, 219, 0.15) 25%, rgba(44, 123, 229, 0.5) 50%, rgba(26, 86, 219, 0.15) 75%);
    background-size: 200% 100%;
    animation: ttpShimmer 2s ease-in-out infinite;
    margin-bottom: 30px;
}

.ttp-page .ttp-loading-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: ttpPulse 1.5s ease-in-out infinite;
}

.ttp-page .ttp-loading-icon i {
    background: linear-gradient(135deg, #1A56DB, #00C8FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ttp-page .ttp-loading-text {
    font-size: 17px;
    color: var(--font_1);
    font-weight: 500;
    margin: 0 0 10px 0;
}

.ttp-page .ttp-loading-hint {
    font-size: 13px;
    color: var(--font_2);
    margin: 0 0 24px 0;
}

.ttp-page .ttp-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(85, 85, 85, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.ttp-page .ttp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1A56DB, #00C8FF);
    border-radius: 2px;
    animation: ttpProgressFill 12s ease-out forwards;
}

/* ===== Outline Section ===== */
.ttp-page .ttp-outline-section {
    animation: ttpSlideIn 0.6s ease forwards;
}

.ttp-page .ttp-outline-header {
    background: var(--card_bg);
    border-radius: var(--ttp-radius);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.ttp-page .ttp-outline-title-edit,
.ttp-page .ttp-outline-subtitle-edit {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--font_1);
    font-family: inherit;
    padding: 6px 10px;
    border-radius: 6px;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.ttp-page .ttp-outline-title-edit {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ttp-page .ttp-outline-subtitle-edit {
    font-size: 15px;
    color: var(--font_2);
}

.ttp-page .ttp-outline-title-edit:hover,
.ttp-page .ttp-outline-subtitle-edit:hover {
    border-color: rgba(85, 85, 85, 0.2);
    background: var(--bg);
}

.ttp-page .ttp-outline-title-edit:focus,
.ttp-page .ttp-outline-subtitle-edit:focus {
    outline: none;
    border-color: var(--active);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Outline Cards */
.ttp-page .ttp-outline-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.ttp-page .ttp-outline-card {
    background: var(--card_bg);
    border-radius: var(--ttp-radius-sm);
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: ttpFadeInUp 0.4s ease forwards;
    opacity: 0;
}

.ttp-page .ttp-outline-card:nth-child(1) { animation-delay: 0.05s; }
.ttp-page .ttp-outline-card:nth-child(2) { animation-delay: 0.1s; }
.ttp-page .ttp-outline-card:nth-child(3) { animation-delay: 0.15s; }
.ttp-page .ttp-outline-card:nth-child(4) { animation-delay: 0.2s; }
.ttp-page .ttp-outline-card:nth-child(5) { animation-delay: 0.25s; }
.ttp-page .ttp-outline-card:nth-child(6) { animation-delay: 0.3s; }
.ttp-page .ttp-outline-card:nth-child(7) { animation-delay: 0.35s; }
.ttp-page .ttp-outline-card:nth-child(8) { animation-delay: 0.4s; }
.ttp-page .ttp-outline-card:nth-child(9) { animation-delay: 0.45s; }
.ttp-page .ttp-outline-card:nth-child(10) { animation-delay: 0.5s; }
.ttp-page .ttp-outline-card:nth-child(11) { animation-delay: 0.55s; }
.ttp-page .ttp-outline-card:nth-child(12) { animation-delay: 0.6s; }

.ttp-page .ttp-outline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.ttp-page .ttp-outline-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 40px;
}

.ttp-page .ttp-outline-card-num {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--active);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttp-page .ttp-outline-card-type-icon {
    font-size: 14px;
    color: var(--font_2);
}

.ttp-page .ttp-outline-card-body {
    flex: 1;
    min-width: 0;
}

.ttp-page .ttp-outline-card-body [contenteditable] {
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 2px 6px;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.ttp-page .ttp-outline-card-body [contenteditable]:hover {
    border-color: rgba(85, 85, 85, 0.2);
    background: var(--bg);
}

.ttp-page .ttp-outline-card-body [contenteditable]:focus {
    border-color: var(--active);
    background: var(--bg);
    box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.1);
}

.ttp-page .ttp-outline-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--font_1);
    margin-bottom: 8px;
}

.ttp-page .ttp-outline-card-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ttp-page .ttp-outline-card-points li {
    font-size: 14px;
    color: var(--font_2);
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.ttp-page .ttp-outline-card-points li::before {
    content: "•";
    color: var(--active);
    font-weight: bold;
    flex-shrink: 0;
}

.ttp-page .ttp-outline-card-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.ttp-page .ttp-outline-col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--font_1);
    margin-bottom: 6px;
}

.ttp-page .ttp-outline-card-delete {
    background: none;
    border: none;
    color: var(--font_2);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.ttp-page .ttp-outline-card-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Outline Summary */
.ttp-page .ttp-outline-summary {
    background: var(--card_bg);
    border-radius: var(--ttp-radius-sm);
    padding: 14px 20px;
    font-size: 13px;
    color: var(--font_2);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Outline Action Bar */
.ttp-page .ttp-outline-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: var(--card_bg);
    border-radius: var(--ttp-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Result Section ===== */
.ttp-page .ttp-result-section {
    animation: ttpSlideIn 0.6s ease forwards;
}

/* Slide Preview Main */
.ttp-page .ttp-slide-preview-main {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    border-radius: var(--ttp-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
    background: #f0f0f0;
}

.ttp-page .ttp-slide-preview-main .ttp-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Slide type specific styles */
.ttp-page .ttp-slide-content.slide-title {
    text-align: center;
}

.ttp-page .ttp-slide-content.slide-title h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #fff;
}

.ttp-page .ttp-slide-content.slide-title p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.ttp-page .ttp-slide-content.slide-section {
    text-align: center;
}

.ttp-page .ttp-slide-content.slide-section h2 {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.ttp-page .ttp-slide-content.slide-content-type {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 56px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 12px;
}

.ttp-page .ttp-slide-content.slide-content-type .ttp-slide-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

.ttp-page .ttp-slide-content.slide-content-type h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding: 0 24px;
}

.ttp-page .ttp-slide-content.slide-content-type ul {
    list-style: none;
    padding: 0 24px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.ttp-page .ttp-slide-content.slide-content-type ul li {
    font-size: 1em;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttp-page .ttp-slide-content.slide-content-type ul li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ttp-page .ttp-slide-content.slide-two-column {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 60px;
}

.ttp-page .ttp-slide-content.slide-two-column .ttp-slide-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

.ttp-page .ttp-slide-content.slide-two-column h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 20px 0;
    width: 100%;
}

.ttp-page .ttp-slide-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.ttp-page .ttp-slide-col h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid;
}

.ttp-page .ttp-slide-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ttp-page .ttp-slide-col ul li {
    font-size: 0.9em;
    padding: 5px 0;
}

.ttp-page .ttp-slide-content.slide-ending {
    text-align: center;
}

.ttp-page .ttp-slide-content.slide-ending h2 {
    font-size: 2.4em;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Navigation Controls */
.ttp-page .ttp-slide-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.ttp-page .ttp-slide-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(85, 85, 85, 0.2);
    background: var(--card_bg);
    color: var(--font_1);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ttp-page .ttp-slide-nav-btn:hover {
    border-color: var(--active);
    color: var(--active);
    background: var(--bg);
}

.ttp-page .ttp-slide-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ttp-page .ttp-slide-indicator {
    font-size: 14px;
    color: var(--font_2);
    font-weight: 500;
}

/* Thumbnail Strip */
.ttp-page .ttp-slide-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 4px;
    margin-bottom: 20px;
    scrollbar-width: thin;
}

.ttp-page .ttp-slide-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.ttp-page .ttp-slide-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.ttp-page .ttp-slide-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(85, 85, 85, 0.2);
    border-radius: 3px;
}

.ttp-page .ttp-slide-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 67.5px; /* 16:9 */
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.ttp-page .ttp-slide-thumb:hover {
    border-color: var(--active);
    transform: translateY(-2px);
}

.ttp-page .ttp-slide-thumb.active {
    border-color: var(--active);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

.ttp-page .ttp-slide-thumb-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    padding: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.ttp-page .ttp-slide-thumb-content span {
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Result Actions */
.ttp-page .ttp-result-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card_bg);
    border-radius: var(--ttp-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.ttp-page .ttp-result-info {
    font-size: 13px;
    color: var(--font_2);
    text-align: center;
    margin-bottom: 16px;
}

/* ===== Toast ===== */
.ttp-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    text-align: center;
}

.ttp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ttp-toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.ttp-toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.ttp-toast.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .ttp-two-col-container {
        grid-template-columns: 1fr;
    }
    .ttp-preview-points-grid {
        grid-template-columns: 1fr;
    }

    .ttp-page .ttp-container {
        padding: 20px 16px 50px;
    }

    .ttp-page .ttp-hero {
        padding: 40px 16px;
    }

    .ttp-page .ttp-hero h1 {
        font-size: 26px;
    }

    .ttp-page .ttp-hero-icon i {
        font-size: 46px;
    }

    .ttp-page .ttp-hero-desc {
        font-size: 14px;
    }

    .ttp-page .ttp-input-section {
        padding: 20px;
    }

    .ttp-page .ttp-theme-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .ttp-page .ttp-count-selector {
        flex-wrap: wrap;
    }

    .ttp-page .ttp-btn-primary {
        width: 100%;
        padding: 14px 24px;
        justify-content: center;
    }

    .ttp-page .ttp-outline-actions {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .ttp-page .ttp-outline-actions .ttp-btn-primary,
    .ttp-page .ttp-outline-actions .ttp-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .ttp-page .ttp-result-actions {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .ttp-page .ttp-result-actions .ttp-btn-primary,
    .ttp-page .ttp-result-actions .ttp-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .ttp-page .ttp-outline-card-columns {
        grid-template-columns: 1fr;
    }

    .ttp-page .ttp-slide-content.slide-title h2 {
        font-size: 1.4em;
    }

    .ttp-page .ttp-slide-content.slide-content-type h2,
    .ttp-page .ttp-slide-content.slide-two-column h2 {
        font-size: 1.2em;
    }

    .ttp-page .ttp-slide-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ttp-page .ttp-slide-content {
        padding: 20px;
    }

    .ttp-page .ttp-slide-content.slide-content-type,
    .ttp-page .ttp-slide-content.slide-two-column {
        padding-top: 36px;
    }

    .ttp-page .ttp-usage-info {
        flex-wrap: wrap;
        font-size: 13px;
    }

    .ttp-page .ttp-loading {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .ttp-page .ttp-hero h1 {
        font-size: 22px;
    }

    .ttp-page .ttp-hero-icon i {
        font-size: 40px;
    }

    .ttp-page .ttp-tag {
        font-size: 11px;
        padding: 3px 10px;
    }

    .ttp-page .ttp-outline-card {
        flex-direction: column;
        gap: 10px;
    }

    .ttp-page .ttp-outline-card-left {
        flex-direction: row;
    }

    .ttp-page .ttp-slide-thumb {
        width: 90px;
        height: 50.6px;
    }
}

/* ===== Dark Mode Enhancements ===== */
@media (prefers-color-scheme: dark) {
    .ttp-page .ttp-input-section,
    .ttp-page .ttp-loading,
    .ttp-page .ttp-outline-header,
    .ttp-page .ttp-outline-card,
    .ttp-page .ttp-outline-actions,
    .ttp-page .ttp-result-actions {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }

    .ttp-page .ttp-topic-input,
    .ttp-page .ttp-desc-textarea {
        border-color: rgba(255, 255, 255, 0.15);
    }

    .ttp-page .ttp-count-btn,
    .ttp-page .ttp-lang-btn {
        border-color: rgba(255, 255, 255, 0.15);
    }

    .ttp-page .ttp-theme-card {
        border-color: rgba(255, 255, 255, 0.12);
    }

    .ttp-page .ttp-btn-secondary {
        border-color: rgba(255, 255, 255, 0.15);
    }

    .ttp-page .ttp-slide-nav-btn {
        border-color: rgba(255, 255, 255, 0.15);
    }

    .ttp-page .ttp-usage-info {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }

    .ttp-toast {
        background: #444;
    }
}

/* ===== Accessibility ===== */
.ttp-page .ttp-btn-primary:focus,
.ttp-page .ttp-btn-secondary:focus,
.ttp-page .ttp-count-btn:focus,
.ttp-page .ttp-lang-btn:focus,
.ttp-page .ttp-theme-card:focus,
.ttp-page .ttp-topic-input:focus,
.ttp-page .ttp-desc-textarea:focus,
.ttp-page .ttp-slide-nav-btn:focus {
    outline: 2px solid var(--active);
    outline-offset: 2px;
}

.ttp-page .ttp-btn-primary:focus:not(:focus-visible),
.ttp-page .ttp-btn-secondary:focus:not(:focus-visible),
.ttp-page .ttp-count-btn:focus:not(:focus-visible),
.ttp-page .ttp-lang-btn:focus:not(:focus-visible),
.ttp-page .ttp-theme-card:focus:not(:focus-visible),
.ttp-page .ttp-slide-nav-btn:focus:not(:focus-visible) {
    outline: none;
}

/* ===== Outline Edit - New Rich Structure Styles ===== */

/* 大纲编辑 - 卡片头部 */
.ttp-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--ttp-border);
}
.ttp-card-num {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--active, var(--ttp-primary));
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ttp-card-type-icon {
    font-size: 14px;
    color: var(--ttp-text-secondary);
}
.ttp-card-type-label {
    font-size: 12px;
    color: var(--ttp-text-secondary);
    font-weight: 500;
}
.ttp-card-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--ttp-text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1;
}
.ttp-card-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* 大纲编辑 - 卡片主体 */
.ttp-card-body {
    display: flex;
    flex-direction: column;
}
.ttp-edit-title {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 6px;
    border: 1px solid var(--ttp-border);
    border-radius: var(--ttp-radius-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--ttp-text);
    background: var(--ttp-bg);
    font-family: inherit;
    transition: border-color var(--ttp-transition);
    box-sizing: border-box;
}
.ttp-edit-title:focus {
    border-color: var(--ttp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* 大纲编辑 - 描述输入 */
.ttp-edit-description {
    width: 100%;
    min-height: 60px;
    padding: 8px 12px;
    margin: 8px 0;
    border: 1px solid var(--ttp-border);
    border-radius: var(--ttp-radius-sm);
    background: var(--ttp-bg-secondary);
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    color: var(--ttp-text);
    transition: border-color var(--ttp-transition);
    box-sizing: border-box;
}
.ttp-edit-description:focus {
    border-color: var(--ttp-primary);
    outline: none;
}

/* 大纲编辑 - 要点列表 */
.ttp-points-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}
.ttp-point-item {
    padding: 8px;
    background: var(--ttp-bg-secondary);
    border-radius: var(--ttp-radius-sm);
    border: 1px solid var(--ttp-border);
}
.ttp-point-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ttp-point-bullet {
    color: var(--ttp-primary);
    font-size: 10px;
    flex-shrink: 0;
}
.ttp-edit-point-label {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ttp-text);
    background: transparent;
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
}
.ttp-edit-point-label:focus {
    border-color: var(--ttp-primary);
    outline: none;
    background: var(--ttp-bg);
}

/* 大纲编辑 - 要点详情和指标 */
.ttp-edit-point-detail {
    width: 100%;
    min-height: 40px;
    padding: 6px 10px;
    margin: 4px 0;
    border: 1px solid var(--ttp-border);
    border-radius: 4px;
    background: var(--ttp-bg);
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
    font-family: inherit;
    color: var(--ttp-text-secondary);
    box-sizing: border-box;
}
.ttp-edit-point-metric {
    width: 100%;
    padding: 4px 10px;
    margin: 2px 0 8px;
    border: 1px dashed var(--ttp-border);
    border-radius: 4px;
    background: transparent;
    font-size: 12px;
    color: var(--ttp-primary);
    font-weight: 600;
    box-sizing: border-box;
}
.ttp-edit-point-metric::placeholder {
    color: var(--ttp-text-secondary);
    font-weight: 400;
    font-style: italic;
}

/* 大纲编辑 - subtitle输入 */
.ttp-edit-subtitle {
    width: 100%;
    padding: 6px 12px;
    margin: 4px 0;
    border: 1px solid var(--ttp-border);
    border-radius: var(--ttp-radius-sm);
    background: var(--ttp-bg-secondary);
    font-size: 13px;
    color: var(--ttp-text-secondary);
    font-style: italic;
    font-family: inherit;
    box-sizing: border-box;
}

/* 大纲编辑 - 演讲备注 */
.ttp-speaker-notes {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--ttp-border);
}
.ttp-notes-label {
    display: block;
    font-size: 12px;
    color: var(--ttp-text-secondary);
    margin-bottom: 4px;
}
.ttp-notes-label i {
    margin-right: 4px;
}
.ttp-edit-notes {
    width: 100%;
    min-height: 50px;
    padding: 6px 10px;
    border: 1px solid var(--ttp-border);
    border-radius: 4px;
    background: var(--ttp-bg-secondary);
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
    font-family: inherit;
    color: var(--ttp-text-secondary);
    box-sizing: border-box;
}

/* 大纲编辑 - 双栏容器 */
.ttp-two-col-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}
.ttp-edit-col-title {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 6px;
    border: 1px solid var(--ttp-border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ttp-primary);
    background: var(--ttp-bg);
    font-family: inherit;
    box-sizing: border-box;
}

/* ===== Preview - New Rich Structure Styles ===== */

/* 预览 - 标题栏 */
.ttp-preview-title-bar {
    padding: 16px 24px;
    border-radius: 4px 4px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
}
.ttp-preview-title-bar span {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

/* 预览 - 描述段落 */
.ttp-preview-description {
    display: flex;
    align-items: flex-start;
    padding: 10px 24px;
    gap: 10px;
}
.ttp-preview-desc-bar {
    width: 3px;
    min-height: 20px;
    border-radius: 2px;
    flex-shrink: 0;
    align-self: stretch;
}
.ttp-preview-description p {
    margin: 0;
    font-size: 9px;
    line-height: 1.5;
    color: var(--ttp-text-secondary);
    font-style: italic;
}

/* 预览 - 卡片式要点 */
.ttp-preview-points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 24px;
}
.ttp-preview-point-card {
    display: flex;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ttp-preview-card-bar {
    width: 3px;
    flex-shrink: 0;
}
.ttp-preview-card-content {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.ttp-preview-point-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--ttp-text);
    line-height: 1.3;
}
.ttp-preview-point-detail {
    font-size: 7px;
    color: var(--ttp-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ttp-preview-point-metric {
    font-size: 7px;
    font-weight: 700;
    text-align: right;
    margin-top: 2px;
}

/* 预览 - section副标题 */
.ttp-preview-section-subtitle {
    font-size: 8px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* content类型预览适配 - 使用新标题栏后调整布局 */
.ttp-page .ttp-slide-content.slide-content-type .ttp-preview-title-bar ~ .ttp-preview-description,
.ttp-page .ttp-slide-content.slide-content-type .ttp-preview-title-bar ~ .ttp-preview-points-grid {
    position: relative;
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
    .ttp-page .ttp-outline-card,
    .ttp-page .ttp-input-section,
    .ttp-page .ttp-loading,
    .ttp-page .ttp-outline-section,
    .ttp-page .ttp-result-section {
        animation: none;
        opacity: 1;
    }

    .ttp-page .ttp-loading-icon {
        animation: none;
    }

    .ttp-page .ttp-loading-shimmer {
        animation: none;
    }

    .ttp-page .ttp-progress-fill {
        animation: none;
        width: 50%;
    }

    .ttp-page .ttp-btn-primary,
    .ttp-page .ttp-btn-secondary,
    .ttp-page .ttp-count-btn,
    .ttp-page .ttp-lang-btn,
    .ttp-page .ttp-theme-card,
    .ttp-page .ttp-outline-card,
    .ttp-page .ttp-toast {
        transition: none;
    }

    .ttp-page .ttp-btn-primary:hover,
    .ttp-page .ttp-theme-card:hover,
    .ttp-page .ttp-outline-card:hover {
        transform: none;
    }
}
