/* Osnovni stilovi */




:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}



/* Ajoutez ceci si vous voulez un logo en overlay */
.og-image-container {
    position: relative;
}

.og-image-container .site-logo {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: auto;
    border: 2px solid white;
    border-radius: 4px;
}



/* Adaptation pour les boutons texte */
.compact-nav-item .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* Sur mobile - seulement les icônes */
@media (max-width: 767px) {
    .compact-nav-item .btn {
        min-width: 32px;
        text-align: center;
    }
}

/* Sur desktop - texte complet */
@media (min-width: 768px) {
    .compact-nav-item .btn {
        min-width: 110px;
    }
}

.action-btn {
    transition: all 0.3s ease;
    transform: scale(1);
    opacity: 0.9;
}

.action-btn:hover {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Effets spécifiques par bouton */
.btn-success.action-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.btn-warning.action-btn:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.btn-info.action-btn:hover {
    background-color: #138496;
    border-color: #117a8b;
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.5);
}


   .calendar-container {
        max-height: 400px;
        overflow-y: auto;
    }
    
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }
    
    .calendar-day {
        padding: 5px;
        text-align: center;
        border: 1px solid #eee;
        font-size: 0.8rem;
    }
    
    .calendar-day.empty {
        background: transparent;
        border: none;
    }
    
    .calendar-day.today {
        background-color: #d4edda;
        font-weight: bold;
    }
    
    .calendar-day.past {
        color: #ccc;
    }
    
    .calendar-day.reserved {
        background-color: #f8d7da;
        color: #721c24;
        font-weight: bold;
    }

/* Style pour les badges de transmission */
.badge-transmission {
    font-size: 0.9rem;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

.badge-automatique {
    background-color: #28a745;
    color: white;
}

.badge-manuelle {
    background-color: #007bff;
    color: white;
}

/* Icône à côté du badge */
.transmission-icon {
    margin-right: 5px;
}


/* Rent-a-car specifični stilovi */
.badge-rent-automatik {
    background-color: #28a745;
    color: white;
}

.badge-rent-manuelni {
    background-color: #fd7e14;
    color: white;
}

.badge-rent-zauzet {
    background-color: #dc3545;
    color: white;
}

.calendar-day.reserved {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
}

.calendar-day.today {
    background-color: #d4edda;
    font-weight: bold;
}

.calendar-day.past {
    color: #ccc;
}

.rent-price-box {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.rent-price-box h5 {
    color: #6c757d;
}

.rent-price-box .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.rent-price-box .per-day {
    font-size: 0.9rem;
    color: #6c757d;
}


/* Correction des flèches */
    .scroll-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: white;
        border: 1px solid #dee2e6;
        color: #6c757d;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: all 0.3s;
        border: none;
        cursor: pointer; /* Ajout du curseur pointer */
    }

    .scroll-arrow-left {
        left: -20px;
    }

    .scroll-arrow-right {
        right: -20px;
    }

    /* Assurer que le conteneur a une position relative */
    .category-section {
        position: relative;
    }

    /* Correction pour le défilement */
    .scrolling-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 15px;
    }

    .scrolling-wrapper::-webkit-scrollbar {
        display: none;
    }










.dropdown:hover .dropdown-menu {
    display: block;
}


 .smooth-hide {
        transition: all 0.3s ease-in-out;
        overflow: hidden;
    }
    .hidden {
        opacity: 0;
        height: 0;
        padding: 0;
        margin: 0;
        border: none;
    }

.credit-display {
    opacity: 1 !important;
    display: block !important;
}


.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-row:hover {
    background-color: #f5f5f5;
}

.clickable-row td:last-child {
    position: relative;
}

.clickable-row .btn {
    position: relative;
    z-index: 2;
}



.message-bubble {
    max-width: 70%;
    position: relative;
    word-wrap: break-word;
    border-radius: 12px;
}

.sender-style {
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 3px !important;
}

.receiver-style {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    border-bottom-left-radius: 3px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-container {
    background-color: #f5f7fa;
    padding: 20px;
}

.message-avatar {
    align-self: flex-end;
}

.avatar-placeholder {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Navigacija */
.navbar-brand {
    font-weight: 700;
}

.navbar-brand i {
    margin-right: 8px;
}


 .card-auction {
        border-left: 4px solid #ffc107;
    }
    .badge-auction {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    .card-img-container {
        height: 180px;
        overflow: hidden;
    }



/* Kartice za oglase */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-footer {
    background-color: white;
    border-top: none;
}

/* Aukcije */
.auction-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--warning-color);
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Forme */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
}

footer a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Responsivnost */
@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

/* Animacija za učitavanje */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

  .rating-input label {
        display: inline-block;
        cursor: pointer;
        color: #ccc;
        font-size: 1.5em;
    }
    .rating-input input[type="radio"] {
        display: none;
    }
    .rating-input input[type="radio"]:checked ~ i,
    .rating-input input[type="radio"]:hover ~ i {
        color: #ffc107;
    }
    .rating-input i {
        padding: 0 2px;
    }
    .btn-facebook {
        background-color: #3b5998;
        color: white;
    }
    .btn-twitter {
        background-color: #1da1f2;
        color: white;
    }
    
    .star-hover {
    cursor: pointer;
    transition: all 0.2s;
}

.star-hover:hover {
    transform: scale(1.2);
}

.rating {
    font-size: 1.5rem;
}