/* Main Form Container */
.ats-form-container {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ats-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.ats-form-header h3 {
    color: #333;
    margin-bottom: 10px;
}

.ats-form-header p {
    color: #666;
    font-size: 14px;
}

/* Form Elements */
.ats-form-group {
    margin-bottom: 20px;
    position: relative;
}

.ats-url-input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 100px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.ats-url-input:focus {
    outline: none;
    border-color: #007cba;
}

.ats-platform-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
}

.ats-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
    cursor: default;
}

.ats-icon.youtube {
    background: #ff0000;
}

.ats-icon.tiktok {
    background: #000000;
}

.ats-icon.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

/* Submit Button */
.ats-submit-button {
    width: 100%;
    padding: 14px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.ats-submit-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ats-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner Animation */
.ats-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: ats-spin 1s linear infinite;
}

@keyframes ats-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.ats-error-message {
    padding: 12px;
    background: #fee;
    border-left: 4px solid #dc3232;
    border-radius: 4px;
    color: #dc3232;
    font-size: 14px;
    margin-top: 10px;
}

/* Results Container */
#ats-results-container {
    margin-top: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: ats-fadeIn 0.5s ease;
}

@keyframes ats-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ats-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.ats-results-header h4 {
    margin: 0;
    color: #333;
}

.ats-copy-button {
    padding: 6px 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.ats-copy-button:hover {
    background: #005a87;
}

/* Transcript Content */
.ats-transcript-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    line-height: 1.6;
    font-size: 15px;
    color: #333;
}

.ats-transcript-content::-webkit-scrollbar {
    width: 6px;
}

