:root {
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    --accent-light: #818cf8;
    --success-color: #22c55e;
    --whatsapp-color: #25d366;
    --whatsapp-hover: #1da851;
    --telegram-color: #0088cc;
    --telegram-hover: #006da3;
    --card-radius: 8px;
    --btn-radius: 6px;
    --heading-color: inherit;
    --link-color: var(--accent-color);
    --footer-bg: transparent;
    --header-bg: transparent;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link-color);
}

a:hover {
    color: var(--accent-hover);
}

.card {
    border-radius: var(--card-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: bold;
}

.table th,
.table td {
    vertical-align: middle;
}

.kbd {
    font-size: 0.875em;
    background-color: #f7f7f9;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 #bbb;
    padding: 2px 4px;
    font-family: monospace;
}

[data-bs-theme="dark"] .kbd {
    background-color: #2b2b3d;
    border-color: #444;
    box-shadow: inset 0 -1px 0 #333;
    color: #e4e4e7;
}

.hover-effect {
    min-width: 2.5rem;
    min-height: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.method-label {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.method-desc {
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.65;
}

.btn-accent {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: var(--btn-radius);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

.btn-accent:active,
.btn-accent:focus {
    background: var(--accent-hover);
    color: #ffffff;
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: #ffffff;
    border: none;
    border-radius: var(--btn-radius);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    color: #ffffff;
}

.btn-telegram {
    background: var(--telegram-color);
    color: #ffffff;
    border: none;
    border-radius: var(--btn-radius);
}

.btn-telegram:hover {
    background: var(--telegram-hover);
    color: #ffffff;
}

.btn-outline-secondary {
    border-radius: var(--btn-radius);
}

.copy-feedback {
    color: var(--success-color);
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

.share-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.counters-row {
    display: flex;
    gap: 24px;
    font-size: 0.88rem;
    color: var(--bs-secondary-color);
}

.info-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--heading-color);
}

.info-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--heading-color);
}

.info-section p {
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.info-section ol {
    padding-left: 24px;
    margin-top: 8px;
}

.info-section li {
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.65;
}

.unicode-table code {
    color: var(--accent-color);
    white-space: nowrap;
}

[data-bs-theme="dark"] .unicode-table code {
    color: var(--accent-light);
}

.share-section {
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn-social-outline {
    border: 1px solid var(--bs-border-color);
    background: transparent;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-social-outline:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tool-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.custom-gen-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.char-input {
    width: 120px;
    text-align: center;
}

.rounded-table th,
.rounded-table td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

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

header.container {
    background: var(--header-bg);
}

footer {
    background: var(--footer-bg);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

@media (max-width: 576px) {
    .responsive-h1 {
        font-size: 1.12rem;
        font-weight: bold;
    }

    .hover-effect {
        min-width: 2rem;
        min-height: 2rem;
        height: 2rem;
    }
}

@media (min-width: 577px) {
    .hover-effect:hover {
        background-color: hsla(0, 0%, 0%, 0.13);
    }
}

@media (max-width: 768px) {
    .custom-gen-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .char-input {
        width: 100%;
    }

    .share-row {
        flex-direction: column;
    }

    .share-row .btn {
        width: 100%;
    }

    .counters-row {
        flex-direction: column;
        gap: 4px;
    }
}
