/* ============================================================
   Terabyte Warranty Manager — Frontend Styles
   ============================================================ */

.tbwm-container {
    max-width: 680px;
    margin: 40px auto;
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Header */
.tbwm-header-block {
    text-align: center;
    margin-bottom: 32px;
}

.tbwm-brand {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #e63946;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tbwm-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

/* Form */
.tbwm-form-block {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}

.tbwm-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tbwm-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s;
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    background: #fff;
}

.tbwm-input:focus {
    border-color: #e63946;
}

.tbwm-btn {
    padding: 14px 28px;
    background: #e63946;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: 'Tahoma', 'Arial', sans-serif;
    white-space: nowrap;
}

.tbwm-btn:hover  { background: #c1121f; }
.tbwm-btn:active { transform: scale(.98); }
.tbwm-btn:disabled { background: #aaa; cursor: default; }

/* Error */
.tbwm-error-msg {
    margin-top: 14px;
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
}

/* Result */
.tbwm-result {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

.tbwm-status-banner {
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.tbwm-status-valid    { background: #d4edda; color: #155724; }
.tbwm-status-expiring { background: #fff3cd; color: #856404; }
.tbwm-status-expired  { background: #f8d7da; color: #721c24; }

.tbwm-result-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.tbwm-result-table tr:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.tbwm-result-table td {
    padding: 14px 20px;
    font-size: 14px;
}

.tbwm-label {
    color: #666;
    font-weight: 600;
    width: 40%;
    background: #fafafa;
}

.tbwm-value {
    color: #1a1a2e;
    font-weight: 500;
}

/* Login notice */
.tbwm-login-notice {
    padding: 20px;
    background: #f0f4ff;
    border: 1px solid #c3d3ff;
    border-radius: 8px;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .tbwm-input-group { flex-direction: column; }
    .tbwm-btn { width: 100%; }
    .tbwm-container { margin: 20px 16px; }
}
