/*
 * Result Checker 10th Class 2026 — Frontend stylesheet
 * Professional green + gold theme. Inherits theme font.
 */

.rc10-tool, .rc10-tool * { box-sizing: border-box; }

.rc10-tool {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
    color: #1f2937;
    margin: 1.75rem 0;
    max-width: 100%;
}

/* ===== Card ===== */
.rc10-card {
    --rc10-accent: #0e7a52;
    --rc10-accent-2: #0b6b48;
    --rc10-gold: #f4b400;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 12px 30px -12px rgba(15,23,42,.12);
}

/* ===== Header ===== */
.rc10-head {
    position: relative;
    background: linear-gradient(135deg, var(--rc10-accent) 0%, var(--rc10-accent-2) 100%);
    color: #fff;
    padding: 22px 22px 0;
}
.rc10-head-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 14px; padding-bottom: 20px;
}
.rc10-head-text { flex: 1; min-width: 0; }
.rc10-head-caption {
    font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
    opacity: .82; margin-bottom: 6px;
}
.rc10-head-title {
    font-size: 19px; font-weight: 800; line-height: 1.3; margin: 0; color: #fff; letter-spacing: -.2px;
}
.rc10-head-date {
    text-align: right; flex-shrink: 0; padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,.2);
}
.rc10-date-label {
    display: block; font-size: 10px; letter-spacing: .7px; text-transform: uppercase;
    opacity: .8; font-weight: 600; margin-bottom: 2px;
}
.rc10-date-value { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rc10-head-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--rc10-gold) 0%, var(--rc10-gold) 40%, transparent 100%);
}

/* ===== Body ===== */
.rc10-body { padding: 20px 22px 22px; }

