/* Vimshottari Dasha Calculator */

.vd-calculator-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 780px;
    margin: 0 auto;
    color: #1a1a2e;
}

/* Page title */
.vd-header {
    margin-bottom: 16px;
}

.vd-title {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a2e;
}

/* Form card */
.vd-form-card {
    background: #fff;
    border: 1px solid #e0e4ed;
    border-radius: 10px;
    padding: 24px 28px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.vd-form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vd-gear { font-size: 1.1rem; }

/* Fields */
.vd-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
    flex: 1;
    position: relative;
}

.vd-field-wrap label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
}

.vd-field-wrap input[type="text"],
.vd-field-wrap input[type="number"],
.vd-field-wrap select {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1a1a2e;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.vd-field-wrap input:focus,
.vd-field-wrap select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

/* Radio group */
.vd-radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 4px 0;
}

.vd-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    cursor: pointer;
    color: #374151;
    font-weight: 400;
}

.vd-radio-label input[type="radio"] {
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 3-column row */
.vd-form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.vd-form-row .vd-field-wrap {
    min-width: 120px;
}

/* City suggestions dropdown */
.vd-place-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.vd-place-suggestions.open { display: block; }

.vd-suggestion-item {
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.vd-suggestion-item:last-child { border-bottom: none; }
.vd-suggestion-item:hover { background: #f0f9ff; color: #1e40af; }

.vd-tz-note {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Generate button */
.vd-form-actions { margin-top: 8px; }

.vd-btn-generate {
    display: inline-block;
    padding: 12px 28px;
    background: #16a34a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.vd-btn-generate:hover { background: #15803d; }
.vd-btn-generate:active { transform: scale(.98); }
.vd-btn-generate:disabled { opacity: .65; cursor: not-allowed; }

/* Error */
.vd-error {
    margin-top: 14px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #b91c1c;
    font-size: 0.9rem;
}

/* ── Results ── */
.vd-birth-info {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #fff;
    padding: 22px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
    border-radius: 10px 10px 0 0;
    border-top: 3px solid #e2b96f;
}

.vd-info-item { text-align: center; }

.vd-info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #a0aec0;
    margin-bottom: 3px;
}

.vd-info-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2b96f;
}

.vd-info-value small {
    font-size: .82rem;
    font-weight: 400;
    color: #c8d6e5;
}

/* Tabs */
.vd-tabs {
    display: flex;
    background: #f4f6fb;
    border-bottom: 2px solid #e0e4ed;
}

.vd-tab {
    flex: 1;
    padding: 13px 8px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
}

.vd-tab.active {
    color: #1a1a2e;
    border-bottom-color: #e2b96f;
    background: #fff;
}

.vd-tab:hover:not(.active) {
    color: #374151;
    background: #e9ecf4;
}

/* Tables */
.vd-tab-content {
    background: #fff;
    border: 1px solid #e0e4ed;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.vd-table-wrap { overflow-x: auto; }

.vd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .89rem;
}

.vd-table thead th {
    background: #1a1a2e;
    color: #e2b96f;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 11px 14px;
    text-align: left;
    white-space: nowrap;
}

.vd-table tbody tr {
    border-bottom: 1px solid #edf0f7;
    transition: background .12s;
}

.vd-table tbody tr:last-child { border-bottom: none; }
.vd-table tbody tr:hover { background: #f8fafc; }
.vd-table tbody td { padding: 11px 14px; vertical-align: middle; }

.vd-planet-name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.vd-planet-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vd-duration-bar-wrap { display: flex; align-items: center; gap: 7px; }

.vd-duration-bar-bg {
    flex: 1;
    height: 5px;
    background: #e9ecf4;
    border-radius: 3px;
    min-width: 50px;
    overflow: hidden;
}

.vd-duration-bar-fill { height: 100%; border-radius: 3px; }
.vd-duration-label { font-size: .78rem; color: #6b7280; white-space: nowrap; }

.vd-row-current {
    background: linear-gradient(90deg,#fffbeb,#fff) !important;
    border-left: 3px solid #e2b96f;
}

.vd-current-badge {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    background: #e2b96f;
    color: #1a1a2e;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-left: 5px;
}

.vd-md-toggle { cursor: pointer; }

.vd-antardasha-sub { display: none; }
.vd-antardasha-sub.open { display: table-row-group; }

.vd-antardasha-sub td {
    background: #f8fafc;
    font-size: .84rem;
    padding: 8px 14px 8px 28px;
}

/* Responsive */
@media (max-width: 600px) {
    .vd-form-card { padding: 18px 14px; }
    .vd-title { font-size: 1.25rem; }
    .vd-form-row { flex-direction: column; gap: 0; }
    .vd-birth-info { padding: 18px 14px; gap: 14px; }
    .vd-tabs .vd-tab { padding: 10px 5px; font-size: .8rem; }
    .vd-table thead th,
    .vd-table tbody td { padding: 9px 9px; }
}
