html, body {
    height: 100%;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.gradient-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2ff 0%, #f3e8ff 50%, #fff6e7 100%);
}

.card {
    border-radius: 1.5rem;
}

.form-control-lg {
    border-radius: 1rem;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fafbff;
}

.form-control-lg:focus {
    box-shadow: 0 0 0 0.2rem rgba(73, 128, 255, 0.15);
    border-color: #497fff;
}

#word-input {
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    min-height: 200px;
}

.btn-lg {
    border-radius: 999px;
    padding: 0.6rem 1.8rem;
}

.btn-outline-secondary {
    border-color: rgba(73, 128, 255, 0.3);
    color: #4a5d8a;
}

.btn-outline-secondary:hover {
    background-color: rgba(73, 128, 255, 0.12);
    color: #3151a2;
}

.gap-2 {
    gap: 0.75rem;
}

.gap-3 {
    gap: 1.25rem;
}

.font-weight-semibold {
    font-weight: 600;
}

#export-options .custom-control {
    margin-right: 1rem;
}

#export-options .custom-control-label {
    cursor: pointer;
}

#results-table thead th {
    border-top: none;
    background-color: #f4f6fb;
    color: #4a5d8a;
    font-weight: 600;
}

#results-table tbody td {
    vertical-align: middle;
    color: #2d3a55;
}

#results-table tbody tr:hover {
    background-color: #f8fbff;
}

.badge-light {
    background: rgba(73, 128, 255, 0.1);
}

.alert-info {
    background-color: rgba(73, 128, 255, 0.1);
    border: none;
    color: #3151a2;
    border-radius: 1rem;
}

.spinner-border-sm {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 767.98px) {
    .btn-lg {
        width: 100%;
    }

    #loading {
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
    }

    #export-options {
        flex-direction: column;
    }
}