/** ==============================================
* ============== LOOKUP PAGE ===================
* ==============================================
*/

.vin-lookup-container {
    padding: 50px 20px;
}

.vin-lookup-card { 
    max-width: 800px;
    margin: 0 auto;
    background: #fff; 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

/* --- Headers & Stats --- */
.vin-landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.vin-stats-row {
    display: flex;
    gap: 15px;
}

.vin-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    border: 1px solid;
}

.spec-badge {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #bbdefb;
}

.hist-badge {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.vin-badge.empty {
    opacity: 0.6;
    text-decoration: line-through;
}

/* --- Forms & Inputs --- */
.vin-form {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vin-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

/* --- Landing Page / Confirmation Box --- */
.vin-confirmation-box {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.confirm-text {
    color: #666;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.vin-display-large {
    font-size: 2em;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 2px;
    color: #333;
    margin-bottom: 25px;
    background: #fff;
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* --- Dual Action Layout --- */
.vin-dual-form {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.action-block {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-note {
    font-size: 0.8em;
    color: #999;
    margin-top: 5px;
}

.vin-dual-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* --- Buttons --- */
.vin-button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-decode, .btn-history {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
    color: white;
}

.btn-decode {
    background: #0047ab;
}

.btn-history {
    background: #B22222;
}

.large-btn {
    padding: 15px;
    font-size: 1.1em;
}

.btn-decode:hover, .btn-history:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-decode:disabled, .btn-history:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* --- Alerts --- */
.vin-alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.vin-alert.info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.vin-alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.vin-alert.error {
    background: #fff5f5;
    color: red;
    border: 1px solid red;
}

/* --- Results List --- */
.vin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    margin-top: 30px;
    padding-bottom: 10px;
}

.vin-make-logo {
    height: 40px;
    width: auto;
}

.vin-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vin-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f4f4f4;
}

.spec-label {
    color: #666;
    font-weight: 400;
    width: 45%;
}

.spec-value {
    color: #000;
    font-weight: 600;
    width: 45%;
    text-align: right;
}

/** ===============================================
* ============= CAR HISTORY TAB =================
* ===============================================
*/

.vin-history-container {
    margin-bottom: 30px;
    clear: both;
}

.vin-history-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #D3D3D3;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.vin-history-info {
    flex: 2;
    min-width: 250px;
}

.vin-history-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.vin-history-info h4 i {
    color: #CD853F;
    margin-right: 5px;
}

.vin-history-info p {
    font-size: 15px;
    color: #000;
    margin: 0;
}

.vin-history-button {
    background: #1E90FF;
    color: #fff !important;
    padding: 12px 25px; 
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.vin-history-button:hover {
    background: #fff;
    color: #000000 !important;
    border: 1px solid #000 !important;
    border-color: #000 !important;
    padding: 11px 25px; /* minus 1px in padding because of the added border */
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.vin-code {
    font-family: monospace;
    letter-spacing: 0.1px;
    margin-left: 8px;
    font-weight: bold;
}

.vin-history-button i.fa-external-link-alt {
    margin-left: 10px;
    font-size: 11px;
}