:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --text: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
    --error: #ef4444;
    --success: #10b981;
    --page-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.containert {
    max-width: 85%;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: var(--page-shadow);
    overflow: hidden;
}

.header-t {
    padding: 32px 24px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.header-t h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary);
    line-height: 1.6;
    font-family: "Space Grotesk", sans-serif;
}

.header-t p {
    color: var(--text);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== FIXED UPLOAD AREA ===== */
.upload-area {
    padding: 24px;
}

.upload-box {
    background: white;
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center; /* Already centered */
    border: 2px dashed var(--border);
    transition: all .3s ease;
    cursor: pointer;
    background-color: var(--bg-light);
}

/* Fix the upload box paragraphs */
.upload-box p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-align: center; /* Add this */
    max-width: 500px; /* Add this */
    margin-left: auto; /* Add this */
    margin-right: auto; /* Add this */
}

/* Specifically target the "Drag & drop" text */
.upload-box > p:first-of-type {
    margin-bottom: 30px; /* Increase spacing */
    line-height: 1.5;
}

/* Specifically target the file info text */
.file-info {
    margin-top: 20px;
    font-size: .9rem;
    color: var(--text-light);
    text-align: center; /* Add this */
    max-width: 400px; /* Add this */
    margin-left: auto; /* Add this */
    margin-right: auto; /* Add this */
}

.upload-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
    border-color: var(--primary);
}

.upload-box.dragover {
    background: #f0f4ff;
    border-color: var(--primary);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.upload-box h3 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 10px;
    text-align: center; /* Ensure centered */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0, #764ba2 100%);
    color: white;
    border: 0;
    padding: 14px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all .3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, var(--primary-hover) 0, #764ba2 100%);
}

/* ===== FIXED VALUABLE CONTENT SECTION ===== */
.valuable-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.6;
    color: var(--text);
    font-family: 'Arial', sans-serif;
}

.valuable-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.valuable-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 15px;
}

/* FIX: Remove max-width constraints and fix text flow */
.valuable-content p {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: left;
    max-width: 100% !important; /* Override any constraints */
}

.valuable-content ul {
    list-style: none;
    padding-left: 25px;
    margin-top: 1rem;
    max-width: 100% !important; /* Override any constraints */
}

.valuable-content ul li {
    position: relative;
    margin-bottom: .75rem;
    line-height: 1.4;
    max-width: 100% !important; /* Override any constraints */
}

.valuable-content ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success);
    position: absolute;
    left: -25px;
    top: 2px;
    font-size: 1rem;
}

.valuable-content strong {
    color: var(--text);
}

.valuable-content a {
    color: var(--primary);
    text-decoration: none;
}

.valuable-content a:hover {
    text-decoration: underline;
}

/* Force text to flow naturally */
.valuable-content * {
    max-width: 100% !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

/* ===== FIXED FAQ SECTION ===== */
.faq-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    background-color: transparent;
    text-align: center; /* Add this to center everything */
}

.faq-container h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    text-align: center; /* Already centered */
}

