/**
 * Nepali Unicode Converter Pro Stylesheet
 * Version: 2.0.2
 * Author: TechSansar.com
 */

:root {
    --nuc-primary-color: #0073e6;
    --nuc-primary-hover: #005bb8;
    --nuc-text-color: #333;
    --nuc-text-light: #666;
    --nuc-border-color: #e0e0e0;
    --nuc-background-color: #f9f9f9;
    --nuc-card-background: #ffffff;
    --nuc-font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --nuc-font-family-nepali: 'Noto Sans Devanagari', sans-serif;
    --nuc-font-family-preeti: 'Preeti', 'Times New Roman', serif;
}

/* Base App Wrapper */
.nuc-app {
    font-family: var(--nuc-font-family-sans);
    color: var(--nuc-text-color);
    background-color: var(--nuc-card-background);
    border: 1px solid var(--nuc-border-color);
    border-radius: 12px;
    margin: 2em auto;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.nuc-header {
    padding: 1rem 1.5rem 0;
    text-align: center;
}

.nuc-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem;
}

/* Tabs Styling */
.nuc-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--nuc-border-color);
}

.nuc-tab-button {
    font-family: var(--nuc-font-family-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border: none;
    border-bottom: 2px solid transparent;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: var(--nuc-text-light);
    margin-bottom: -1px; /* Overlap the container border */
}

.nuc-tab-button:hover {
    color: var(--nuc-primary-color);
}

.nuc-tab-button.active {
    color: var(--nuc-primary-color);
    border-bottom-color: var(--nuc-primary-color);
    font-weight: 600;
}

/* Main Content Area */
.nuc-content-area {
    padding: 1.5rem;
    background-color: var(--nuc-background-color);
}

.nuc-tab-content {
    display: none;
}

.nuc-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Title */
.nuc-area-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nuc-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}

/* Special Characters */
.nuc-special-chars-wrapper {
    background: var(--nuc-card-background);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--nuc-border-color);
    margin-bottom: 1.5rem;
}

.nuc-chars-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nuc-char-btn {
    font-family: var(--nuc-font-family-nepali);
    font-size: 1rem;
    height: 36px;
    width: 36px;
    border: 1px solid var(--nuc-border-color);
    background-color: var(--nuc-background-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nuc-text-color); /* Fix for invisible text */
}

.nuc-char-btn:hover {
    background-color: var(--nuc-primary-color);
    color: white;
    border-color: var(--nuc-primary-color);
}

/* Examples Box */
.nuc-examples-wrapper {
    background-color: #f0f5f0; /* Light green background */
    border: 1px solid #d9e9d9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.nuc-examples-wrapper .nuc-area-title {
    color: #27854d;
}

.nuc-example-content {
    display: none;
}

.nuc-example-content.active {
    display: block;
}

.nuc-examples-wrapper ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.nuc-examples-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--nuc-text-light);
}

.nuc-examples-wrapper li:last-child {
    margin-bottom: 0;
}

.nuc-examples-wrapper code {
    font-family: var(--nuc-font-family-preeti);
    background: #e9f0e9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 1rem;
}

.nuc-examples-wrapper span {
    font-family: var(--nuc-font-family-nepali);
    background: #e9f0e9;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Textarea styling */
.nuc-textarea-wrapper {
    margin-bottom: 1rem;
}

.nuc-textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    border: 1px solid var(--nuc-border-color);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none; /* Disable manual resizing */
    box-sizing: border-box;
    background-color: var(--nuc-card-background);
    overflow-y: hidden; /* Hide scrollbar until needed */
}

.nuc-textarea:focus {
    outline: none;
    border-color: var(--nuc-primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.15);
}

.nuc-textarea.nuc-preeti-font {
    font-family: var(--nuc-font-family-preeti);
    font-size: 1.25rem;
}

.nuc-textarea:not(.nuc-preeti-font) {
    font-family: var(--nuc-font-family-nepali);
}

/* Counters */
.nuc-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--nuc-text-light);
    margin-top: 0.5rem;
    padding-right: 0.25rem;
}

/* Action Buttons */
.nuc-actions-center {
    text-align: center;
    margin: 0.5rem 0;
}

.nuc-actions-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.nuc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--nuc-font-family-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nuc-button-primary {
    background-color: var(--nuc-primary-color);
    color: white;
}
.nuc-button-primary:hover {
    background-color: var(--nuc-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 115, 230, 0.2);
}

.nuc-button-secondary {
    background-color: var(--nuc-card-background);
    color: var(--nuc-text-color);
    border-color: var(--nuc-border-color);
}
.nuc-button-secondary:hover {
    border-color: var(--nuc-text-color);
    background-color: #f5f5f5;
}

.nuc-button-tertiary {
    background-color: transparent;
    color: var(--nuc-text-light);
    border: none;
}
.nuc-button-tertiary:hover {
    color: var(--nuc-text-color);
    background-color: #f0f0f0;
}

/* Live Indicator */
.nuc-live-indicator {
    font-size: 0.8rem;
    font-weight: 500;
    color: #27854d;
    background-color: #eaf6ed;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #c8e6c9;
}

/* Copy Feedback */
.nuc-copy-feedback {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 10px);
    background-color: #2c3338;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 0.9rem;
}
.nuc-copy-feedback.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

