@charset "UTF-8";

/* ==================== GLOBAL CSS VARIABLES ==================== */

:root {
    /* Colors */
    --color-surface: #ffffff;
    --color-background: #f8fafc;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-success: #10b981;
    --color-success-dark: #059669;
    --color-success-light: rgba(16, 185, 129, 0.1);
    --color-warning: #f59e0b;
    --color-warning-dark: #d97706;
    --color-warning-light: rgba(245, 158, 11, 0.1);
    --color-error: #ef4444;
    --color-error-dark: #dc2626;
    --color-error-light: rgba(239, 68, 68, 0.1);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;

    /* Font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
}

/* ==================== SITEMAP MICROSERVICE ==================== */

.sitemap-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.sitemap-tab {
    position: relative;
    display: inline-block;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    margin-bottom: -2px;
}

.sitemap-tab:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-2px);
}

.sitemap-tab.active {
    background: #fff;
    color: #007bff;
    border-color: #007bff;
    border-bottom: 2px solid #fff;
    font-weight: 600;
    box-shadow: 0 -2px 8px rgba(0, 123, 255, 0.15);
}

.sitemap-report {
    margin: 20px 0;
}

.sitemap-block {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.sitemap-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.sitemap-loc {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-top: 5px;
    word-break: break-all;
}

/* Metadata Stats Cards */
.sitemap-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.sitemap-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.sitemap-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sitemap-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.sitemap-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    word-break: break-all;
}

.sitemap-errors-block,
.sitemap-duplicates-block {
    margin-top: 30px;
}

.sitemap-errors-block h4,
.sitemap-duplicates-block h4 {
    font-size: 18px;
    font-weight: 600;
    color: #dc3545;
    margin: 0 0 15px 0;
    padding: 10px 15px;
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    border-radius: 4px;
}

.sitemap-duplicates-block h4 {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

/* Table Container */
.sitemap-table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-top: 10px;
}

.sitemap-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.sitemap-table thead {
    background: linear-gradient(135deg, #f8f9fc 0%, #e7f0fa 100%);
}

.sitemap-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.sitemap-table th:first-child {
    border-radius: 8px 0 0 0;
}

.sitemap-table th:last-child {
    border-radius: 0 8px 0 0;
}

.sitemap-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.sitemap-table tbody tr:last-child {
    border-bottom: none;
}

.sitemap-table tbody tr:hover {
    background: linear-gradient(90deg, #f8f9fc 0%, #ffffff 100%);
    transform: translateX(2px);
}

.sitemap-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #555;
    vertical-align: middle;
}

.sitemap-table td.error-level {
    width: 80px;
    text-align: center;
}

.sitemap-table .error-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* Responsive sitemap */
@media (max-width: 768px) {
    .sitemap-tabs {
        flex-direction: column;
        gap: 5px;
    }

    .sitemap-tab {
        width: 100%;
        text-align: center;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        margin-bottom: 0;
    }

    .sitemap-tab.active {
        border-bottom: 1px solid #007bff;
    }

    .sitemap-block {
        padding: 20px;
    }

    .sitemap-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sitemap-table-container {
        border-radius: 6px;
    }

    .sitemap-table {
        border: none;
    }

    .sitemap-table thead {
        display: none;
    }

    .sitemap-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 15px;
    }

    .sitemap-table tbody tr:hover {
        transform: none;
    }

    .sitemap-table td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left;
    }

    .sitemap-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 12px;
        color: #666;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .sitemap-table td.error-level {
        width: 100%;
        text-align: left;
        padding-top: 0;
    }

    .sitemap-table td.error-level::before {
        display: inline-block;
        margin-right: 10px;
    }
}

/* ==================== PAGE SPEED MICROSERVICE ==================== */

/* Speed Gauge */
.speed-gauge {
    width: 160px;
    margin: 20px auto;
    text-align: center;
}

.speed-gauge__svg {
    width: 100%;
    height: auto;
}

.speed-gauge__bg {
    fill: none;
    stroke: #f1f4f8;
    stroke-width: 12;
}

.speed-gauge__bar {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease, stroke 0.4s ease;
}

.speed-gauge__value {
    font-size: 22px;
    font-weight: 700;
    fill: #333;
}

.speed-gauge__label {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}


/* CrUX Record */
.crux-record {
    font-family: system-ui, sans-serif;
    margin: 18px 0;
}

