/* ── Surya Sainik TC Portal – Frontend Styles ── */
/* Color palette from school branding:
   Primary green  : #3b4f1e  (dark olive/military green)
   Mid green      : #4e6828
   Gold/yellow    : #c9a227
   Red accent     : #9b1c1c
   Light gold bg  : #f9f3e3
*/

.sss-tc-portal {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 700px;
    margin: 0 auto;
}

/* ── Search box ── */
.sss-tc-search-box {
    background: linear-gradient(135deg, #3b4f1e 0%, #4e6828 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
    border-top: 4px solid #c9a227;
}

.sss-tc-search-box h3 {
    margin: 0 0 6px;
    font-size: 1.3em;
    color: #f5e6a3;
    letter-spacing: .4px;
}

.sss-tc-hint {
    opacity: .88;
    margin: 0 0 18px;
    font-size: .95em;
    color: #e8ddb5;
}

.sss-tc-input-row {
    display: flex;
    gap: 10px;
}

.sss-tc-input-row input[type="text"] {
    flex: 1;
    padding: 11px 16px;
    border: 2px solid #c9a227;
    border-radius: 7px;
    font-size: 1em;
    background: #fff;
    color: #222;
    outline: none;
    transition: border-color .2s;
}

.sss-tc-input-row input[type="text"]:focus {
    border-color: #f5e6a3;
    box-shadow: 0 0 0 3px rgba(201,162,39,.25);
}

.sss-tc-input-row button {
    background: #c9a227;
    color: #1a1a1a;
    border: none;
    padding: 11px 22px;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1em;
    transition: background .2s, transform .1s;
    white-space: nowrap;
}

.sss-tc-input-row button:hover:not(:disabled) {
    background: #e0b830;
    transform: translateY(-1px);
}
.sss-tc-input-row button:disabled { opacity: .65; cursor: default; }

/* ── Messages ── */
.sss-tc-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .95em;
}

.sss-tc-warn  { background: #fef9e7; color: #7d5a00; border-left: 4px solid #c9a227; }
.sss-tc-error { background: #fdecea; color: #7b1c1c; border-left: 4px solid #9b1c1c; }

/* ── Results ── */
#sss-tc-results {
    margin-top: 18px;
}

#sss-tc-results h4 {
    color: #3b4f1e;
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 12px;
}

.sss-tc-card {
    background: #fff;
    border: 1px solid #c9d8a0;
    border-left: 5px solid #3b4f1e;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(59,79,30,.10);
}

.sss-tc-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .93em;
    color: #444;
}

.sss-tc-card-name {
    font-size: 1.1em;
    font-weight: 700;
    color: #3b4f1e;
}

.sss-tc-card-actions {
    display: flex;
    gap: 10px;
}

.sss-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9em;
    transition: opacity .2s, transform .1s;
}

.sss-btn:hover {
    opacity: .88;
    text-decoration: none;
    transform: translateY(-1px);
}

.sss-btn-view {
    background: #f9f3e3;
    color: #4e6828;
    border: 1px solid #c9a227;
}

.sss-btn-download {
    background: #3b4f1e;
    color: #f5e6a3;
    border: 1px solid #3b4f1e;
}

@media (max-width: 480px) {
    .sss-tc-input-row { flex-direction: column; }
    .sss-tc-card      { flex-direction: column; align-items: flex-start; }
}
