/* تطبيق خط Tajawal على جميع العناصر في التقرير */
* {
    font-family: 'Tajawal', sans-serif !important;
}

/* ضمان أن الأيقونات تستخدم خط Font Awesome */
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-light, .fa-brands,
[class*="fa-"], [class*="fas"], [class*="far"], [class*="fal"], [class*="fab"] {
    font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free', 'Font Awesome 6 Brands', sans-serif !important;
}

.custom-report-section {
    background-color: #007bff !important; /* أزرق */
    color: white !important; /* الكتابة بيضاء */
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 0 !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 70px !important; /* إضافة مسافة من الأعلى لتجنب الهيدر */
}

.custom-report-section a {
    color: white !important; /* روابط بيضاء */
}

.custom-report-section .btn {
    color: white !important;
}

.custom-report-section .qr-code img {
    width: 90%;
    border-radius: 12px;
    background-color: white;
}












.vehicle-info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
    padding: 2rem;
    margin: 0;
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-top: none;
    position: relative;
    overflow: hidden;
}


.brand-logo-container {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
    transform: translateY(0px);
    }
    50% {
    transform: translateY(-8px);
    }
}

.brand-logo-container:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 123, 255, 0.35);
    animation-play-state: paused;
}

.brand-logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.brand-logo-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 123, 255, 0.35);
}

.brand-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 15px;
    background: white;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
    transform: scale(1);
    }
    50% {
    transform: scale(1.03);
    }
}

