input[type=file] {
    display: none !important;
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    /* Soft black line */
    margin: 20px 0;
}

h5 {
    margin: 6px;
}





.container {
    max-width: 1200px;
    /* Adjust the max-width as per your layout requirement */
    margin: 0 auto;
    /* Center align the container */
}

.card {
    border-radius: 10px;
}


.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 8px 0;
    color: #333;
    /* Darker text for better readability */
    font-size: 24px;
    /* Slightly larger text */
}

.custom-file-upload {
    border: none;
    display: inline-block;
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #e90000;
    font-size: 16px;
    margin-bottom: 10px;
    color: white;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

.custom-file-upload:hover {
    background-color: #910000;
}

#acte-content .btn-danger:hover {
    background-color: #910000;
}

.file-name {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    position: relative;
}

#acte-content .btn-danger {
    background-color: black;
    /* Bootstrap's danger color */
    border-color: black;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    /* Consistent border radius with the upload button */
    font-size: 16px;
    /* Consistent font size with the upload button */
    transition: all 0.3s ease;
    /* Consistent transition with the upload button */
    position: absolute;
    right: 0;
    top: 0;
}

#acte-content .btn-danger:hover {
    background-color: #910000;
    /* Slightly darker on hover for feedback */
    border-color: #910000;
}

.img-fluid {
    margin-bottom: 10px;
    border-radius: 5px;
    object-fit: cover;
    position: relative;
}

#carsAccordion {
    margin-top: 20px;
}

#carsAccordion .card {
    margin-bottom: 15px;
    /* Space between cards */
    border: none;
    /* Remove borders */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Add shadow for depth */
}

#carsAccordion .card-header {
    background-color: #f7f7f7;
    /* Light gray background */
    border-bottom: none;
    /* Remove border */
    padding: 10px 15px;
    /* Padding for spacing */
}

#carsAccordion .btn-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-align: left;
    width: 100%;
    padding: 0;
}

#carsAccordion .btn-link:hover,
#carsAccordion .btn-link:focus {
    text-decoration: none;
    outline: none;

}



#carsAccordion .card-body {
    background-color: #fff;
    padding: 30px;
    /* White background for content */
}

#carsAccordion .row {
    margin: 0 -5px;
    /* Adjust margin for proper alignment */
}

#carsAccordion .col-md-4 {
    padding: 0 5px;
    /* Padding to create space between columns */
    margin-bottom: 15px;
    /* Space between rows */
}


/* Custom Fullscreen Image Viewer */
#fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

#fullscreen-viewer.active {
    display: block;
}

.fsv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.fsv-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
}

.fsv-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* When image is rotated 90/270, swap dimension constraints */
.fsv-image.rotated {
    max-width: 100vh;
    max-height: 100vw;
}

.fsv-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute;
    z-index: 10;
}

.fsv-btn:hover {
    background: rgba(233, 0, 0, 0.8);
    border-color: rgba(233, 0, 0, 0.8);
}

.fsv-btn:active {
    opacity: 0.8;
}

.fsv-close {
    top: 20px;
    right: 20px;
}

.fsv-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.fsv-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.fsv-rotate {
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.fsv-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .fsv-content {
        padding: 50px 10px;
    }
    
    .fsv-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .fsv-prev {
        left: 10px;
    }
    
    .fsv-next {
        right: 10px;
    }
    
    .fsv-close {
        top: 10px;
        right: 10px;
    }
    
    .fsv-controls {
        bottom: 70px;
    }
    
    .fsv-caption {
        bottom: 20px;
        font-size: 12px;
        padding: 6px 15px;
        max-width: 80%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 10px;
    }

    .custom-file-upload,
    #acte-content .btn-danger {
        padding: 10px 20px;
        font-size: 14px;
    }

    #carsAccordion .btn-link {
        font-size: 14px;
        /* Smaller font size on smaller screens */
    }

    #carsAccordion .custom-file-upload,
    #acte-content #carsAccordion .btn-danger {
        font-size: 12px;
        /* Smaller buttons on smaller screens */
        padding: 6px 10px;
        /* Smaller padding for buttons */
    }

    #carsAccordion .row {
        margin: 0 -10px;
        /* Adjusted margin for smaller screens */
    }

    #carsAccordion .col-md-4 {
        padding: 0 10px;
        /* Adjusted padding for smaller screens */
    }
    
    .lb-rotate-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}