.crux-header {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.crux-header > div {
    font-size: 14px;
    color: #555;
}

.crux-header strong {
    color: #333;
}

/* CrUX Fractions */
.crux-fractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.crux-fraction-card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    padding: 12px;
}

.crux-fraction-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.crux-fraction-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crux-fraction-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crux-fraction-label {
    min-width: 60px;
    font-size: 14px;
    color: #555;
}

.crux-fraction-bar__bg {
    flex: 1;
    height: 10px;
    background: #f1f4f8;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.crux-fraction-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #6fdc8c, #27ae60);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.crux-fraction-value {
    font-size: 12px;
    color: #222;
    width: 36px;
    text-align: right;
}


/* ==================== ADAPTIVE MICROSERVICE ==================== */

.adaptive-tester {
    --adaptive-primary: #1890FF;
    --adaptive-secondary: #9C27B0;
    --adaptive-smartphone: #FF9800;
    --adaptive-tablet: #9C27B0;
    --adaptive-desktop: #1890FF;
    --adaptive-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --adaptive-gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Control Panel Container */
.rt-block {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.rt-block:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* Main Controls */
.rt-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rt-url {
    flex: 1;
    min-width: 300px;
    padding: 14px 20px;
    font-size: var(--text-base);
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-family: inherit;
}

.rt-url:focus {
    outline: none;
    border-color: var(--adaptive-primary);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.rt-url::placeholder {
    color: var(--color-text-light);
}

/* Premium Buttons */
.rt-button {
    padding: 14px 24px;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #FFFFFF !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.rt-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.rt-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Device Presets Section */
.rt-presets {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.rt-preset-group {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.rt-preset-group:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Category Headers */
.rt-category {
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 20px;
    text-align: center;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0;
    margin-right: 10px;
}

/* Device Buttons Container */
.rt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Device Size Buttons */
.rt-size-btn {
    padding: 10px 18px;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 20px;
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rt-size-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.rt-size-btn:hover::before {
    left: 100%;
}

.rt-size-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Smartphone buttons */
.rt-preset-group:nth-child(1) .rt-size-btn:hover {
    border-color: var(--adaptive-smartphone);
    background: rgba(255, 152, 0, 0.1);
    color: var(--adaptive-smartphone);
}

/* Tablet buttons */
.rt-preset-group:nth-child(2) .rt-size-btn:hover {
    border-color: var(--adaptive-tablet);
    background: rgba(156, 39, 176, 0.1);
    color: var(--adaptive-tablet);
}

/* Desktop buttons */
.rt-preset-group:nth-child(3) .rt-size-btn:hover {
    border-color: var(--adaptive-desktop);
    background: rgba(24, 144, 255, 0.1);
    color: var(--adaptive-desktop);
}

.rt-size-btn:active {
    transform: scale(0.98);
}

/* Custom Size Inputs */
.rt-custom {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.rt-custom input {
    width: 120px;
    padding: 12px 16px;
    font-size: var(--text-base);
    font-weight: 500;
    text-align: center;
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-family: inherit;
}

.rt-custom input:focus {
    outline: none;
    border-color: var(--adaptive-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.rt-custom input::placeholder {
    color: var(--color-text-light);
    font-weight: 400;
}

/* Remove spinner for number inputs */
.rt-custom input[type="number"]::-webkit-inner-spin-button,
.rt-custom input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rt-custom input[type="number"] {
    appearance: textfield;
}

/* Frame Wrapper */
#rt-frame-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(240, 244, 248, 0) 0%, rgba(240, 244, 248, 1) 100%);
    width: 100%;
}

/* Iframe Styling */
.rt-iframe {
    display: block;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: var(--color-white);
    transition: all 0.3s ease;
}

.rt-iframe:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 992px) {
    .rt-block {
        padding: 30px 20px;
    }

    .rt-controls {
        flex-direction: column;
    }

    .rt-url {
        min-width: 100%;
    }

    .rt-button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .rt-block {
        padding: 20px 15px;
        border-radius: var(--radius-md);
    }

    .rt-category {
        font-size: var(--text-base);
        padding: 10px 15px;
    }

    .rt-buttons {
        gap: 8px;
    }

    .rt-size-btn {
        padding: 8px 14px;
        font-size: var(--text-xs);
    }

    .rt-custom {
        padding: 15px;
    }

    .rt-custom input {
        width: 100px;
        padding: 10px 12px;
        font-size: var(--text-sm);
    }

    #rt-frame-wrapper {
        padding: 20px 0;
    }

    .rt-iframe {
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 576px) {
    .rt-presets {
        gap: 15px;
    }

    .rt-preset-group {
        padding: 15px;
    }

    .rt-buttons {
        gap: 6px;
    }

    .rt-size-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .rt-custom {
        flex-direction: column;
        gap: 10px;
    }

    .rt-custom input {
        width: 100%;
    }
}

/* ===== UTM BLOCK ===== */

#utm-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* ===== PRESETS ===== */

#utmPresets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

#utmPresets label {
    flex: 1 1 100px; /* растут одинаково, минимальная ширина 100px */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f4f6f8;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

#utmPresets input[type="radio"] {
    accent-color: #4f46e5;
    width: 16px; /* размер кружка */
    height: 16px;
    margin: 0; /* убрать стандартные отступы */
}

#utmPresets label:hover {
    background: #e9ecf1;
}

/* ===== LABELS ===== */

#utm-block label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* ===== INPUTS ===== */

#utm-block .analyze__input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#utm-block .analyze__input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ===== RESULT INPUT ===== */

#result {
    background: #f9fafb;
    font-weight: 500;
}

/* ===== BUTTONS ===== */

#utm-block .button {
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

/* ===== COPY MESSAGE ===== */

#copyMsg {
    font-size: 13px;
    font-weight: 500;
    margin-top: -6px;
    display: none;
}

/* ===== ERROR ===== */

#error {
    font-size: 13px;
    margin-top: -6px;
    color: #dc2626;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 640px) {
    #utm-block {
        padding: 16px;
    }

    #utmPresets {
        gap: 6px;
    }

    #utmPresets label {
        font-size: 13px;
        padding: 5px 10px;
    }
}