.brand-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation-play-state: paused;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #007bff, #0056b3);
    border-radius: 0 2px 2px 0;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.info-card.vin-card::before {
    background: linear-gradient(180deg, #28a745, #20c997);
}

.info-card.brand-card::before {
    background: linear-gradient(180deg, #ffc107, #fd7e14);
}

.info-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3436;
    line-height: 1.4;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

@media (max-width: 768px) {

    .brand-logo-container {
    padding: 1.5rem;
    min-height: 140px;
    border-radius: 15px;
    }
    
    .brand-logo {
    width: 80px;
    height: 80px;
    padding: 12px;
    }
    
    .info-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
    }
    
    .info-value {
    font-size: 1.1rem;
    }
}











/* ---- بطاقـة عصرية بتأثير زجاجي ---- */
.glass-card{
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    background: linear-gradient(135deg,#fff7e9 0%,#fffaf1 60%,#fffbf4 100%);
    border: 1px solid rgba(255, 180, 60, 0.35);
    border-radius: 1.25rem;        /* حواف كبيرة */
    box-shadow: 0 8px 20px rgba(0,0,0,.07);
    max-width: 720px;              /* عرض أقصى للبطاقة */
}

/* نص وأيقونة */
.glass-card h4   { font-size: 1.35rem; color:#b07a14; }
.glass-card p    { font-size: 1rem;   color:#5c4b2a;  line-height:1.45; }
.icon-box img    { width:72px;height:72px; }

/* شاشة صغيرة: توسيط ومحاذاة عمودية */
@media (max-width: 576px){
    .glass-card      { padding:1.5rem; }
    .icon-box        { margin-bottom: .75rem; }
    .glass-card h4,
    .glass-card p    { text-align:center !important; }
}











.vehicle-evaluation .card-header {
    background: linear-gradient(135deg, #1fa455 0%, #25b464 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.vehicle-evaluation .card-header h5 {
    margin: 0;
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}




.evaluation-section-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.evaluation-section {
    margin-bottom: 1rem;
}

.evaluation-section h6 {
    color: #28a745;
    font-weight: 800;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evaluation-section h6 i {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.score-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}



.score-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(40, 167, 69, 0.25);
    border-color: #28a745;
}

.score-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.score-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
}

.score-card:hover .score-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.6);
}

.score-title {
    font-weight: 800;
    color: #2d3436;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.score-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f3f4;
}

.score-badge {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.score-badge.success { 
    background: linear-gradient(135deg, #d4edda, #c3e6cb); 
    color: #155724; 
    border: 2px solid #28a745;
}
.score-badge.info { 
    background: linear-gradient(135deg, #d1ecf1, #bee5eb); 
    color: #0c5460; 
    border: 2px solid #17a2b8;
}
.score-badge.warning { 
    background: linear-gradient(135deg, #fff3cd, #ffeaa7); 
    color: #856404; 
    border: 2px solid #ffc107;
}
.score-badge.danger { 
    background: linear-gradient(135deg, #f8d7da, #f5c6cb); 
    color: #721c24; 
    border: 2px solid #dc3545;
}

.score-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.score-number {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-style: italic;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.no-data i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-data h5 {
    color: #28a745;
    font-weight: 700;
    margin-bottom: 1rem;
}

.no-data p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .vehicle-evaluation .card-header h5 {
        font-size: 1.3rem;
    }
    
    .evaluation-section h6 {
        font-size: 1.1rem;
    }
    
    .score-grid {
        gap: 0.5rem;
    }
    
    .score-card {
        padding: 0.5rem;
    }
    
    .score-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .score-title {
        font-size: 1.1rem;
    }
    
    .score-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
}

@media (max-width: 576px) {
    .score-badge {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 490px) {

    .score-grid {
        grid-template-columns: 1fr;
    }
}






.vehicle-query .card-header {
    background: linear-gradient(135deg, #1f61a4 0%, #2559b4 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.vehicle-query .card-header h5 {
    margin: 0;
    font-weight: 800;
    font-size: 1.5rem;
    margin-right: 10px;
}

.queries-grid {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
}

.query-card {
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    min-width: 250px;
}

.query-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease;
}

.query-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.query-card:hover::before {
    height: 6px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.query-card.has-issue {
    background: #ffffff;
    border: 1px solid #e9ecef;
}

.query-card.has-issue::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.query-card.has-issue:hover {
    background: #ffffff;
    border-color: #dc3545;
}

.query-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.query-card:hover .query-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.query-card.has-issue .query-icon {
    background: #fff5f5;
    border-color: #dc3545;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.2);
}

.query-icon img {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
    object-fit: contain;

}

.query-card:hover .query-icon img {
    transform: scale(1.1);
}

.query-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.query-card:hover .query-title {
    color: #667eea;
}

.query-card.has-issue .query-title {
    color: #dc3545;
}

.query-status {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.query-card.has-issue .query-status {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.query-card:hover .query-status {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.query-card.has-issue:hover .query-status {
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

.query-content {
    text-align: center;
}


/* تحسينات للموبايل */
@media (max-width: 768px) {

    .query-card {
    padding: 1.5rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .query-card.has-issue {
    background: #ffffff;
    border: 1px solid #e9ecef;
    }

    .query-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    background: #f8f9fa;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    flex-shrink: 0;
    }

    .query-card.has-issue .query-icon {
    background: #fff5f5;
    border-color: #dc3545;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.2);
    }

    .query-card .query-icon {
    background: #f8f9fa;
    border-color: #e9ecef;
    }

    .query-card.has-issue .query-icon {
    background: #fff5f5;
    border-color: #dc3545;
    }

    .query-icon img {
    width: 35px;
    height: 35px;
    }

    .query-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
    }

    .query-status {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    margin: 0;
    }

    .query-content {
    text-align: center;
    }
}

@media (max-width: 576px) {
    .query-card {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .query-card.has-issue {
    background: #ffffff;
    border: 1px solid #e9ecef;
    }

    .query-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    flex-shrink: 0;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    }

    .query-card.has-issue .query-icon {
    background: #fff5f5;
    border-color: #dc3545;
    }

    .query-card .query-icon {
    background: #f8f9fa;
    border-color: #e9ecef;
    }

    .query-card.has-issue .query-icon {
    background: #fff5f5;
    border-color: #dc3545;
    }

    .query-icon img {
    width: 30px;
    height: 30px;
    }

    .query-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
    }

    .query-status {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    margin: 0;
    }
}









.battery-analysis .card-header {
    background: linear-gradient(135deg, #1f61a4 0%, #2559b4 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.battery-columns-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1065px;
}

.battery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.battery-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: fit-content;
    min-height: auto;
}


.category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f1f3f4;
}

.category-icon {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}


.category-title {
    font-weight: 800;
    color: #2d3436;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.category-subtitle {
    color: #636e72;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.8;
}

.battery-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    height: fit-content;
}

.battery-info-item {
    height: fit-content;
    min-height: auto;
    border-bottom: 1px solid #f1f3f4;
}




.battery-info-label {
    font-weight: 700;
    color: #2d3436;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    position: relative;
}


.battery-info-value {
    color: #636e72;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
    word-break: break-word;
}

.battery-info-value.score {
    font-weight: 700;
    font-size: 1.2rem;
    color: #ff6b6b;
}

.battery-info-value.percentage {
    color: #4ecdc4;
    font-weight: 700;
}

.battery-info-value.temperature {
    color: #e17055;
    font-weight: 700;
}

.battery-info-value.mileage {
    color: #6c5ce7;
    font-weight: 700;
}

.battery-info-value.date {
    color: #00b894;
    font-weight: 700;
}

.battery-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 2px 10px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 3px;
}

.battery-status.excellent {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.battery-status.good {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.battery-status.warning {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
    box-shadow: 0 4px 12px rgba(253, 203, 110, 0.3);
}

.battery-status.danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.no-battery-data {
    text-align: center;
    padding: 3rem;
    color: #636e72;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.no-battery-data i {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-battery-data h5 {
    color: #ff6b6b;
    font-weight: 700;
    margin-bottom: 1rem;
}

.no-battery-data p {
    color: #636e72;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .battery-categories {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    }
    
    .battery-category {
    padding: 1.3rem;
    }
    
    .category-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    }
    
    .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    }
    
    .category-title {
    font-size: 1.1rem;
    }
    
    .battery-info-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    }
    
    .battery-info-item {
    padding: 1rem;
    }
}




.accident-analysis .card-header {
    background: linear-gradient(135deg, #f1384a 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.accident-analysis .card-header h5 {
    margin: 0;
    font-weight: 700;
}

.damage-location {
    margin-right: 1rem;
    margin-left: 1rem;
    margin-bottom: 1.5rem;
}

.damage-location h6 {
    color: #dc3545;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.damage-location h6 i {
    font-size: 1.2rem;
}

.affected-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.part-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.part-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.damage-details {
    background: rgba(220, 53, 69, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.damage-type {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.damage-type.warning { background: #fff3cd; color: #856404; }
.damage-type.danger { background: #f8d7da; color: #721c24; }
.damage-type.info { background: #d1ecf1; color: #0c5460; }
.damage-type.secondary { background: #e2e3e5; color: #383d41; }
.damage-type.primary { background: #cce5ff; color: #004085; }
.damage-type.success { background: #d4edda; color: #155724; }

.part-ids {
    font-family: 'Tajawal', monospace;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.no-damage {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.no-damage i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.25rem;
}

.status-badge.success { background: #d4edda; color: #155724; }
.status-badge.warning { background: #fff3cd; color: #856404; }
.status-badge.danger { background: #f8d7da; color: #721c24; }


.vehicle-insurance{
    margin-bottom: 50px;
}


.vehicle-insurance .card-header {
    background: linear-gradient(135deg, #379aff 0%, #2669e0 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}


.vehicle-insurance h6{
    text-align: center;
    margin: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 19px;
    color: #2971e5;
}


.insurance-grid {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
}



.insurance-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.insurance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease;
}

.insurance-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.2);
}

.insurance-card:hover::before {
    height: 6px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.insurance-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insurance-card:hover .insurance-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
}

.insurance-icon i {
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.insurance-card:hover .insurance-icon i {
    transform: scale(1.1);
}

.insurance-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    line-height: 1.4;
    transition: all 0.3s ease;
    margin: 5px;
}

.insurance-card:hover .insurance-label {
    color: #007bff;
}

.insurance-value {
    font-size: 1rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 25px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    word-break: break-word;
}

.insurance-card:hover .insurance-value {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.insurance-card.special-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.insurance-card.special-card .insurance-icon {
    background: rgba(255, 255, 255, 0.2);
}

.insurance-card.special-card .insurance-label,
.insurance-card.special-card .insurance-value {
    color: white;
}

/* تصميم سجلات التأمين التفصيلية */
.insurance-records {
    margin-bottom: 2rem;
}

.insurance-record-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.insurance-record-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.record-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007bff;
    margin: 0;
}

.record-status {
    display: flex;
    gap: 0.5rem;
}

.record-details {
    margin-top: 1rem;
}

.detail-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.detail-item strong {
    color: #007bff;
    font-weight: 600;
}

.record-items {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(0, 123, 255, 0.1);
}

.items-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 1rem;
}

.item-detail {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.item-number {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.item-name {
    font-weight: 600;
    color: #2d3436;
}

.item-content {
    padding-left: 1rem;
}

.item-description {
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.item-cost {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-hours {
    color: #ffc107;
    font-weight: 600;
}

@media (max-width: 768px) {
    .record-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    }

    .record-status {
    flex-wrap: wrap;
    }

    .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    }
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
   

    .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    }

    .insurance-card {
    padding: 1.5rem;
    }

    .insurance-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    }

    .insurance-icon i {
    font-size: 1.5rem;
    }

    .insurance-label {
    font-size: 1rem;
    }

    .insurance-value {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
  
    .insurance-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    }

    .insurance-card {
    padding: 1.25rem;
    }

    .insurance-icon {
    width: 50px;
    height: 50px;
    }

    .insurance-icon i {
    font-size: 1.2rem;
    }

    .insurance-label {
    font-size: 0.95rem;
    }

    .insurance-value {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    }
}






.car-data .card-header {
    background: linear-gradient(135deg, #007bff 0%, #004b9b 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}



.car-data-grid {
display: flex;
gap: 1.5px;
margin-top: 2rem;
flex-wrap: wrap;
justify-content: center;
font-size: small;
}

.car-data-card {
border: 1px solid rgb(182 182 182 / 53%);
border-radius: 10px;
height: fit-content;
padding: 5px;
}

.car-data-label {
font-size: 0.95rem;
font-weight: 700;
color: #495057;
margin-bottom: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.8px;
position: relative;
display: flex;
align-items: center;
gap: 0.5rem;
}

.car-data-label::before {
content: '●';
color: #007bff;
font-size: 0.8rem;
}


.car-data-value {
font-size: small;
font-weight: 600;
color: #2d3436;
line-height: 1.5;
word-break: break-word;
padding: 0.5rem 0;
position: relative;
}

.car-data-value.stars {
color: #ffc107;
font-size: 1.3rem;
text-shadow: 0 1px 2px rgba(255, 193, 7, 0.3);
}

.car-data-value.numeric {
font-family: 'Tajawal', monospace;
color: #007bff;
font-weight: 700;
}



.color-display {
display: flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
padding: 0.5rem 0;
}

.color-box {
width: 35px;
height: 35px;
border-radius: 10px;
border: 3px solid #ffffff;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}

.color-box::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transform: translateX(-100%);
transition: transform 0.6s ease;
}

.color-box:hover {
transform: scale(1.15) rotate(5deg);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
border-color: #ffffff;
}

.color-box:hover::before {
transform: translateX(100%);
}

.color-info {
display: flex;
flex-direction: column;
gap: 0.25rem;
}

.color-name {
font-weight: 600;
color: #2d3436;
}

.color-code {
font-size: 0.85rem;
color: #6c757d;
font-family: 'Tajawal', monospace;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {







.car-data-label {
    font-size: 0.85rem;
}

.car-data-value {
    font-size: 1rem;
}

.color-box {
    width: 25px;
    height: 25px;
}
}

@media (max-width: 576px) {




.car-data-label {
    font-size: 0.8rem;
}

.car-data-value {
    font-size: 0.95rem;
}

.color-box {
    width: 20px;
    height: 20px;
}
}





      








 /* تحسين تصميم البطاقات */
.enhanced-card {
    margin-bottom: 2rem;
    position: relative;
}




.enhanced-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}


.enhanced-card .card-header i {
    margin-right: 15px;
}


/* أيقونات مخصصة لكل قسم */
.enhanced-card.general-info .card-header h5::before {
    content: '📊';
}

.enhanced-card.insurance-analysis .card-header h5::before {
    content: '🛡️';
}

.enhanced-card.vehicle-analysis .card-header h5::before {
    content: '🚗';
}



.enhanced-card.car-info .card-header h5::before {
    content: 'ℹ️';
}

.enhanced-card.repair-analysis .card-header h5::before {
    content: '🔧';
}

.enhanced-card.item-results .card-header h5::before {
    content: '✅';
}


.info-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 13px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 279px;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 0 2px 2px 0;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(6px) translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #74ff97;
}

.info-item strong {
    color: #2d3436;
    font-weight: 600;
    display: block;
    margin-left: 0.75rem;
    font-size: 0.95rem;
    position: relative;
}

.info-item span {
    font-size: 1rem;
    line-height: 1.6;
    display: block;
    color: #25b464;
    font-weight: 500;
    border-bottom: 1px solid;
}

.info-item .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.info-item ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.info-item ul li {
    margin-bottom: 0.25rem;
    color: #34495e;
}

/* تحسين التجاوب مع الموبايل */
@media (max-width: 768px) {
    .enhanced-card .card-header {
        padding: 1.25rem;
    }
    
    .enhanced-card .card-header h5 {
        font-size: 1.1rem;
    }
    
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .info-item {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .enhanced-card {
        margin-bottom: 1.5rem;
    }
    
    .enhanced-card .card-header {
        padding: 1rem;
    }
    
    
    .info-item {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .info-item strong {
        font-size: 0.9rem;
    }
    
    .info-item span {
        font-size: 0.95rem;
    }
    
    .info-item .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* تحسينات إضافية للقوائم */
.info-item ul.list-unstyled {
    padding-left: 0;
}

.info-item ul.list-unstyled li {
    background: rgba(116, 185, 255, 0.08);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid #74b9ff;
    color: #636e72;
}

/* تحسينات إضافية للتصميم */
.container {
    max-width: 1300px;
    margin: 0 auto;
}



/* تحسين الألوان حسب نوع البطاقة - ألوان هادئة وجميلة */
.enhanced-card.general-info .card-header {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.enhanced-card.insurance-analysis .card-header {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.enhanced-card.vehicle-analysis .card-header {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.enhanced-card.car-info .card-header {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

.enhanced-card.repair-analysis .card-header {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
}

.enhanced-card.item-results .card-header {
    background: linear-gradient(135deg, #55a3ff 0%, #00b894 100%);
}

.enhanced-card.battery-analysis .card-header {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

/* تحسين الشارات - ألوان هادئة */

.badge.bg-danger {
    background: linear-gradient(135deg, #fd79a8, #e84393) !important;
    border: none;
    box-shadow: 0 2px 6px rgba(253, 121, 168, 0.2);
    color: white;
}

/* تحسين التمرير */
.enhanced-card {
    scroll-margin-top: 2rem;
}

/* تأثيرات التحميل */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enhanced-card:nth-child(2) { animation-delay: 0.2s; }
.enhanced-card:nth-child(3) { animation-delay: 0.3s; }
.enhanced-card:nth-child(4) { animation-delay: 0.4s; }
.enhanced-card:nth-child(5) { animation-delay: 0.5s; }
.enhanced-card:nth-child(6) { animation-delay: 0.6s; }
.enhanced-card:nth-child(7) { animation-delay: 0.7s; }

/* تحسينات إضافية للألوان الهادئة */
.enhanced-card .card-header h5 {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* تحسين ألوان النصوص في العناصر */
.info-item strong {
    background: linear-gradient(135deg, #2d3436, #636e72);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



/* تحسين ألوان الشارات */
.info-item .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}
















.report-info-card,
.contact-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}


.report-info-card:hover,
.contact-info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(40, 167, 69, 0.15);
    border-color: #28a745;
}

.report-info-header,
.contact-info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 100%;
    text-align: center;
}

.report-icon,
.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-icon {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    box-shadow: 0 10px 25px rgba(23, 162, 184, 0.3);
}

.report-info-card:hover .report-icon,
.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.4);
}

.contact-info-card:hover .contact-icon {
    box-shadow: 0 15px 35px rgba(23, 162, 184, 0.4);
}

.report-info-content,
.contact-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.report-title,
.contact-title {
    font-weight: 700;
    color: #2d3436;
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.report-title i,
.contact-title i {
    color: #28a745;
    font-size: 1.2rem;
}

.contact-title i {
    color: #17a2b8;
}

.report-number {
    font-weight: 900;
    color: #28a745;
    margin: 0;
    font-size: 2rem;
    font-family: 'Tajawal', monospace;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.qr-text {
    color: #636e72;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #17a2b8;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 300px;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.contact-item i {
    color: #17a2b8;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-item span {
    color: #2d3436;
    font-weight: 600;
    font-size: 1rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 1rem 0 0 0;
    text-align: center;
    font-style: italic;
}

@media (max-width: 768px) {
    .report-info-card,
    .contact-info-card {
    padding: 2rem;
    min-height: 250px;
    }
    
    .report-info-header,
    .contact-info-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    }
    
    .report-icon,
    .contact-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    }
    
    .report-title,
    .contact-title {
    font-size: 1.2rem;
    }
    
    .report-number {
    font-size: 1.6rem;
    }
    
    .qr-code {
    width: 100px;
    height: 100px;
    }
    
    .contact-details {
    gap: 0.8rem;
    }
    
    .contact-item {
    padding: 0.6rem 1rem;
    }
    
    .contact-item span {
    font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .report-info-card,
    .contact-info-card {
    padding: 1.5rem;
    min-height: 200px;
    }
    
    .report-icon,
    .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    }
    
    .report-title,
    .contact-title {
    font-size: 1.1rem;
    }
    
    .report-number {
    font-size: 1.4rem;
    }
    
    .qr-code {
    width: 80px;
    height: 80px;
    }
}


















.info-grid-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    transition: background-color 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.info-grid-card:hover {
    background-color: #e9ecef;
}

.info-grid-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.info-grid-card h4,
.info-grid-card h5 {
    margin: 8px 0;
}

.has-issue {
    background-color: #f8d7da !important; /* لون أحمر فاتح للتنبيه */
    border: 1px solid #f5c2c7 !important; /* حدود متناسقة */
}


.small-font-section {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: #1a202c;
    background-color: #f5f8ff;
}

.container {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
}

.owner-section, .maintenance-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(25, 39, 52, 0.12);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.owner-header, .maintenance-header {
    background: linear-gradient(90deg, #0052cc 0%, #3380ff 100%);
    color: #fff;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.owner-header h3, .maintenance-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.owner-header p, .maintenance-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.sub-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0052cc;
    border-bottom: 3px solid #3380ff;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    padding: 2rem;
}

.table-responsive-lg {
    overflow-x: auto;
}

table.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 1rem;
    table-layout: fixed;
}

table thead {
    background-color: #e6f0ff;
}

table thead th {
    color: #0052cc;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
    padding: 12px 16px;
}

table tbody td {
    background: #f8fbff;
    padding: 14px 16px;
    vertical-align: top;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

td ul {
    margin: 0;
    padding-right: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 18px;
    white-space: nowrap;
}

.badge-primary { background-color: #0052cc; color: #fff; }
.badge-danger { background-color: #d93025; color: #fff; }
.badge-warning { background-color: #fbbc04; color: #333; }
.badge-info { background-color: #34aaff; color: #fff; }
.badge-secondary { background-color: #777; color: #fff; }

.key-section {
    margin-top: 2rem;
    background: #f0f6ff;
    border-left: 6px solid #0052cc;
    border-radius: 8px;
    padding: 1.5rem 2rem;
}

.key-section h5 {
    color: #0052cc;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    table.table thead th, table.table tbody td {
    font-size: 0.95rem;
    padding: 10px;
    }

    .owner-header, .maintenance-header {
    flex-direction: column;
    align-items: flex-start;
    }
}

@media (max-width: 768px) {
.table-responsive-lg {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.table {
    width: 1000px; /* أو أي عرض كافٍ للجدول الكامل */
}

.owner-header, .maintenance-header {
    flex-direction: column;
    align-items: flex-start;
}
}


.vehicle-history-section {
    background: linear-gradient(135deg,rgb(255, 255, 255) 0%,rgb(255, 255, 255) 100%);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    padding: 3rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.vehicle-history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.vehicle-history-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    border-radius: 25px 25px 0 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #007bff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    color: #007bff;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modern-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.modern-info-card:hover::before {
    transform: translateX(100%);
}

.modern-info-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.modern-info-card .icon-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.modern-info-card:hover .icon-container {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 18px 35px rgba(102, 126, 234, 0.4);
}

.modern-info-card .icon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.modern-info-card .icon-container img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.modern-info-card:hover .icon-container img {
    transform: scale(1.2);
}

.modern-info-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    position: relative;
}

.modern-info-card h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.modern-info-card:hover h5::after {
    width: 50px;
}

.modern-info-card .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #636e72;
    margin: 0;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 25px;
    display: inline-block;
    transition: all 0.4s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.modern-info-card .value::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.modern-info-card:hover .value::before {
    left: 100%;
}

.modern-info-card:hover .value {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #667eea;
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* ألوان مخصصة لكل بطاقة - متناسقة مع الموقع */
.modern-info-card.damage-events .icon-container {
    background: linear-gradient(135deg,rgb(228, 213, 1) 0%,rgb(234, 194, 14) 100%);
}

/* ألوان القيم حسب نوع الضرر - أولوية عالية */
.modern-info-card.damage-events.salvage .value {
    background: linear-gradient(135deg, rgba(228, 202, 5, 0.15), rgba(234, 194, 14, 0.15)) !important;
    color: rgb(228, 202, 5) !important;
    border-color: rgba(228, 202, 5, 0.3) !important;
}

.modern-info-card.damage-events.flood .value {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.15), rgba(20, 184, 166, 0.15)) !important;
    color: rgb(231, 1, 1) !important;
    border-color: rgba(23, 162, 184, 0.3) !important;
}

.modern-info-card.damage-events.fire .value {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.15), rgba(245, 101, 101, 0.15)) !important;
    color: rgb(231, 1, 1) !important;
    border-color: rgba(253, 126, 20, 0.3) !important;
}

.modern-info-card.damage-events.junk .value {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.15), rgba(156, 39, 176, 0.15)) !important;
    color: rgb(231, 1, 1) !important;
    border-color: rgba(111, 66, 193, 0.3) !important;
}

.modern-info-card.damage-events.clean .value {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(46, 213, 115, 0.15)) !important;
    color: #28a745 !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
}

.modern-info-card.odometer .icon-container {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.modern-info-card.usage-type .icon-container {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
}

.modern-info-card.photos .icon-container {
    background: linear-gradient(135deg, #636e72 0%, #b2bec3 100%);
}

/* ألوان خاصة لحالات الضرر */
.modern-info-card.damage-events.salvage .icon-container {
    background: linear-gradient(135deg,rgb(228, 213, 1) 0%,rgb(234, 194, 14) 100%);
}

.modern-info-card.damage-events.flood .icon-container {
    background: linear-gradient(135deg,rgb(217, 20, 20) 0%,rgb(234, 9, 9) 100%);
}

.modern-info-card.damage-events.fire .icon-container {
    background: linear-gradient(135deg,rgb(217, 20, 20) 0%,rgb(234, 9, 9) 100%);
}

.modern-info-card.damage-events.junk .icon-container {
    background: linear-gradient(135deg,rgb(217, 20, 20) 0%,rgb(234, 9, 9) 100%);
}

.modern-info-card.damage-events.clean .icon-container {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .vehicle-history-section {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    }

    .section-title {
    font-size: 1.8rem;
    }

    .section-title i {
    font-size: 1.8rem;
    }

    .modern-info-card {
    padding: 1.8rem;
    border-radius: 18px;
    }

    .modern-info-card .icon-container {
    width: 80px;
    height: 80px;
    }

    .modern-info-card .icon-container img {
    width: 45px;
    height: 45px;
    }

    .modern-info-card h5 {
    font-size: 1.1rem;
    }

    .modern-info-card .value {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .vehicle-history-section {
    padding: 2rem 1rem;
    }

    .section-title {
    font-size: 1.5rem;
    }

    .section-title i {
    font-size: 1.5rem;
    }

    .modern-info-card {
    padding: 1.5rem;
    }

    .modern-info-card .icon-container {
    width: 70px;
    height: 70px;
    margin-bottom: 1.2rem;
    }

    .modern-info-card .icon-container img {
    width: 40px;
    height: 40px;
    }

    .modern-info-card h5 {
    font-size: 1rem;
    }

    .modern-info-card .value {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    }
}







/* أنماط مربعات الألوان */
.color-box {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.color-box:hover {
    transform: scale(1.1);
}

/* تحسين عرض الألوان */
.color-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.color-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-name {
    font-weight: 600;
    color: #333;
}

.thick-blue-line {
    height: 80px; /* يمكن تغيير السماكة هنا */
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 30px;
    margin: 0 calc(-50vw + 50%); /* يمتد من طرف الشاشة للطرف الآخر */
    width: 100vw; /* عرض كامل للشاشة */
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.thick-blue-line:hover {
    background: #0056b3;
    transform: scale(1.02);
}

/* تصميم خط السجلات الأردنية */
.jordan-records-divider {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 30px 0;
    text-align: right;
}

/* تصميم العلم الصغير جداً */
.flag-icon-tiny {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    vertical-align: middle;
    background: white;
    padding: 5px;

}

.white-text {
    color: white;
    font-weight: bold;
    font-size: 26px;
}

.flag-in-line {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    vertical-align: middle;
}

/* تصميم البطاقة القابلة للنقر */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.color-code {
    font-size: 0.8rem;
    color: #666;
    font-family: 'Tajawal', monospace;
}