/**
 * Nepali Date Converter - Stylesheet
 * Author: nepalitheme | https://www.nepalitheme.com
 */

/* ---- Wrapper ---- */
.ndc-wrapper {
    font-family: 'Segoe UI', 'Nunito Sans', Arial, sans-serif;
    max-width: 740px;
    margin: 0 auto 30px;
    padding: 10px 0;
}

.ndc-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e74c3c;
}

/* ---- Cards ---- */
.ndc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px 24px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ndc-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ndc-card-title span {
    font-weight: 400;
    color: #e74c3c;
    font-size: 0.9rem;
}

/* ---- Form Row ---- */
.ndc-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.ndc-form-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 140px;
    min-width: 120px;
}

.ndc-form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ndc-select {
    padding: 9px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.93rem;
    color: #2d3748;
    background-color: #f8fafc;
    appearance: auto;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ndc-select:focus {
    outline: none;
    border-color: #e74c3c;
    background-color: #fff;
}

/* ---- Button ---- */
.ndc-btn-group {
    justify-content: flex-end;
}

.ndc-btn {
    padding: 10px 28px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.ndc-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

.ndc-btn:active {
    transform: translateY(0);
}

/* ---- Error ---- */
.ndc-error {
    margin-top: 10px;
    min-height: 0;
}

.ndc-error-msg {
    color: #c0392b;
    font-size: 0.88rem;
    font-weight: 500;
}

/* ---- Result ---- */
.ndc-result {
    margin-top: 14px;
    animation: ndcFadeIn 0.3s ease;
}

.ndc-result-inner {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px solid #f5c6cb;
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    padding: 14px 18px;
    text-align: center;
}

.ndc-result-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e74c3c;
    margin-bottom: 6px;
}

.ndc-result-date {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
    line-height: 1.3;
}

.ndc-result-from {
    font-size: 0.82rem;
    color: #718096;
}

/* ---- Credit ---- */
.ndc-credit {
    text-align: center;
    font-size: 0.78rem;
    color: #a0aec0;
    margin-top: 6px;
}

.ndc-credit a {
    color: #e74c3c;
    text-decoration: none;
}

.ndc-credit a:hover {
    text-decoration: underline;
}

/* ---- Animation ---- */
@keyframes ndcFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
    .ndc-form-row {
        flex-direction: column;
    }
    .ndc-form-group {
        flex: 1 1 100%;
    }
    .ndc-btn {
        width: 100%;
    }
    .ndc-result-date {
        font-size: 1.1rem;
    }
}
