/* BC Random Number Generator - v1.0.0 */
/* Compatible with Hello Elementor theme */

.bc-rng-wrap {
    max-width: 640px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.bc-rng-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.bc-rng-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}

.bc-rng-subtitle {
    font-size: 0.9rem;
    color: #718096;
    margin: 0 0 1.75rem;
}

/* Form fields */
.bc-rng-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 540px) {
    .bc-rng-fields {
        grid-template-columns: 1fr;
    }
}

.bc-rng-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.bc-rng-field input[type="number"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a202c;
    background: #f7fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.bc-rng-field input[type="number"]::-webkit-inner-spin-button,
.bc-rng-field input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.bc-rng-field input[type="number"]:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
    background: #fff;
}

/* Buttons */
.bc-rng-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    line-height: 1;
    font-family: inherit;
}

.bc-rng-btn:active {
    transform: scale(0.97);
}

.bc-rng-btn-generate {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: #ffffff;
    background: #1a202c;
    border-radius: 8px;
}

.bc-rng-btn-generate:hover {
    background: #2d3748;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bc-rng-btn-icon {
    font-size: 1.15rem;
}

.bc-rng-btn-copy,
.bc-rng-btn-download {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    color: #4a5568;
    background: #edf2f7;
    border-radius: 6px;
}

.bc-rng-btn-copy:hover,
.bc-rng-btn-download:hover {
    background: #e2e8f0;
    color: #1a202c;
}

/* Error */
.bc-rng-error {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #c53030;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
}

/* Results */
.bc-rng-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    animation: bc-rng-fadeIn 0.3s ease;
}

@keyframes bc-rng-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bc-rng-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bc-rng-results-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.bc-rng-actions {
    display: flex;
    gap: 0.5rem;
}

.bc-rng-output {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: #1a202c;
    background: #f7fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.6;
}

.bc-rng-output:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.bc-rng-hint {
    font-size: 0.78rem;
    color: #a0aec0;
    margin: 0.5rem 0 0;
}

/* Toast notification */
.bc-rng-toast {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #276749;
    background: #c6f6d5;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 0.75rem;
    animation: bc-rng-fadeIn 0.25s ease;
}