.translit__delimiter_block {
    margin-bottom: 20px;
}

.translit__select {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.translit__select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.translit__textarea_block {
    margin-bottom: 20px;
}

.translit__textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.translit__textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.translit__buttons {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.translit__copy_msg {
    color: #16a34a; /* зеленый */
    display: none;
    font-size: 14px;
}

.translit__description {
    font-size: 14px;
    color: #374151;
    margin-top: 20px;
}

/* ===============================
   Character Counter
   =============================== */

.char-counter-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.char-counter-wrapper h3 {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
}

/* Punctuation input */
.char-counter-wrapper label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.char-counter-punct {
    max-width: 320px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

/* Textarea */
.char-counter-textarea {
    width: 100%;
    resize: vertical;
    min-height: 180px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.char-counter-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Results */
.char-counter-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.char-counter-results div {
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-counter-results span {
    font-weight: 600;
    color: #111827;
}

/* Buttons */
.char-counter-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.char-counter-buttons button {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f4f6f8;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.char-counter-buttons button:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Mobile */
@media (max-width: 640px) {
    .char-counter-wrapper {
        padding: 16px;
    }

    .char-counter-wrapper h3 {
        font-size: 18px;
    }
}

/* === Password Generator === */

.generator-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
    padding: 40px;
}

.generator-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.generator-controls input[type="range"] {
    width: 100%;
    margin-top: 4px;
}

.generator-controls input[type="checkbox"] {
    accent-color: #4f46e5;
    width: 16px;
    height: 16px;
}

.generator-controls .button {
    margin-top: 8px;
    align-self: flex-start;
    padding: 10px 18px;
    font-size: 14px;
}

/* === Result === */

.generator-result {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    margin-top: 12px;
    padding: 40px;
}

.generator-result input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
}

.generator-result input[type="text"]:focus {
    outline: none;
    border-color: #4f46e5;
    background: #fff;
}

.generator-result .button {
    padding: 10px 14px;
    white-space: nowrap;
}

#copyMsg {
    font-size: 13px;
    color: #16a34a;
}

/* Контейнер поиска и таблицы */
#entities-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

/* Поиск */
#entities-search {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#entities-search:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Таблица */
#entities-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#entities-table th,
#entities-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#entities-table th {
    background-color: #f4f4f5;
    font-weight: 600;
}

#entities-table tr:nth-child(even) {
    background-color: #f9f9fa;
}

#entities-table tr:hover {
    background-color: #eef2ff;
}

