* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Login Screen */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-small {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-tiny {
    padding: 4px 6px;
    font-size: 11px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.btn-tiny:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: scale(1.05);
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    display: none;
}

.success-message {
    color: #28a745;
    margin-top: 10px;
    display: none;
}

/* Dashboard */
.header {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #667eea;
}

.header-actions {
    display: flex;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left .btn-secondary {
    margin-left: 0;
}

.directory-grid {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 0 20px 60px;
}

.directory-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #333;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.directory-card i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 18px;
}

.directory-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.directory-card p {
    color: #666;
    line-height: 1.5;
    font-size: 15px;
}

.directory-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(102, 126, 234, 0.25);
}

.placeholder-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-card {
    background: white;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 520px;
}

.placeholder-card i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.placeholder-card h2 {
    margin-bottom: 12px;
    color: #333;
}

.placeholder-card p {
    color: #666;
    line-height: 1.6;
}

.shorts-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.shorts-card,
.shorts-output-card {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    color: #333;
}

.shorts-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #667eea;
}

.shorts-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.shorts-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.shorts-output-card h3 {
    font-size: 18px;
    color: #667eea;
    margin: 0;
}

.shorts-result {
    background: #f8f9ff;
    border: 1px solid #e0e3ff;
    border-radius: 10px;
    padding: 20px;
    min-height: 240px;
    white-space: pre-wrap;
    line-height: 1.6;
    color: #333;
    overflow-y: auto;
}

.shorts-result.loading {
    opacity: 0.7;
    font-style: italic;
}

.shorts-output-card .btn-small {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.shorts-output-card .btn-small:hover {
    background: rgba(102, 126, 234, 0.25);
}

.picture-download-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.picture-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.picture-toolbar .toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.picture-status {
    font-size: 14px;
    color: #555;
}

.picture-filters {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.filter-control input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-control select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d3d5ff;
    font-size: 14px;
    color: #444;
    background: #f8f9ff;
}

.picture-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

.picture-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.picture-table {
    width: 100%;
    border-collapse: collapse;
}

.picture-table thead {
    background: #f0f2ff;
}

.picture-table th,
.picture-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f0f2ff;
}

.picture-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.08);
}

.picture-table tbody tr.selected {
    background: rgba(102, 126, 234, 0.18);
}

.picture-table .empty-cell {
    text-align: center;
    color: #777;
    font-style: italic;
}

.process-txt-wrapper {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.process-txt-input-card,
.process-txt-results-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.process-txt-input-card h2 {
    font-size: 20px;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.process-txt-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

#processTxtInput {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #dfe1ff;
    padding: 16px;
    font-size: 14px;
    resize: vertical;
    min-height: 240px;
    font-family: inherit;
    background: #f8f9ff;
}

.process-txt-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.process-txt-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f8f9ff;
    border: 1px solid #e0e3ff;
}

.summary-label {
    display: block;
    font-size: 12px;
    color: #6b6f9a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.summary-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #4c51bf;
    margin-top: 6px;
}

.process-txt-table-wrapper {
    border: 1px solid #e0e3ff;
    border-radius: 12px;
    overflow: hidden;
}

.process-txt-table {
    width: 100%;
    border-collapse: collapse;
}

.process-txt-table thead {
    background: #f0f2ff;
}

.process-txt-table th,
.process-txt-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2ff;
    font-size: 14px;
    text-align: left;
}

.process-txt-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.08);
}

.process-txt-table .empty-cell {
    text-align: center;
    color: #777;
    font-style: italic;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-badge.success {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.status-badge.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #a97800;
}

.status-badge.danger {
    background: rgba(220, 53, 69, 0.15);
    color: #a3202c;
}

.status-badge.neutral {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
}

.picture-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.picture-actions .btn-small {
    min-width: unset;
}

.picture-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.picture-filename {
    font-size: 12px;
    color: #767676;
}

.picture-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 240px;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    gap: 10px;
    flex: 1;
}

.preview-placeholder i {
    font-size: 42px;
    color: #c4c8ff;
}

.preview-content h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.preview-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.preview-content img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #f0f2ff;
    margin-top: 10px;
}

.inline-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.inline-message.info {
    background: rgba(102, 126, 234, 0.12);
    color: #3949ab;
}

.inline-message.success {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
}

.inline-message.error {
    background: rgba(220, 53, 69, 0.12);
    color: #a3202c;
}

.container {
    max-width: 1800px;
    margin: 20px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    align-items: start;
}

