/* MOT History Checker Styles */

/* Import Fira Code font */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

.mot-checker-container {
    max-width: 1000px;
    margin: 2em auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5em;
    border: 1px solid #e1e5e9;
    color: #000000;
}

.mot-checker-header {
    text-align: center;
    margin-bottom: 2.5em;
}

.mot-checker-header h2 {
    color: #000000;
    font-size: 2.2em;
    font-weight: 700;
    margin: 0 0 0.5em 0;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-checker-header p {
    color: #333333;
    font-size: 1.1em;
    margin: 0;
    line-height: 1.6;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-checker-form {
    margin-bottom: 2em;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75em;
    font-size: 1.1em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.form-input {
    width: 100%;
    padding: 1em 1.2em;
    font-size: 1.1em;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #000000;
}

.form-input:focus {
    outline: none;
    border-color: #22c55e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-input::placeholder {
    color: #6b7280;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.input-hint {
    font-size: 0.9em;
    color: #6b7280;
    margin-top: 0.5em;
    font-style: italic;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    border: none;
    padding: 1.2em 2em;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.mot-result-container {
    margin-top: 2em;
    min-height: 100px;
}

.mot-result {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mot-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1.5em;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 1.5em;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    font-family: 'Fira Code', 'Courier New', monospace;
}

/* Vehicle Overview Section */
.vehicle-overview {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2em;
    margin-bottom: 2em;
    border: 1px solid #e2e8f0;
}

.vehicle-overview h3 {
    color: #000000;
    font-size: 1.5em;
    margin: 0 0 1.5em 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.vehicle-overview h3::before {
    content: "🚗";
    font-size: 1.2em;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
}

.vehicle-item {
    background: white;
    padding: 1.5em;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vehicle-label {
    font-size: 0.9em;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.vehicle-value {
    font-size: 1.1em;
    color: #000000;
    font-weight: 600;
    font-family: 'Fira Code', 'Courier New', monospace;
}

/* MOT Status Section */
.mot-status {
    background: #f0f9ff;
    border-radius: 16px;
    padding: 2em;
    margin-bottom: 2em;
    border: 1px solid #bae6fd;
}

.mot-status h3 {
    color: #000000;
    font-size: 1.5em;
    margin: 0 0 1.5em 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-status h3::before {
    content: "🔍";
    font-size: 1.2em;
}

.mot-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
}

.mot-status-item {
    background: white;
    padding: 1.5em;
    border-radius: 12px;
    border: 1px solid #bae6fd;
    text-align: center;
}

.mot-status-label {
    font-size: 0.9em;
    color: #0369a1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-status-value {
    font-size: 1.2em;
    font-weight: 700;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-status-value.valid {
    color: #059669;
}

.mot-status-value.expired {
    color: #dc2626;
}

.mot-status-value.unknown {
    color: #6b7280;
}

/* Tax Status Section */
.tax-status {
    background: #fefce8;
    border-radius: 16px;
    padding: 2em;
    margin-bottom: 2em;
    border: 1px solid #fde68a;
}

.tax-status h3 {
    color: #000000;
    font-size: 1.5em;
    margin: 0 0 1.5em 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.tax-status h3::before {
    content: "💰";
    font-size: 1.2em;
}

.tax-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
}

.tax-status-item {
    background: white;
    padding: 1.5em;
    border-radius: 12px;
    border: 1px solid #fde68a;
    text-align: center;
}

.tax-status-label {
    font-size: 0.9em;
    color: #92400e;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.tax-status-value {
    font-size: 1.2em;
    font-weight: 700;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.tax-status-value.taxed {
    color: #059669;
}

.tax-status-value.untaxed {
    color: #dc2626;
}

.tax-status-value.unknown {
    color: #6b7280;
}

/* MOT Tests Section */
.mot-tests {
    background: #fefce8;
    border-radius: 16px;
    padding: 2em;
    border: 1px solid #fde68a;
}

.mot-tests h3 {
    color: #000000;
    font-size: 1.5em;
    margin: 0 0 1.5em 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-tests h3::before {
    content: "📋";
    font-size: 1.2em;
}

.mot-tests-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mot-tests-table th {
    background: #f59e0b;
    color: white;
    padding: 1.2em 1em;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-tests-table td {
    padding: 1.2em 1em;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #000000;
}

.mot-tests-table tr:last-child td {
    border-bottom: none;
}

.mot-tests-table tr:nth-child(even) {
    background: #fefce8;
}

.test-result {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.test-result.pass {
    background: #dcfce7;
    color: #166534;
}

.test-result.fail {
    background: #fee2e2;
    color: #991b1b;
}

.test-result.pass::before {
    content: "✅";
}

.test-result.fail::before {
    content: "❌";
}

.test-date {
    font-weight: 600;
    color: #000000;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.test-mileage {
    color: #6b7280;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.test-advisories {
    margin-top: 0.5em;
}

.advisory-item {
    background: #fef3c7;
    color: #92400e;
    padding: 0.5em 0.8em;
    border-radius: 8px;
    font-size: 0.85em;
    margin-bottom: 0.3em;
    border-left: 3px solid #f59e0b;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.failure-reasons {
    margin-top: 0.5em;
}

.failure-item {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.5em 0.8em;
    border-radius: 8px;
    font-size: 0.85em;
    margin-bottom: 0.3em;
    border-left: 3px solid #ef4444;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-disclaimer {
    margin-top: 2em;
    padding: 1.5em;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.mot-disclaimer p {
    color: #64748b;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.6;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-disclaimer a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-disclaimer a:hover {
    text-decoration: underline;
}

/* Loading State */
.mot-loading {
    text-align: center;
    padding: 3em 2em;
    color: #6b7280;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.mot-loading::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1em auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mot-checker-container {
        max-width: 95%;
        margin: 1em auto;
        padding: 2em;
    }
}

@media (max-width: 768px) {
    .mot-checker-container {
        margin: 1em;
        padding: 1.5em;
        border-radius: 12px;
        max-width: calc(100% - 2em);
    }
    
    .mot-checker-header h2 {
        font-size: 1.8em;
    }
    
    .vehicle-grid,
    .mot-status-grid,
    .tax-status-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .mot-tests-table {
        font-size: 0.9em;
    }
    
    .mot-tests-table th,
    .mot-tests-table td {
        padding: 0.8em 0.5em;
    }
    
    .vehicle-overview,
    .mot-status,
    .tax-status,
    .mot-tests {
        padding: 1.5em;
    }
}

@media (max-width: 480px) {
    .mot-checker-container {
        padding: 1em;
        margin: 0.5em;
        max-width: calc(100% - 1em);
    }
    
    .mot-checker-header h2 {
        font-size: 1.5em;
    }
    
    .form-input {
        font-size: 1em;
        padding: 0.8em 1em;
    }
    
    .submit-btn {
        padding: 1em 1.5em;
        font-size: 1em;
    }
    
    .mot-tests-table {
        font-size: 0.8em;
    }
    
    .mot-tests-table th,
    .mot-tests-table td {
        padding: 0.6em 0.3em;
    }
    
    .vehicle-grid,
    .mot-status-grid,
    .tax-status-grid {
        grid-template-columns: 1fr;
        gap: 0.8em;
    }
    
    .vehicle-item,
    .mot-status-item,
    .tax-status-item {
        padding: 1em;
    }
}

/* Print Styles */
@media print {
    .mot-checker-container {
        box-shadow: none;
        border: 1px solid #000;
        max-width: 100%;
    }
    
    .submit-btn,
    .mot-disclaimer {
        display: none;
    }
} 