/* Сообщение загрузки */
#entities-body td[colspan="3"] {
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    #entities-table th, #entities-table td {
        font-size: 13px;
        padding: 8px 10px;
    }

    #entities-search {
        font-size: 13px;
        padding: 8px 10px;
    }
}

.copy-tooltip {
    display: none;
}

/* Контейнер приложения */
#emoji-app-modern {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Сайдбар с группами и подгруппами */
.emoji-sidebar {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 250px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.emoji-sidebar h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.emoji-sidebar div {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.emoji-sidebar div::-webkit-scrollbar {
    width: 6px;
}

.emoji-sidebar div::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* Основная область с поиском и результатами */
.emoji-main {
    flex: 3 1 400px;
    display: flex;
    flex-direction: column;
}

.emoji-main input[type="text"] {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.emoji-main input[type="text"]:focus {
    border-color: #4f46e5;
    outline: none;
}

/* Сетка эмодзи */
.emoji-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 10px;
}

.emoji-grid-modern span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 6px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.emoji-grid-modern span:hover {
    background: #e9ecf1;
    transform: scale(1.15);
}

/* Уведомление о копировании */
#emoji-copy-notice {
    display: none;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #4ade80;
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
    text-align: center;
    width: fit-content;
    position: absolute;
    z-index: 10;
}

#emoji-groups-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

#emoji-subgroups-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

/* Общий стиль кнопок */
.emoji-sidebar button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #f4f6f8;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* Hover эффект */
.emoji-sidebar button:hover {
    background: #e9ecf1;
    border-color: #b0b0b0;
}

/* Активная кнопка */
.emoji-sidebar button.active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.2);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    #emoji-app-modern {
        flex-direction: column;
    }

    .emoji-sidebar, .emoji-main {
        max-width: 100%;
    }

    #emoji-groups-modern {
        justify-content: center;
    }

    #emoji-subgroups-modern {
        justify-content: center;
    }

    .emoji-sidebar button {
        flex: 1 1 auto;
    }
}

.microservice-userinfo {
    max-width: 700px;
    margin: 20px auto;
    font-family: 'Inter', sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.microservice-userinfo__table {
    width: 100%;
    border-collapse: collapse;
    padding: 20px;
}

.microservice-userinfo__table th,
.microservice-userinfo__table td {
    padding: 12px 16px;
    text-align: left;
}

.microservice-userinfo__table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.microservice-userinfo__table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.microservice-userinfo__table tbody tr:hover {
    background: #f9f9f9;
}

.microservice-userinfo__status-true {
    color: green;
    font-weight: 500;
}

.microservice-userinfo__status-false {
    color: red;
    font-weight: 500;
}

.microservice-userinfo__icon {
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 3px;
    display: inline;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .microservice-userinfo__table th,
    .microservice-userinfo__table td {
        padding: 10px 8px;
    }
}

/* CSS Variables for Content Analysis components - defined globally for all components */
:root {
    --content-color-surface: #ffffff;
    --content-color-surface-alt: #f8fafc;
    --content-color-border: #e2e8f0;
    --content-color-text: #1e293b;
    --content-color-text-muted: #64748b;
    --content-color-text-light: #94a3b8;

    /* Semantic colors */
    --content-color-success: #10b981;
    --content-color-warning: #f59e0b;
    --content-color-error: #ef4444;
    --content-color-info: #3b82f6;

    /* Spacing */
    --content-space-xs: 0.25rem;
    --content-space-sm: 0.5rem;
    --content-space-md: 1rem;
    --content-space-lg: 1.5rem;
    --content-space-xl: 2rem;
    --content-space-2xl: 3rem;

    /* Border radius */
    --content-radius-sm: 0.375rem;
    --content-radius-md: 0.5rem;
    --content-radius-lg: 0.75rem;

    /* Shadows */
    --content-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --content-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --content-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Typography */
    --content-text-xs: 0.75rem;
    --content-text-sm: 0.875rem;
    --content-text-base: 1rem;
    --content-text-lg: 1.125rem;
    --content-text-xl: 1.25rem;
    --content-text-2xl: 1.5rem;
}

/* Common section styles */
.content-section-title {
    font-size: var(--content-text-2xl);
    font-weight: 700;
    color: var(--content-color-text);
    margin: 0 0 var(--content-space-xl) 0;
    padding-top: var(--content-space-lg);
}

.content-section-description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}
