/* AI Text Studio Pro - Style */

/* Container */
.ats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--sp5, 24px);
}

.ats-container h1 {
    text-align: center;
    color: var(--brand, #6366f1);
    font-size: 2.5rem;
    margin-bottom: var(--sp6, 32px);
}

/* Tab Navigation */
.tabs-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp3, 14px);
    margin-bottom: var(--sp6, 32px);
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp2, 10px);
    padding: var(--sp4, 18px) var(--sp3, 14px);
    background: var(--glass-bg, rgba(255,255,255,0.7));
    backdrop-filter: blur(var(--blur, 20px));
    border: 2px solid var(--g200, #e5e7eb);
    border-radius: var(--radius-card, 1.2rem);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--g700, #374151);
}

.tab-btn i {
    font-size: 2rem;
    color: var(--g500, #6b7280);
    transition: color 0.3s ease;
}

.tab-btn:hover {
    background: var(--g100, #f3f4f6);
    border-color: var(--brand, #6366f1);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--brand, #6366f1);
    color: white;
    border-color: var(--brand, #6366f1);
}

.tab-btn.active i {
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card */
.card {
    background: var(--glass-bg, rgba(255,255,255,0.7));
    backdrop-filter: blur(var(--blur, 20px));
    border-radius: var(--radius-card, 1.2rem);
    padding: var(--sp5, 24px);
    box-shadow: var(--shadow, 0 4px 32px rgba(0,0,0,0.06));
    margin-bottom: var(--sp5, 24px);
}

.card h2 {
    color: var(--g900, #18181b);
    margin-bottom: var(--sp4, 18px);
    font-size: 1.5rem;
}

.card h3 {
    color: var(--g900, #18181b);
    margin-top: var(--sp5, 24px);
    margin-bottom: var(--sp3, 14px);
    font-size: 1.2rem;
}

.ats-help-text {
    color: var(--g500, #6b7280);
    font-size: 0.95rem;
    margin-bottom: var(--sp4, 18px);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--sp4, 18px);
}

.form-group label {
    display: block;
    margin-bottom: var(--sp2, 10px);
    color: var(--g700, #374151);
    font-weight: 600;
    font-size: 0.95rem;
}

.textarea,
.input,
.select {
    width: 100%;
    padding: var(--sp3, 14px);
    background: var(--g100, #f3f4f6);
    border: 2px solid var(--g200, #e5e7eb);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--g900, #18181b);
    transition: all 0.3s ease;
}

.textarea {
    resize: vertical;
    font-family: 'SF Mono', 'Courier New', monospace;
    line-height: 1.6;
}

.textarea:focus,
.input:focus,
.select:focus {
    outline: none;
    background: white;
    border-color: var(--brand, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--g200, #e5e7eb);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand, #6366f1);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand, #6366f1);
    cursor: pointer;
    border: none;
}

.slider-value {
    text-align: right;
    margin-top: var(--sp2, 10px);
    color: var(--g700, #374151);
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: var(--sp3, 14px) var(--sp5, 24px);
    border: none;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--sp2, 10px);
}

.btn-primary {
    background: var(--brand, #6366f1);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-hov, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--g200, #e5e7eb);
    color: var(--g700, #374151);
}

.btn-secondary:hover {
    background: var(--g300, #d4d4d8);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp3, 14px);
    margin-top: var(--sp4, 18px);
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--sp3, 14px);
    margin-top: var(--sp3, 14px);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp4, 18px);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp4, 18px);
    margin: var(--sp5, 24px) 0;
}

.stat-card {
    background: var(--g100, #f3f4f6);
    padding: var(--sp4, 18px);
    border-radius: 12px;
    text-align: center;
}

.stat-label {
    color: var(--g500, #6b7280);
    font-size: 0.9rem;
    margin-bottom: var(--sp2, 10px);
}

.stat-value {
    color: var(--brand, #6366f1);
    font-size: 1.8rem;
    font-weight: 700;
}

/* Removed Watermarks List */
.removed-list {
    background: var(--g100, #f3f4f6);
    padding: var(--sp4, 18px);
    border-radius: 8px;
    margin-bottom: var(--sp4, 18px);
    max-height: 200px;
    overflow-y: auto;
}

.removed-list p {
    margin: var(--sp2, 10px) 0;
    padding: var(--sp2, 10px);
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--g700, #374151);
}

/* Word Cloud */
.word-cloud {
    background: var(--g100, #f3f4f6);
    padding: var(--sp6, 32px);
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp3, 14px);
}

.word-cloud-item {
    padding: var(--sp2, 10px) var(--sp3, 14px);
    background: var(--brand, #6366f1);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s;
}

.word-cloud-item:hover {
    transform: scale(1.1);
}

/* Table */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--brand, #6366f1);
    color: white;
}

.table th,
.table td {
    padding: var(--sp3, 14px);
    text-align: left;
    border-bottom: 1px solid var(--g200, #e5e7eb);
}

.table tbody tr:hover {
    background: var(--g100, #f3f4f6);
}

/* Keywords */
.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp3, 14px);
}

.keyword-tag {
    padding: var(--sp2, 10px) var(--sp4, 18px);
    background: var(--brand-light, #eef2ff);
    color: var(--brand, #6366f1);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Utility Classes */
.flex {
    display: flex;
}

.items-c {
    align-items: center;
}

.justify-b {
    justify-content: space-between;
}

.mt-3 {
    margin-top: var(--sp4, 18px);
}

.mt-4 {
    margin-top: var(--sp5, 24px);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 27px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--g200, #e5e7eb);
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-thumb {
    position: absolute;
    height: 19px;
    width: 19px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-track {
    background-color: var(--brand, #6366f1);
}

.toggle input:checked + .toggle-track .toggle-thumb {
    transform: translateX(24px);
}

/* Dark Theme */
[data-theme="dark"] .card {
    background: var(--glass-bg-dark, rgba(24,24,27,0.6));
}

[data-theme="dark"] .textarea,
[data-theme="dark"] .input,
[data-theme="dark"] .select {
    background: var(--g200, #3f3f46);
    border-color: var(--g300, #52525b);
    color: var(--g900, #fafafa);
}

[data-theme="dark"] .textarea:focus,
[data-theme="dark"] .input:focus,
[data-theme="dark"] .select:focus {
    background: var(--g100, #27272a);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .removed-list,
[data-theme="dark"] .word-cloud {
    background: var(--g200, #3f3f46);
}

[data-theme="dark"] .removed-list p {
    background: var(--g100, #27272a);
}

[data-theme="dark"] .tab-btn {
    background: var(--g200, #3f3f46);
    border-color: var(--g300, #52525b);
}

[data-theme="dark"] .tab-btn:hover {
    background: var(--g300, #52525b);
}

[data-theme="dark"] .table {
    background: var(--g200, #3f3f46);
}

[data-theme="dark"] .table tbody tr:hover {
    background: var(--g100, #27272a);
}

/* Responsive */
@media (max-width: 768px) {
    .tabs-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .btn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tabs-nav {
        grid-template-columns: 1fr;
    }

    .btn-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
