/**
 * LockCar Frontend Styles
 * Version: 2.0.5
 */

/* Container cu scroll pentru tabele largi */
.lockcar-table-scroll {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Tabelul principal */
.lockcar-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    table-layout: fixed;
}

/* Toate coloanele au latime egala */
.lockcar-table .lockcar-icon-cell,
.lockcar-table .lockcar-check-cell,
.lockcar-table .lockcar-title-cell,
.lockcar-table .lockcar-desc-cell {
    width: 140px;
    min-width: 140px;
}

/* Celulele comune */
.lockcar-table td {
    padding: 8px 8px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

/* Celulele cu iconite */
.lockcar-icon-cell {
    text-align: center;
    background-color: #ffffff;
}

.lockcar-icon-cell img {
    display: block;
    margin: 0 auto;
    max-width: 60px;
    height: auto;
}

/* Celulele cu bifa */
.lockcar-check-cell {
    text-align: center;
    background-color: #ffffff;
    font-size: 24px;
    color: #ffa41c;
}

.check-yes {
    color: #8bbd3b;
    font-weight: 600;
}

.check-no {
    color: #d42426;
}

/* Celulele cu titluri */
.lockcar-title-cell {
    text-align: center;
    background-color: #f8f9fa;
    font-weight: 600;
}

.lockcar-title-cell h3 {
    margin: 0;
    font-size: 14px;
    color: #333333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Celulele cu descrieri */
.lockcar-desc-cell {
    text-align: left;
    vertical-align: top;
    background-color: #ffffff;
    line-height: 1.5;
    color: #555555;
    font-size: 1em;
    padding: 15px 12px;
}

/* Randul cu titluri - linie de separare */
.lockcar-title-row td {
    border-top: 2px solid #cccccc;
    border-bottom: 2px solid #cccccc;
}

/* Primul rand (iconite) - fara bordura jos */
.lockcar-icon-row td {
    border-bottom: none;
    background-color: #f8f9fa;
}

/* Highlight pentru descrierea targetata */
.lockcar-highlight {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffa41c !important;
    animation: highlightPulse 1s ease;
}

@keyframes highlightPulse {
    0% { background-color: #fff3cd; }
    50% { background-color: #ffe69c; }
    100% { background-color: #fff3cd; }
}

/* Stil pentru link-urile imaginilor */
.lockcar-config-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
}

.lockcar-config-link:hover {
    transform: translateY(-3px);
}

.lockcar-config-link figure {
    margin: 0;
}

/* Tooltip on hover */
.lockcar-config-link:hover::before {
    content: 'Click to view description';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 1000;
}

/* Adaptare pentru mobile */
@media screen and (max-width: 768px) {
    .lockcar-icon-cell img {
        max-width: 65px;
    }
    
    .lockcar-title-cell h3 {
        font-size: 12px;
    }
    
    .lockcar-desc-cell {
        font-size: 1em;
        padding: 12px 10px;
    }
    
    .lockcar-check-cell {
        font-size: 20px;
    }
    
    .lockcar-table .lockcar-icon-cell,
    .lockcar-table .lockcar-check-cell,
    .lockcar-table .lockcar-title-cell,
    .lockcar-table .lockcar-desc-cell {
        width: 130px;
        min-width: 110px;
    }
}

/* Pentru ecrane foarte mici */
@media screen and (max-width: 480px) {
    .lockcar-table td {
        padding: 5px 5px;
    }
    
    .lockcar-icon-cell img {
        max-width: 60px;
    }
}

/* Stil general pentru titlurile tabelelor */
.lockcar-table-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding: 10px;
    border-bottom: 2px solid;
    border-radius: 10px;
}

/* Stiluri specifice pentru fiecare tabel */
.lockcar-table-title-table1 {
    border-bottom-color: #0263bd;
background: #005ec140;
}

.lockcar-table-title-table2 {
    border-bottom-color: #88b43e;
background: #8abc3a63;
}

.lockcar-table-title-table3 {
    border-bottom-color: #2ec4b6;
background: #2ec4b66e;
}

/* Sau varianta cu margin diferit pentru primul titlu */
.lockcar-product-configs h3:first-of-type {
    margin-top: 0;
}
.lockcar-config-title {
    white-space: nowrap;
    padding: 10px 0px 10px 20px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: start;
    background: linear-gradient(105deg, #7f3822 0%, #2a2727 100%) !important;
}