/* Car Tracking Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8f4f8 100%);
    min-height: 100vh;
}

.header-section {
    background: #ffffff;
    padding: 25px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.default-header-table {
    width: 100%;
    border-collapse: collapse;
}

.default-header-table td {
    padding: 10px 20px;
    vertical-align: middle;
}

.default-header-table .company-name-ar,
.default-header-table .company-name-en {
    font-size: 25px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    width: 35%;
}

.default-header-table .logo-cell {
    text-align: center;
    width: 30%;
}

.default-header-table .logo-cell img {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
}

.default-header-table .label-cell {
    font-size: 14px;
    color: #000000;
    font-weight: 600;
    text-align: center;
}

.main-content {
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.search-card {
    text-align: center;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.search-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5f7a 0%, #086972 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(26, 95, 122, 0.3);
}

.search-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.search-title {
    font-size: 20px;
    color: #1a5f7a;
    margin-bottom: 5px;
    font-weight: 700;
}

.search-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 18px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    background: #f8f9fc;
}

.search-input:focus {
    border-color: #1a5f7a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.search-btn {
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a5f7a 0%, #086972 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(26, 95, 122, 0.3);
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.4);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.results-section {
    display: none;
}

.results-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    background: #ffffff;
    color: #000000;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.results-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-header h3 svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}

.status-message {
    color: #ff0707;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    flex: 1;
}

.plate-badge {
    background: linear-gradient(135deg, #1a5f7a 0%, #086972 100%);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.results-body {
    padding: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.info-item {
    background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #1a5f7a;
}

.info-item.full-width {
    grid-column: span 2;
}

.info-item.highlight {
    background: linear-gradient(135deg, #1a5f7a 0%, #086972 100%);
    color: #fff;
}

.info-item.highlight .info-label {
    color: rgba(255,255,255,0.8);
}

.info-item.highlight .info-value {
    color: #fff;
}

.info-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #1a5f7a 0%, #086972 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.info-item.highlight .info-icon {
    background: rgba(255,255,255,0.2);
}

.info-icon svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.info-label {
    font-size: 22px;
    color: #888;
    margin-bottom: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.info-value {
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.info-value.status-active {
    color: #28a745;
}

.info-value.status-pending {
    color: #ffc107;
}

.error-message {
    display: none;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a5f7a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-item.full-width {
        grid-column: span 1;
    }

    .search-form {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .results-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .default-header-table .company-name-ar,
    .default-header-table .company-name-en {
        font-size: 12px;
    }

    .default-header-table .label-cell {
        font-size: 10px;
    }

    .default-header-table .logo-cell img {
        max-width: 80px;
        max-height: 60px;
    }
}