/* Left column container for Settings and Calendar */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.controls-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.control-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.calendar-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topics-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.calendar-section h2, .topics-section h2 {
    margin-bottom: 15px;
    color: #667eea;
    font-size: 18px;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.month-year-display {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    min-width: 200px;
    text-align: center;
}

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

.btn-danger:hover {
    background: #c82333;
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    gap: 8px;
}

.topic-header h3 {
    margin: 0;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.topic-header h3:hover {
    color: #5568d3;
    text-decoration: underline;
}

.topic-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Calendar */
.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.calendar-day {
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.calendar-day:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.has-topics {
    border-color: #667eea;
    background: #f0f4ff;
}

.calendar-day.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.calendar-day.selected .date {
    color: white;
}

.calendar-day.selected .month {
    color: rgba(255, 255, 255, 0.9);
}

.calendar-day.selected .count {
    color: white;
}

.calendar-day.selected.has-topics {
    background: #667eea;
    border-color: #5568d3;
}

.calendar-day .date {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.calendar-day .month {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    margin: 3px 0;
}

.calendar-day .count {
    font-size: 10px;
    margin-top: 3px;
    color: #667eea;
    font-weight: 600;
}

/* Topics List */
.date-filter {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Inline Message */
.inline-message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
    transition: all 0.3s ease;
}

.inline-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.inline-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.inline-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.progress-container {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar.indeterminate {
    width: 50%;
    animation: progressIndeterminate 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@keyframes progressIndeterminate {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

.date-filter input {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

/* Foldable Topic Style */
.topic-folder {
    position: relative;
    border-radius: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.topic-folder:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.topic-folder.selected {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.folder-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
}

.folder-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.folder-toggle:hover {
    transform: scale(1.1);
}

.folder-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    flex: 1;
    word-wrap: break-word;
}

.folder-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.folder-content {
    padding: 0 14px 14px 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    animation: slideDown 0.3s ease-out;
}

.folder-details {
    padding-top: 12px;
}

.detail-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.detail-row strong {
    color: #667eea;
    min-width: 60px;
}

.detail-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-section h4 {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h5 {
    color: #667eea;
    font-size: 13px;
    margin: 0 0 6px 0;
}

.explanation-text {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.video-ideas-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-details-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
}

.no-ideas {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

.tag-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
}

.tag-btn:hover {
    transform: scale(1.1);
}

.tag-btn.copy-topic {
    color: #28a745;
}

.tag-btn.copy-topic:hover {
    background: #28a745;
    color: white;
}

.tag-btn.delete-topic {
    color: #dc3545;
}

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

.tag-btn.generate-ideas {
    color: #667eea;
}

.tag-btn.generate-ideas:hover {
    background: #667eea;
    color: white;
}

/* Source Color Classes */
.source-google-us {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 3px solid #f59e0b;
}

.source-google-tw {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 3px solid #3b82f6;
}

.source-youtube {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 3px solid #ef4444;
}

.source-google {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-left: 3px solid #6366f1;
}

.source-default {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-left: 3px solid #9ca3af;
}

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

.modal.active {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.settings-form h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #667eea;
}

.topic-details {
    margin-top: 20px;
}

.topic-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.video-ideas {
    display: grid;
    gap: 15px;
}

.video-idea {
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 5px;
    position: relative;
    margin-bottom: 10px;
}

.video-idea.used {
    opacity: 0.6;
    background: #e9ecef;
    border-left-color: #6c757d;
}

.video-idea h4,
.video-idea h5 {
    color: #667eea;
    margin-bottom: 10px;
}

.video-idea.used h4,
.video-idea.used h5 {
    color: #6c757d;
}

.idea-title {
    margin-bottom: 8px;
    font-size: 13px;
}

.idea-title strong {
    color: #667eea;
    margin-right: 6px;
}

.chinese-title {
    font-weight: 600;
    color: #333;
}

.idea-prompt {
    margin-bottom: 8px;
    font-size: 13px;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.idea-prompt > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.idea-prompt strong {
    color: #667eea;
    margin-right: 6px;
    flex-shrink: 0;
}

.chinese-prompt {
    color: #555;
    line-height: 1.5;
    flex: 1;
    word-wrap: break-word;
}

.copy-prompt-btn {
    flex-shrink: 0;
    margin-left: auto;
}

.idea-description {
    margin-top: 8px;
    font-size: 12px;
}

.idea-description strong {
    color: #667eea;
    margin-right: 6px;
}

.idea-description p {
    margin: 4px 0 0 0;
    color: #666;
    font-style: italic;
}

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

.idea-header h4 {
    margin: 0;
    flex: 1;
}

.mark-used-btn {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 350px 1fr;
        gap: 15px;
    }
    .process-txt-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calendar {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .controls-section,
    .topics-section {
        position: static;
        max-height: none;
    }

    .picture-content {
        grid-template-columns: 1fr;
    }

    .picture-toolbar {
        align-items: flex-start;
    }

    .picture-filters {
        width: 100%;
        justify-content: space-between;
    }

    .process-txt-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #processTxtInput {
        min-height: 200px;
    }
}