/* Center the FAQ items container */
.faq-container > div {
    max-width: 800px; /* Limit width for better readability */
    margin: 0 auto; /* Center the FAQ items */
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: left; /* Keep content left-aligned */
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    font-size: 1.1rem;
    transition: background-color .3s ease;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question i {
    font-size: 1rem;
    transition: transform .3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease-out;
    padding: 0 20px;
}

.faq-answer p {
    padding-bottom: 20px;
    margin: 0;
    font-size: 1rem;
    color: var(--text);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===== REST OF THE CSS (keep as is) ===== */
.error-message {
    display: none;
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.error-message.active {
    display: block;
    background: #ffebee;
    color: var(--error);
    border: 2px solid #ffcdd2;
}

.error-message.success {
    background: #e8f5e9;
    color: var(--success);
    border-color: #c8e6c9;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #764ba2);
    width: 0;
    transition: width .3s ease;
}

.progress-text {
    font-size: .9rem;
    color: var(--text-light);
}

.export-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.export-header h3 {
    font-size: 1.4rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.form-select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color .3s ease;
    min-width: 150px;
}

.form-select:focus {
    outline: 0;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text);
    font-size: .95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0, #2e7d32 100%);
    color: white;
    border: 0;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.analysis-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 1px solid var(--border);
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all .3s ease;
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: .95rem;
    color: var(--text-light);
    font-weight: 500;
}

.tabs-container {
    padding: 20px;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.tab-btn {
    background: 0;
    border: 0;
    padding: 12px 24px;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.tab-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-color: var(--border);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0, #764ba2 100%);
    color: white;
    border-color: var(--primary);
}

.tabs-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn .5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.tab-header h3 {
    font-size: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-actions {
    display: flex;
    gap: 10px;
}

.btn-outline {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.content-display {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.content-area {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.content-area.empty-content {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 50px;
}

.metadata-table-container {
    overflow-x: auto;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.metadata-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.metadata-table th {
    background: linear-gradient(135deg, var(--primary) 0, #764ba2 100%);
    color: white;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.metadata-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.metadata-table tr:last-child td {
    border-bottom: 0;
}

.metadata-table tr:hover {
    background: var(--bg-light);
}

.metadata-key {
    font-weight: 600;
    color: var(--text);
    width: 40%;
    border-right: 2px solid var(--border);
}

.metadata-value {
    color: var(--text);
    word-break: break-all;
    max-width: 400px;
}

.empty-row td {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px !important;
}

.search-container {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 300px;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all .3s ease;
    color: var(--text);
}

.search-input:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-options {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text);
    font-size: .95rem;
}

.search-results {
    background: white;
    border-radius: 10px;
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.empty-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--border);
}

.results-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.results-header h4 {
    color: var(--text);
    font-size: 1.3rem;
}

.result-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: .9rem;
    color: var(--text-light);
}

.result-text {
    line-height: 1.6;
    color: var(--text);
}

.highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-card h4 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.chart-container {
    height: 300px;
    position: relative;
}

.images-container {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border);
}

.empty-images {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-images i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--border);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.image-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all .3s ease;
    border: 1px solid var(--border);
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.image-thumbnail {
    height: 150px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
    position: relative;
}

.image-thumbnail span {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: .8rem;
}

.image-info {
    padding: 15px;
}

.image-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.image-meta {
    font-size: .85rem;
    color: var(--text-light);
}

.image-count {
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 500;
}

.keywords-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.keywords-list {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border);
}

.empty-keywords {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-keywords i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--border);
}

.keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword-tag {
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    transition: all .3s ease;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
}

.keyword-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary) 0, #764ba2 100%);
    color: white;
    border-color: var(--primary);
}

.keyword-freq {
    background: var(--bg-light);
    color: var(--primary);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 600;
}

.keyword-tag:hover .keyword-freq {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.keywords-chart {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border);
}

.keywords-chart h4 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn .3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .3s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text);
}

.modal-body {
    padding: 30px;
}

.modal-body img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.modal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.image-details h4 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.image-details p {
    color: var(--text-light);
    font-size: 1rem;
}

.how-to-section-wrapper {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
}

.how-to-section-wrapper h2 {
    font-family: 'Noto Sans', sans-serif;
    text-align: center;
    font-size: 2.2rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-card .step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-card h3 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 1200px) {
    .keywords-container {
        grid-template-columns: 1fr;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .how-to-section-wrapper,
    .valuable-content,
    .faq-container {
        padding: 0 30px;
    }
    .containert {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .containert {
        max-width: 95%;
        margin: 1.5rem auto;
    }
    .header-t h1 {
        font-size: 2.2rem;
    }
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .export-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .modal-body img {
        height: 300px;
    }
    .how-to-section-wrapper,
    .valuable-content,
    .faq-container {
        padding: 0 25px;
        margin: 3rem auto;
    }
}

@media (max-width: 768px) {
    .header-t {
        padding: 24px 20px;
    }
    .header-t h1 {
        font-size: 1.8rem;
    }
    .header-t p {
        font-size: 1rem;
    }
    .upload-box {
        padding: 30px 20px;
    }
    .upload-icon {
        font-size: 3rem;
    }
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }
    .stat-value {
        font-size: 1.8rem;
    }
    .tabs-header {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    .tab-btn {
        white-space: nowrap;
        padding: 10px 15px;
        font-size: .9rem;
    }
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .tab-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .search-box {
        flex-direction: column;
    }
    .search-input {
        min-width: 100%;
    }
    .how-to-section-wrapper,
    .valuable-content,
    .faq-container {
        padding: 0 20px;
        margin: 2.5rem auto;
    }
    .how-to-section-wrapper h2,
    .valuable-content h2,
    .faq-container h2 {
        font-size: 1.8rem;
    }
    .valuable-content h3 {
        font-size: 1.4rem;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .keywords-grid {
        justify-content: center;
    }
    .keyword-tag {
        padding: 10px 16px;
        font-size: .9rem;
    }
    .faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }
    .btn-primary,
    .btn-success {
        width: 100%;
        justify-content: center;
    }
    .how-to-section-wrapper,
    .valuable-content,
    .faq-container {
        padding: 0 15px;
        margin: 2rem auto;
    }
    .valuable-content h2,
    .faq-container h2 {
        font-size: 1.6rem;
    }
    .valuable-content h3 {
        font-size: 1.3rem;
    }
}

@media print {
    .upload-area,
    .export-section,
    .tabs-header,
    .tab-actions,
    .how-to-section-wrapper,
    .valuable-content,
    .faq-container {
        display: none !important;
    }
    .analysis-container {
        box-shadow: none;
        border: 1px solid var(--border);
    }
    .content-area {
        white-space: pre-wrap;
        max-height: none;
        overflow: visible;
    }
}