.cs-shortener-container {
 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

.cs-shortener-container h3 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 8px;
}

.cs-shortener-container p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 15px;
}

.cs-shortener-form {
    background: #f9f9f9;
    padding: 22px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.cs-shortener-field {
    margin-bottom: 16px;
}

.cs-shortener-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
    font-size: 14px;
}

.cs-shortener-field input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cs-shortener-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.cs-shortener-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, transform 0.1s;
}
.cs-shortener-button:hover:not(:disabled) {
    background-color: #005a87;
}
.cs-shortener-button:active:not(:disabled) {
    transform: scale(0.98);
}
.cs-shortener-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#cs-shortener-loading {
    color: #0073aa;
    font-weight: 500;
    margin-top: 16px;
    text-align: center;
}

/* Блок результата */
.cs-shortener-output-wrapper {
    margin-top: 16px;
}
.cs-shortener-output-wrapper label {
    display: block;
    font-weight: 600;
    color: #222;
    font-size: 14px;
    margin-bottom: 6px;
}

#cs-shortener-error {
    color: #dc3545;
    background: #ffe6e6;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
    margin-top: 10px;
    font-size: 13px;
}

/* Адаптив для мобильных */
@media (max-width: 520px) {
    .cs-shortener-container {
        padding: 0 12px;
    }
    .cs-shortener-field input,
    .cs-shortener-button {
        width: 100%;
    }
}
/* ── v4.0: стили для новых полей и статистики ── */

.cs-shortener-field small {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 12px;
}

#cs-shortener-qr img {
    display: block;
}

#cs-shortener-code-hint {
    padding: 8px 12px;
    background: #f0f8ff;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
}

/* Статистика */
.cs-stats-block {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
}

.cs-stats-row {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    word-break: break-all;
}

.cs-stats-row:last-child {
    border-bottom: none;
}

.cs-stats-label {
    display: inline-block;
    min-width: 160px;
    color: #666;
    font-weight: 600;
}

.cs-stats-qr {
    margin-top: 15px;
    text-align: center;
}

#cs-stats-password-field {
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ffc107;
}
/* Статистика: карточки сводки */
.cs-stats-overview {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.cs-stat-card {
    background: #fff;
    padding: 16px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    min-width: 180px;
}
.cs-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}
.cs-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #0073aa;
}
.cs-stat-link {
    color: #0073aa;
    text-decoration: underline;
    word-break: break-all;
}

/* Таблица логов */
.cs-stats-table {
    width: 100%;
    border-collapse: collapse;
}
.cs-stats-table th, .cs-stats-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 13px;
}
.cs-stats-table th {
    background: #f8f9fa;
    color: #555;
}
.cs-stats-table tr:hover {
    background: #fafafa;
}
#cs-stats-qr-download {
    transition: background .2s;
}
#cs-stats-qr-download:hover {
    background: #00517e;
}
