* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #f5f5f5;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

/* Modern Header Styles */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #0046ad 0%, #ff0707 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 30% 0);
    opacity: 0.1;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.certified-label {
    margin-left: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.smart-report {
    background: linear-gradient(135deg, #0046ad 0%, #0057d5 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 70, 173, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.smart-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 70, 173, 0.3);
}

.title-section {
    width: 55%;
    position: relative;
    z-index: 1;
}

.report-title {
    font-size: 42px;
    background: linear-gradient(135deg, #0046ad 0%, #0057d5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.2;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 70, 173, 0.1);
}

.feature-icon {
    font-size: 24px;
    color: #0046ad;
    margin-bottom: 15px;
}

.feature-description {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.feature-highlight {
    color: #0046ad;
    font-weight: 600;
    font-size: 15px;
}

/* Car Details Section */
.car-section {
    padding: 40px;
    background: white;
    position: relative;
}

.car-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
    margin-bottom: 30px;
}

.car-image-wrapper {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.car-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-image-wrapper:hover img {
    transform: scale(1.05);
}

.view-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.car-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-details:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.car-name {
    font-size: 32px;
    font-weight: 800;
    color: #0046ad;
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

.car-specs-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.car-specs-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.car-specs {
    margin: 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: transform 0.3s ease, color 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-1px);
    color: #0046ad;
}

.spec-item i {
    color: #0046ad;
    margin-right: 5px;
}

.spec-item:hover i {
    transform: scale(1.1);
}

.car-info-item {
    margin: 10px 0;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.car-info-item i {
    color: #0046ad;
    margin-right: 8px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
    background: white;
}

.info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card:hover .info-icon {
    background: #0046ad;
    color: white;
    transform: scale(1.1);
}

.info-icon {
    color: #0046ad;
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: rgba(0, 70, 173, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Rating Section */
.rating-section {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rating-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.rating-value {
    font-weight: 700;
    font-size: 18px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .container {
        margin: 0 !important;
        box-shadow: none !important;
    }

    .actions {
        display: none !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

.status-indicator {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 100px;
    text-align: center;
}

.status-good {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.status-fair {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.status-poor {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.status-pending {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.checklist-text {
    flex: 1;
}

.checklist-label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.checklist-description {
    font-size: 13px;
    color: #666;
}

/* Add these new styles */
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #0046ad;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 70, 173, 0.1);
}

.checklist-section {
    padding: 40px;
    background: white;
}

.checklist-title {
    font-size: 20px;
    color: #333;
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #0046ad;
}

.image-link {
    background: linear-gradient(135deg, #0046ad 0%, #0057d5 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-left: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 70, 173, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 70, 173, 0.3);
    color: white;
}

.checklist-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Ownership Section Styles */
.ownership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 20px;
}

.ownership-item {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ownership-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ownership-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.ownership-value {
    font-weight: 600;
    color: #0046ad;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 35px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Approval Status Section Styles */
.approval-status-section {
    padding: 40px;
    background: white;
}

.approval-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border-left: 5px solid #666;
}

.approval-card.approved {
    border-left-color: #28a745;
}

.approval-card.pending {
    border-left-color: #ffc107;
}

.approval-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.approval-status i {
    font-size: 24px;
}

.approved .approval-status {
    color: #28a745;
}

.pending .approval-status {
    color: #ffc107;
}

.approval-info {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.info-item i {
    width: 20px;
    color: #0046ad;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 10px;
    }

    .header {
        padding: 20px;
    }

    .top-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .left-section {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .smart-report {
        width: 100%;
        justify-content: center;
    }

    .logo {
        height: 40px;
    }

    .report-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
    }

    .car-section {
        padding: 20px;
    }

    .car-image-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .car-image-wrapper {
        height: 200px;
    }

    .car-details {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .car-name {
        font-size: 24px;
    }

    .car-specs {
        font-size: 12px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }

    .checklist-section {
        padding: 20px;
    }

    .checklist-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .checklist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .status-indicator {
        width: 100%;
        text-align: center;
    }

    .approval-status-section {
        padding: 20px;
    }

    .approval-card {
        padding: 15px;
    }

    .approval-status {
        font-size: 16px;
    }

    .info-item {
        font-size: 12px;
    }

    .spec-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Additional responsive improvements */
@media screen and (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
    }

    .header::before {
        width: 100%;
        clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0);
        opacity: 0.05;
    }

    .title-section {
        width: 100%;
    }

    .report-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .feature-description {
        font-size: 12px;
    }

    .feature-highlight {
        font-size: 13px;
    }

    .car-details {
        padding: 15px;
    }

    .rating-section {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 90%;
        max-width: none;
    }

    .left-section {
        flex-direction: column;
        text-align: center;
    }

    .certified-label {
        margin-left: 0;
        margin-top: 10px;
    }
}

.approval-section {
    margin-right: 1rem;
}

.approve-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.approve-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.2);
}

.approve-btn i {
    font-size: 1.1em;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #1f2937;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.remarks-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

.confirm-btn {
    background: #22c55e;
    border: none;
    color: white;
}

.cancel-btn:hover {
    background: #e5e7eb;
}

.confirm-btn:hover {
    background: #16a34a;
}

.share-section {
    margin: 20px 0;
    text-align: right;
}

.share-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.share-modal .modal-content {
    background: white;
    padding: 0;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.share-modal .modal-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.share-options {
    padding: 20px;
    display: grid;
    gap: 10px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.share-option:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.share-option i {
    font-size: 1.2rem;
    color: var(--primary);
}

.copy-success {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4caf50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}