.ats-transcript-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ats-transcript-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.ats-transcript-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Summary Container */
.ats-summary-container {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.ats-summary-container h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.ats-summary-content {
    color: #555;
    line-height: 1.7;
}

/* Metadata */
.ats-metadata {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #777;
}

.ats-language::before {
    content: "🌐 ";
    margin-right: 5px;
}

.ats-duration::before {
    content: "⏱️ ";
    margin-right: 5px;
}

/* Cached Indicator */
.ats-cached-indicator {
    display: inline-block;
    padding: 2px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {

    .ats-results-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .ats-copy-button {
        align-self: flex-end;
    }
}



/* Template Specific Styles */
.ats-examples-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.ats-examples-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.ats-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.ats-example-card {
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.ats-example-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ats-example-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ats-example-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.ats-example-icon.youtube {
    background: #ff0000;
}

.ats-example-icon.tiktok {
    background: #000000;
}

.ats-example-icon.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.ats-example-platform {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.ats-example-url {
    display: block;
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
}

.ats-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ats-platform-indicator {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ats-platform-hint {
    font-size: 11px;
    color: #888;
    margin-right: 5px;
}

.ats-platform-icons {
    display: flex;
    gap: 3px;
}

.ats-platform-icon {
    opacity: 0.3;
    transition: opacity 0.3s;
}

.ats-platform-icon.active {
    opacity: 1;
}

.ats-platform-icon svg {
    display: block;
}

.ats-form-hint {
    margin-top: 5px;
    text-align: right;
}

.ats-hint-text {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.ats-form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.ats-option-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.ats-option-checkbox input[type="checkbox"] {
    margin: 0;
}

.ats-form-note {
    margin-top: 10px;
    text-align: center;
    color: #888;
    font-size: 12px;
}

.ats-privacy-note {
    display: block;
    color: #666;
    margin-top: 2px;
}

.ats-button-icon {
    display: inline-flex;
    align-items: center;
}

.ats-results-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ats-results-actions {
    display: flex;
    gap: 8px;
}

.ats-action-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.ats-action-button:hover {
    background: #e0e0e0;
    color: #333;
}

.ats-action-button.copied {
    background: #28a745;
    color: white;
}

.ats-action-button svg {
    stroke: currentColor;
}

.ats-results-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.ats-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ats-meta-label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
}

.ats-meta-value {
    font-weight: 600;
    color: #333;
}

.ats-platform-badge,
.ats-language-badge,
.ats-duration-badge {
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 12px;
}

.ats-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.ats-tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.ats-tab-button:hover {
    color: #333;
}

.ats-tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.ats-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ats-tab-pane.active {
    display: block;
}

.ats-statistics-display {
    padding: 20px;
}

.ats-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ats-stat-card {
    padding: 20px;
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.ats-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.ats-stat-label {
    font-size: 14px;
    color: #666;
}

.ats-reading-time {
    padding: 20px;
    background: #f9f9ff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.ats-reading-time h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.ats-time-estimate {
    font-size: 18px;
    color: #555;
}

.ats-time-estimate small {
    font-size: 13px;
    color: #888;
}

.ats-footer-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
}

.ats-cache-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #28a745;
    font-weight: 600;
}

.ats-cache-indicator svg {
    stroke: #28a745;
}

/* Animation for fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ats-examples-grid {
        grid-template-columns: 1fr;
    }

    .ats-results-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .ats-results-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .ats-results-meta {
        flex-direction: column;
        gap: 10px;
    }

    .ats-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ats-footer-note {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .ats-tabs {
        flex-wrap: wrap;
    }

    .ats-tab-button {
        flex: 1;
        text-align: center;
        padding: 8px 5px;
        font-size: 13px;
    }

    .ats-stats-grid {
        grid-template-columns: 1fr;
    }
}



/* AI Features Styles */
.ats-ai-options {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ats-ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ats-ai-header h5 {
    margin: 0;
    color: #333;
}

/* Toggle Switch */
.ats-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.ats-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ats-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.ats-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.ats-toggle-slider {
    background-color: #667eea;
}

input:checked+.ats-toggle-slider:before {
    transform: translateX(26px);
}

/* AI Settings */
.ats-ai-settings {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.ats-ai-template-selector {
    margin-bottom: 15px;
}

.ats-ai-template-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.ats-template-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.ats-custom-prompt-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.ats-custom-prompt {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.ats-custom-prompt:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.ats-prompt-examples {
    margin-top: 10px;
}

.ats-prompt-examples small {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.ats-example-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ats-prompt-example {
    padding: 4px 8px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.ats-prompt-example:hover {
    background: #e0e0e0;
    color: #333;
}

.ats-ai-model-info {
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.ats-ai-status {
    float: right;
    font-weight: 600;
}

/* AI Results Display */
.ats-ai-summary-display {
    padding: 20px;
}

.ats-ai-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ats-ai-model-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ats-ai-model-badge.gemini {
    background: #4285f4;
    color: white;
}

.ats-ai-model-badge.claude {
    background: #d4a574;
    color: white;
}

.ats-ai-model-badge.unknown {
    background: #666;
    color: white;
}

.ats-ai-processing-time {
    font-size: 12px;
    color: #888;
}

.ats-ai-content {
    margin-bottom: 20px;
}

.ats-ai-text {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #333;
}

/* Tweet Thread Format */
.ats-tweet-thread {
    border-left: 3px solid #1da1f2;
    padding-left: 15px;
    margin-left: 5px;
}

.ats-tweet {
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f8fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.ats-tweet:last-child {
    margin-bottom: 0;
}

.ats-tweet-number {
    display: inline-block;
    min-width: 60px;
    font-weight: 600;
    color: #1da1f2;
    font-size: 12px;
}

.ats-tweet-text {
    color: #14171a;
    line-height: 1.4;
}

.ats-single-tweet {
    padding: 15px;
    background: #f5f8fa;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    font-size: 14px;
    line-height: 1.5;
    color: #14171a;
}

/* AI Actions */
.ats-ai-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Prompt Templates in Admin */
.ats-prompt-templates-editor {
    margin-top: 20px;
}

.ats-template-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.ats-template-header {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ats-template-header h4 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.ats-template-content {
    padding: 15px;
    display: none;
}

.ats-template-content.active {
    display: block;
}

.ats-template-preview {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    margin-bottom: 10px;
}

/* AI API Status in Admin */
.ats-ai-status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ats-ai-status-table th,
.ats-ai-status-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.ats-ai-status-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.ats-api-status-active {
    color: #28a745;
    font-weight: 600;
}

.ats-api-status-limited {
    color: #dc3232;
    font-weight: 600;
}

.ats-api-status-inactive {
    color: #6c757d;
    font-weight: 600;
}

/* Loading animation for AI processing */
.ats-ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.ats-ai-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: ats-spin 1s linear infinite;
    margin-bottom: 15px;
}

.ats-ai-loading-text {
    color: #666;
    font-size: 14px;
}

@keyframes ats-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ats-ai-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ats-ai-actions {
        flex-direction: column;
    }

    .ats-ai-actions button {
        width: 100%;
    }
}


/* Combined Results Styles */
.ats-platform-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.ats-platform-badge.youtube {
    background: #ff0000;
    color: white;
}

.ats-platform-badge.tiktok {
    background: #000000;
    color: white;
}

.ats-platform-badge.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
}

/* AI Error Tab */
.ats-ai-error {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #fed7d7;
}

.ats-error-icon {
    font-size: 32px;
}

.ats-error-message {
    color: #c53030;
    font-size: 16px;
    line-height: 1.5;
}

/* Template Modal */
.ats-template-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ats-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ats-modal-content h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.ats-template-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.ats-template-option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ats-template-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.ats-template-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
}

.ats-template-info h5 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 14px;
}

.ats-template-info p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.ats-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ats-modal-cancel {
    padding: 8px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.ats-modal-cancel:hover {
    background: #e9ecef;
    color: #333;
}

/* Cache Indicator */
.ats-cache-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

.ats-cache-indicator svg {
    stroke: #155724;
}

/* Loading Animation for Combined Processing */
.ats-combined-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.ats-loading-steps {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.ats-loading-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ats-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ats-step-icon.active {
    background: #667eea;
    color: white;
}

.ats-step-icon.completed {
    background: #28a745;
    color: white;
}

.ats-step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.ats-step-label.active {
    color: #667eea;
    font-weight: 600;
}

.ats-progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.ats-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* Transcript Statistics */
.ats-statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.ats-stat-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.ats-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.ats-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ats-template-options {
        grid-template-columns: 1fr;
    }

    .ats-loading-steps {
        flex-direction: column;
        gap: 20px;
    }

    .ats-statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ats-modal-content {
        padding: 20px;
        width: 95%;
    }

    .ats-statistics-grid {
        grid-template-columns: 1fr;
    }
}


/* AGGRESSIVE FIX untuk line breaks */
.ats-summary-content {
    display: block !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

.ats-summary-content>* {
    display: block !important;
    margin-bottom: 15px !important;
}

.ats-summary-content .ats-tweet {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    padding: 12px !important;
    background: #f8f9fa !important;
    border-left: 4px solid #667eea !important;
    border-radius: 4px !important;
}

.ats-summary-content .ats-tweet-number {
    display: inline-block !important;
    font-weight: bold !important;
    color: #667eea !important;
    margin-right: 10px !important;
    min-width: 60px !important;
}

.ats-summary-content .ats-tweet-text {
    display: inline !important;
    line-height: 1.5 !important;
}

/* Force line break setelah setiap tweet */
.ats-tweet::after {
    content: "" !important;
    display: block !important;
    clear: both !important;
}

/* Fix untuk emoji */
.emoji,
.wp-smiley {
    display: inline !important;
    vertical-align: middle !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin: 0 2px !important;
}