/* ===== Selected (master) ===== */
.rc10-step { margin-bottom: 4px; }
.rc10-selected {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
    padding: 12px 14px; margin: 16px 0 4px;
}
.rc10-selected-name { font-weight: 700; font-size: 15px; color: #065f46; }
.rc10-selected-meta { font-size: 12px; color: #047857; margin-top: 2px; }
.rc10-dot { margin: 0 6px; opacity: .6; }

/* ===== Tabs ===== */
.rc10-tabs {
    display: flex; gap: 4px; padding: 4px; background: #f1f5f9;
    border-radius: 10px; margin: 16px 0 18px;
}
.rc10-tab {
    flex: 1; background: transparent; border: none; padding: 10px 6px; margin: 0;
    font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer;
    border-radius: 7px; white-space: nowrap; font-family: inherit;
    transition: background .18s, color .18s, box-shadow .18s;
}
.rc10-tab:hover { color: #0f172a; }
.rc10-tab.is-active {
    background: #fff; color: var(--rc10-accent); box-shadow: 0 1px 2px rgba(15,23,42,.08);
}

/* ===== Panels ===== */
.rc10-panel[hidden] { display: none; }

/* ===== Form ===== */
.rc10-label {
    display: block; font-size: 11px; color: #64748b; font-weight: 700;
    letter-spacing: .6px; text-transform: uppercase; margin: 0 0 8px;
}
.rc10-req { color: #dc2626; }
.rc10-input {
    width: 100%; padding: 13px 15px; font-size: 15px; font-family: inherit; font-weight: 500;
    border: 2px solid #e2e8f0; border-radius: 10px; background: #fcfcfd; color: #0f172a;
    transition: border-color .18s, background .18s, box-shadow .18s;
    appearance: none; -webkit-appearance: none;
}
.rc10-input::placeholder { color: #94a3b8; font-weight: 400; }
.rc10-input:focus {
    outline: none; border-color: var(--rc10-accent); background: #fff;
    box-shadow: 0 0 0 4px rgba(14,122,82,.12);
}
.rc10-input.is-invalid {
    border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.12);
    animation: rc10-shake .3s;
}
@keyframes rc10-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

/* OR divider */
.rc10-or {
    display: flex; align-items: center; text-align: center;
    margin: 14px 0; color: #94a3b8; font-size: 12px;
}
.rc10-or::before, .rc10-or::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.rc10-or span { padding: 0 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }

/* ===== Select ===== */
.rc10-select-wrap { position: relative; margin-top: 8px; }
.rc10-select {
    padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center;
}

/* ===== Button ===== */
.rc10-btn {
    width: 100%; margin-top: 16px; padding: 14px 18px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    background: linear-gradient(135deg, var(--rc10-accent) 0%, var(--rc10-accent-2) 100%);
    color: #fff; font-size: 15px; font-weight: 700; font-family: inherit;
    border: none; border-radius: 10px; cursor: pointer;
    box-shadow: 0 4px 14px -4px rgba(14,122,82,.5);
    transition: transform .12s, box-shadow .18s, opacity .18s;
}
.rc10-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -4px rgba(14,122,82,.6); }
.rc10-btn:active { transform: translateY(0); }
.rc10-btn .rc10-spin { display: none; animation: rc10-rotate .8s linear infinite; }
.rc10-btn.is-loading { opacity: .85; cursor: progress; }
.rc10-btn.is-loading .rc10-spin { display: inline-block; }
.rc10-btn.is-loading svg:not(.rc10-spin) { display: none; }
@keyframes rc10-rotate { to { transform: rotate(360deg); } }

/* ===== Gazette info ===== */
.rc10-gazette-info {
    display: flex; gap: 10px; align-items: flex-start;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
    padding: 12px 14px; margin-bottom: 16px; font-size: 13px; color: #92400e; line-height: 1.5;
}
.rc10-gazette-info svg { flex-shrink: 0; margin-top: 2px; color: #b45309; }

/* ===== SMS ===== */
.rc10-sms-intro { font-size: 13.5px; color: #475569; margin: 0 0 14px; }
.rc10-sms-row { display: flex; gap: 12px; }
.rc10-sms-cell {
    flex: 1; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px;
}
.rc10-sms-cap {
    font-size: 10px; text-transform: uppercase; letter-spacing: .6px;
    color: #64748b; font-weight: 700; margin-bottom: 6px;
}
.rc10-sms-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc10-sms-line code {
    font-size: 14px; font-weight: 700; color: #0f172a; background: none; padding: 0;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.rc10-sms-code { color: var(--rc10-accent) !important; }
.rc10-copy {
    flex-shrink: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
    width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
    color: #64748b; cursor: pointer; transition: all .15s;
}
.rc10-copy:hover { border-color: var(--rc10-accent); color: var(--rc10-accent); }
.rc10-copy.is-copied { background: var(--rc10-accent); border-color: var(--rc10-accent); color: #fff; }

/* ===== Loading (10s countdown) ===== */
.rc10-loading { margin-top: 16px; }
.rc10-loading[hidden] { display: none; }
.rc10-loading-bar {
    height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden;
}
.rc10-loading-fill {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--rc10-accent), var(--rc10-gold));
    border-radius: 99px;
}
.rc10-loading-text {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 8px; font-size: 12.5px; color: #475569; font-weight: 500;
}
.rc10-count {
    background: var(--rc10-accent); color: #fff; font-weight: 700;
    min-width: 26px; height: 22px; padding: 0 7px; border-radius: 99px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}

/* ===== Notice ===== */
.rc10-notice {
    display: flex; gap: 9px; align-items: flex-start; margin-top: 16px;
    padding: 11px 13px; background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 9px; font-size: 12.5px; color: #166534; line-height: 1.5;
}
.rc10-notice-icon { flex-shrink: 0; margin-top: 1px; color: #16a34a; }
.rc10-pill {
    display: inline-block; background: var(--rc10-accent); color: #fff;
    font-weight: 700; padding: 1px 8px; border-radius: 99px; font-size: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .rc10-head-title { font-size: 17px; }
    .rc10-sms-row { flex-direction: column; }
    .rc10-tab { font-size: 12px; padding: 9px 4px; }
    .rc10-body { padding: 18px 16px 18px; }
    .rc10-head { padding: 18px 16px 0; }
}

/* ===== Dark mode ===== */
@media (prefers-color-scheme: dark) {
    .rc10-tool { color: #e5e7eb; }
    .rc10-card { background: #1e293b; border-color: #334155; }
    .rc10-tabs { background: #0f172a; }
    .rc10-tab { color: #94a3b8; }
    .rc10-tab.is-active { background: #1e293b; color: #fff; }
    .rc10-input { background: #0f172a; border-color: #334155; color: #f1f5f9; }
    .rc10-input:focus { background: #0f172a; }
    .rc10-sms-cell { background: #0f172a; border-color: #334155; }
    .rc10-sms-line code { color: #f1f5f9; }
    .rc10-copy { background: #1e293b; border-color: #334155; }
    .rc10-selected { background: #064e3b33; border-color: #065f46; }
    .rc10-selected-name { color: #6ee7b7; }
    .rc10-selected-meta { color: #34d399; }
    .rc10-or, .rc10-sms-intro { color: #94a3b8; }
    .rc10-loading-bar { background: #334155; }
    .rc10-loading-text { color: #94a3b8; }
    .rc10-gazette-info { background: #422006; border-color: #92400e; color: #fcd34d; }
    .rc10-notice { background: #064e3b33; border-color: #065f46; color: #6ee7b7; }
}
