body {
    background-color: #f0f4f8;
    color: #1e2b3c;
}


.navbar {
    height: 70px;
    background-color: #f0f4f8 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

/* Updated navbar styles */
.navbar-brand {
    position: relative;
    left: 0;
    transform: none;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
}

/* New header styles */
.navbar .container {
    position: relative;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.navbar-text h5 {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: #1e2b3c;
    font-weight: 500 !important;
    white-space: nowrap;
    margin-left: 0.5rem;
}

/* Mobile styles for the header */
@media (max-width: 767.98px) {
    .navbar {
        height: 60px;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    /* Remove the conflicting styles since we now have a dedicated mobile element */
    .navbar-text.d-none.d-md-block {
        display: none !important;
    }
    
    .navbar-text h5 {
        font-size: 0.9rem;
    }
    
    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.create-ad-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(34, 177, 247, 0.1);
    transition: all 0.3s ease;
    color: #22b1f7;
}

.create-ad-btn:hover {
    background-color: #22b1f7;
    transform: scale(1.1);
    color: white;
}

.create-ad-btn i {
    transition: transform 0.3s ease;
}

.create-ad-btn:hover i {
    transform: rotate(15deg);
}

/* End new header styles */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0088cc;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.6s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-screen img {
    height: 80px;
}

.loading-screen h2 {
    font-weight: 300;
    margin-top: 1rem;
}

.main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 1.2s ease-out;
    visibility: hidden;
}

.main-content.visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* ... resto del CSS esistente ... */

/* Stile per la card del partner */
.partner-card {
    flex-direction: column !important;
    margin-bottom: 1rem;
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.partner-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background-color: #ffffff;
}

.partner-card .card-title {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px);
    color: #1e2b3c;
}

.partner-card .card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.8rem 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #4a5568;
    font-weight: 400;
}

/* Badge for new partners */
.new-badge {
    background-color: #ff5722;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

/* Badge per la categoria */
.category-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f0f9ff;
    color: #22b1f7;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-badge i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Colori specifici per le diverse categorie */
.category-badge.bot {
    background-color: #f0f9ff;
    color: #6c5ce7;
}

.category-badge.group {
    background-color: #f0f9ff;
    color: #00b894;
}

.category-badge.channel {
    background-color: #f0f9ff;
    color: #e84393;
}

.category-badge.service {
    background-color: #f0f9ff;
    color: #fdcb6e;
}

.partner-tags {
    margin: 0 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.partner-tag {
    color: #22b1f7;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(34, 177, 247, 0.1);
    border-radius: 20px;
}

.partner-tag::before {
    content: '#';
    opacity: 0.7;
}

.btn-partner {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.details-btn {
    border: 2px solid #22b1f7;
    color: #22b1f7;
    background-color: rgba(34, 177, 247, 0.05);
}

.details-btn:hover {
    background-color: #22b1f7;
    border-color: #22b1f7;
    color: white;
    transform: translateY(-2px);
}

.telegram-blue.btn-partner {
    background-color: #22b1f7;
    border: 2px solid #22b1f7;
    color: white;
}

.telegram-blue.btn-partner:hover {
    background-color: #1a9fe8;
    border-color: #1a9fe8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 177, 247, 0.3);
}

/* Assicurati che i pulsanti abbiano la stessa altezza */
.d-flex.gap-2 {
    align-items: stretch;
    gap: 0.8rem !important;
    margin-top: auto !important;
}

.publisher-logo {
    width: 40px;
    height: 40px;
    border-radius: 25%;
    object-fit: contain;
    background: #f0f4f8;
    border: 2px solid #22b1f7;
    margin-right: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Stile per il contenitore dei partner */
#partnersContainer {
    margin-top: 1rem;
}

#partners .col-md-6 {
    padding-right: 8px;
    padding-left: 8px;
    margin-bottom: 16px;
}

/* Stile per i filtri */
.partner-filters {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.btn-filter {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e2b3c;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.btn-filter::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #22b1f7;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-filter:hover, .btn-filter.active {
    background-color: #f0f9ff;
    border-color: #22b1f7;
    color: #22b1f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 177, 247, 0.15);
}

.btn-filter:hover::before, .btn-filter.active::before {
    opacity: 1;
}

.btn-filter i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #22b1f7;
    transition: transform 0.3s ease;
}

.btn-filter:hover i, .btn-filter.active i {
    transform: scale(1.2);
    fill: #fff;
    color: white;
}

.btn-filter .filter-text {
    display: flex;
    flex-direction: column;
}

.btn-filter .filter-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.btn-filter .filter-count {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
}

/* Stile per il titolo e la descrizione della categoria */
.category-header {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    background-color: transparent;
    border-radius: 0;
    border-left: 4px solid #22b1f7;
    box-shadow: none;
    padding-left: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.category-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e2b3c;
}

.category-header p {
    margin: 0;
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .filter-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .btn-filter {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-filter i {
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .btn-filter .filter-title {
        font-size: 0.85rem;
    }
    
    .btn-filter .filter-count {
        font-size: 0.7rem;
    }
    
    .partner-card {
        flex-direction: column !important;
    }
    
    .partner-card .card-body {
        padding: 1.2rem;
    }
    
    .partner-card .card-title {
        font-size: 1.1rem;
    }
    
    .btn-partner {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .partner-tags {
        margin: 0.5rem 0;
    }
    
    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
}

/* Stili aggiuntivi per i filtri su schermi molto piccoli */
@media (max-width: 400px) {
    .filter-container {
        gap: 6px; /* Riduci ulteriormente lo spazio tra le colonne */
    }
    
    .btn-filter {
        padding: 0.5rem 0.6rem; /* Riduci ulteriormente il padding */
    }
    
    .btn-filter i {
        margin-right: 4px; /* Riduci ulteriormente lo spazio tra l'icona e il testo */
    }
    
    .btn-filter .filter-text {
        max-width: calc(100% - 20px); /* Limita la larghezza del testo */
    }
    
    .btn-filter .filter-title {
        white-space: nowrap; /* Impedisci il wrapping del titolo */
        overflow: hidden; /* Nascondi il testo in eccesso */
        text-overflow: ellipsis; /* Aggiungi puntini di sospensione */
        max-width: 100%; /* Assicurati che il titolo non superi la larghezza del contenitore */
    }
    
    .btn-filter .filter-count {
        white-space: nowrap; /* Impedisci il wrapping del conteggio */
        overflow: hidden; /* Nascondi il testo in eccesso */
        text-overflow: ellipsis; /* Aggiungi puntini di sospensione */
        max-width: 100%; /* Assicurati che il conteggio non superi la larghezza del contenitore */
    }
}

/* Stili per la sezione Crea Inserzione */
.pricing-card {
    border: none;
    border-radius: 15px;
    background: #3f72a5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.features-section {
    padding: 30px 0;
    margin-bottom: 40px;
}

.features-section h5 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.features-section h5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #22b1f7;
    border-radius: 2px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(34,177,247,0.2);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #22b1f7;
    opacity: 0.9;
}

.feature-item:hover {
    transform: translateX(10px);
    background: #f8f9fa;
}

.feature-icon {
    font-size: 28px;
    color: #22b1f7;
    margin-right: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    min-width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: rgba(34,177,247,0.2);
    transform: scale(1.1);
}

.feature-text {
    flex: 1;
}

.partner-card>div>p {
    min-height: 50px;
}

.feature-text h6 {
    margin-bottom: 8px;
    color: #2c3034;
    font-size: 1.1rem;
    font-weight: 600;
}

.telegram-blue.btn-partner:hover {
    background-color: #22b1f7;
    border-color: #22b1f7;
    color: white;
}

.feature-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
}

.pricing-section {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
}

.payment-option {
    background: #fff;
    padding: 25px;
    border: 2px solid rgba(34,177,247,0.3);
    border-radius: 10px;
}

.payment-option.active {
    border-color: #22b1f7;
    background: #fff;
}

.payment-header h6 {
    color: #2c3034;
}

.payment-icon {
    font-size: 32px;
    color: #22b1f7;
    margin-bottom: 10px;
}

.price {
    margin: 20px 0;
}

.price .amount {
    font-size: 36px;
    font-weight: bold;
    color: #2c3034;
}

.price .currency {
    font-size: 20px;
    color: #6c757d;
    margin-left: 5px;
}

.other-payments {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-outline-light {
    color: #2c3034;
    border-color: #6c757d;
}

.btn-outline-light:hover {
    color: #fff;
    background-color: #22b1f7;
    border-color: #22b1f7;
}

.pricing-card {
    background: transparent;
    box-shadow: none;
}
/* Aggiungi nuovi stili */
.price-note {
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.7;
    color: #6c757d !important;
}

.slider-promo {
    padding: 15px;
    background: #fff;
    border: 1px dashed #ffd700;
}

.slider-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-info i {
    font-size: 24px;
}

.slider-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #2c3034;
}

/* Aggiusta spaziature */
.features-section {
    margin-bottom: 30px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

/* Stili per i box dei vantaggi */
.advantages-section {
    margin: 40px 0;
}

.advantage-box {
    background: #fff;
    padding: 15px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(34,177,247,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantage-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(34,177,247,0.1);
    border-color: #22b1f7;
}

.advantage-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon svg {
    width: 42px;
    height: 42px;
    transition: transform 0.3s ease;
}

.advantage-box:hover .advantage-icon svg {
    transform: scale(1.1);
}

.advantage-box h4 {
    color: #2c3034;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1rem;
}

.advantage-box p {
    color: #6c757d;
    margin: 0;
    font-size: 0.85rem;
    min-height: auto;
}

/* Aggiusta spaziature per la sezione successiva */
.advantages-section + .features-section {
    margin-top: 20px;
}

.payment-terms {
    padding-top: 15px;
    border-top: 1px solid rgba(34,177,247,0.1);
    text-align: left;
}

.payment-terms small {
    font-size: 0.85rem;
    color: #6c757d !important;
    display: flex;
    align-items: start;
}

.payment-terms i {
    margin-top: 2px;
    color: #22b1f7;
}

/* Aggiusta il padding del box vantaggio per il testo piÃ¹ lungo */
.advantage-box p {
    min-height: 48px;
    /* display: flex; */
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Aggiusta spaziature per mobile */
@media (max-width: 576px) {
    .advantage-box {
        padding: 10px 5px;
    }
    
    .advantage-box h4 {
        font-size: 0.9rem;
    }
    
    .advantage-box p {
        font-size: 0.75rem;
    }
    
    .advantage-icon {
        height: 50px;
    }
    
    .advantage-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* Stili per il selettore di durata */
.duration-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.duration-option {
    background: #f8f9fa;
    border: 2px solid rgba(34,177,247,0.2);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.duration-option:hover {
    border-color: #22b1f7;
    background: #fff;
    transform: translateX(5px);
}

.duration-option.selected {
    border-color: #22b1f7;
    background: rgba(34,177,247,0.05);
}

.duration-option.recommended {
    border-color: #22b1f7;
    background: rgba(34,177,247,0.05);
}

.duration-option.recommended::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #22b1f7;
}

.duration-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.duration-label {
    font-weight: 600;
    color: #2c3034;
    font-size: 1.1rem;
}

.duration-price {
    color: #22b1f7;
    font-weight: 600;
    font-size: 1.1rem;
}

.duration-save {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 500;
}

.best-value {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.8rem;
    color: #22b1f7;
    font-weight: 500;
}

/* Stile per mobile */
@media (max-width: 576px) {
    .duration-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .duration-save, .best-value {
        position: static;
        margin-top: 5px;
    }
}

/* Aggiungi questi stili per la gestione delle sezioni */
.section {
    display: none;
}

.section.active {
    display: block !important;
}

#my-insertions.active {
    display: block !important;
}

/* Stili per il form di modifica */
.edit-partner-form {
    padding: 20px;
    color: #fff;
}

.edit-partner-form label {
    color: #fff;
    margin-bottom: 8px;
}

.edit-partner-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.edit-partner-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #22b1f7;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(34, 177, 247, 0.25);
}

.edit-partner-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.image-preview, .logo-preview {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0;
    border-radius: 4px;
    text-align: center;
}

.image-preview img, .logo-preview img {
    max-width: 100%;
    height: auto;
}

.image-upload-container {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.logo-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0;
}

.wall-preview {
    width: 100%;
    height: 0;
    padding-bottom: 54.25%; /* Stesso rapporto 16:9 */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.wall-preview .preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.upload-overlay i {
    color: white;
    font-size: 24px;
}

.image-upload-container:hover .upload-overlay {
    opacity: 1;
}

.logo-preview .preview-img {
    object-fit: contain;
    background: #f8f9fa;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.wall-container {
    max-width: 800px; /* o la larghezza massima desiderata */
    margin: 0 auto;
}

/* Stili per il bordo e l'area di upload */
.wall-preview {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s;
}

.wall-preview:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Aggiungi un helper text per le dimensioni consigliate */
.image-dimensions-helper {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    text-align: center;
}

/* Aggiungi nuovi stili */
.publisher-header {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-container {
    flex-shrink: 0;
}

.publisher-name {
    flex-grow: 1;
}

.logo-container label,
.publisher-name label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.publisher-name .form-control {
    height: 38px;
}

/* Aggiungi icone ai campi */
.form-label-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #fff;
}

.form-label-icon i {
    color: #22b1f7;
    font-size: 1.1rem;
}

.pub-detail {
    background: #3441a9;
    display: inline-block;
    /* text-align: center; */
    /* left: 0; */
    /* right: 0; */
    /* margin: auto; */
    font-size: 15px;
    /* display: inline-flex
; */
    padding: 5px 10px;
    border-radius: 5px;
}

/* Stile per il bottone salvato con successo */
.btn-success-custom {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    pointer-events: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.status-badge i {
    font-size: 0.75rem;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-success {
    color: #93f2a9 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Stili per la sezione amministrazione */
.admin-detail-group {
    margin-bottom: 1.5rem;
}

.admin-detail-group label {
    display: block;
    font-size: 0.875rem;
    color: #22b1f7;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.admin-detail-group p {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    word-break: break-word;
}

.admin-image-preview {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.admin-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 50%;
}

.admin-cover {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.card-header.bg-primary {
    background-color: #22b1f7 !important;
    border-bottom: none;
    padding: 1rem;
}

.partner-card .card-body {
    padding: 1rem;
}

/* Stile per i link negli annunci da approvare */
.admin-detail-group a {
    color: #22b1f7;
    text-decoration: none;
}

.admin-detail-group a:hover {
    text-decoration: underline;
}

/* Stili per gli annunci collassabili nell'amministrazione */
.card-header.bg-primary {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card-header.bg-primary:hover {
    background-color: #1e9bd9 !important;
}

.admin-header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.card-body.collapse {
    display: none;
}

.card-body.collapse.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Previeni il click sul pulsante di approvazione dal chiudere/aprire il pannello */
.card-header button {
    z-index: 2;
}

/* Stile per l'header quando il pannello è aperto */
.card-body.collapse.show + .card-header .toggle-icon {
    transform: rotate(180deg);
}

/* Stili per i tab dell'amministrazione */
#adminTabs {
    border-bottom: none;
    background: #2c3034;
    padding: 15px 15px 0;
    border-radius: 10px;
    margin-bottom: 25px !important;
}

#adminTabs .nav-item {
    margin-right: 5px;
}

#adminTabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
}

#adminTabs .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

#adminTabs .nav-link.active {
    color: #22b1f7;
    background: #212529;
    border: none;
}

#adminTabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #22b1f7;
    border-radius: 2px;
}

/* Stile per il badge del contatore */
#adminTabs .badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 11px;
    background: #dc3545;
}

/* Stile per le icone nei tab */
#adminTabs .nav-link i {
    font-size: 1.1rem;
    margin-right: 8px;
    position: relative;
    top: 1px;
}

/* Contenuto dei tab */
#adminTabContent {
    background: #212529;
    border-radius: 10px;
    padding: 20px;
    margin-top: -10px;
}

/* Animazione per il cambio di tab */
.tab-pane {
    transition: all 0.3s ease-in-out;
}

.tab-pane.fade {
    transform: translateY(10px);
    opacity: 0;
}

.tab-pane.show {
    transform: translateY(0);
    opacity: 1;
}

/* Stile per i pulsanti delle azioni nelle card */
.partner-card .btn {
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.partner-card .btn i {
    font-size: 16px;
}

.partner-card .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Stili per il badge di sospensione e il messaggio */
.suspension-badge,
.rejection-badge {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.suspension-badge:hover,
.rejection-badge:hover {
    opacity: 0.8;
}

.suspension-icon,
.rejection-icon {
    transition: transform 0.3s ease;
}

.suspension-message,
.rejection-message {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: -10px;
}

.nav-link:hover {
    cursor: pointer;
}

.nav-link {
    border-radius: 0 !important;
}

.suspension-message.show,
.rejection-message.show {
    display: block;
    opacity: 1;
    margin-top: 0.5rem;
}

.suspension-message-content,
.rejection-message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

/* Stili specifici per il badge di rifiuto */
.rejection-badge {
    background-color: #dc3545;
    color: white;
}

.rejection-message-content {
    border-left: 4px solid #dc3545;
}

.counter-card {
    transition: all 0.3s ease;
}

.counter-card.active-filter {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.counter-card:hover {
    transform: scale(1.02);
}

/* Homepage Slider */
.homepage-slider {
    width: 100%;
    background-color: #ffffff;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.swiper {
    width: 100%;
    height: auto;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background-color: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.swiper-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.swiper-slide a.slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    text-decoration: none;
    color: transparent;
    background: transparent;
}

.slider-image-container {
    width: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    object-fit: contain;
    background-color: #ffffff;
    display: block;
}

.slider-content {
    position: relative;
    width: 100%;
    background-color: #22b1f7;
    padding: 20px 25px;
    color: white;
    text-align: left;
    display: block !important;
    z-index: 2;
}

.slider-content h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-content p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Stile per l'effetto fade */
.swiper-fade.swiper-free-mode .swiper-slide {
    transition-timing-function: ease-out;
}

.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

/* Stile per i pallini di navigazione */
.swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 15px;
    padding-bottom: 15px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #e0e4e8;
    opacity: 1;
    margin: 0 5px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #22b1f7;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(34, 177, 247, 0.5);
}

/* Nascondi i pulsanti di navigazione dello slider */
.swiper-button-next,
.swiper-button-prev {
    display: none;
}

/* Footer styles */
.footer {
    background-color: #f0f4f8;
    color: #1e2b3c;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    color: #1e2b3c;
}

.footer-text {
    color: #4a5568;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.admin-footer-btn {
    margin-top: 1.2rem;
}

.admin-footer-btn .btn-outline-light {
    border-color: rgba(34, 177, 247, 0.3);
    color: #22b1f7;
    transition: all 0.3s ease;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.admin-footer-btn .btn-outline-light:hover {
    background-color: #22b1f7;
    border-color: #22b1f7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 177, 247, 0.2);
}


.section-loading.show {
    opacity: 1;
    visibility: visible;
}

.section-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #22b1f7;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Stile per l'effetto fade */
.swiper-fade.swiper-free-mode .swiper-slide {
    transition-timing-function: ease-out;
}

.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

/* Stile per il titolo e la descrizione della categoria */
.category-header {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    background-color: transparent;
    border-radius: 0;
    border-left: 4px solid #22b1f7;
    box-shadow: none;
    padding-left: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.category-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e2b3c;
}

.category-header p {
    margin: 0;
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Stile per l'ancora del titolo della categoria */
#categoryAnchor {
    scroll-margin-top: 80px;
    display: block;
    height: 1px;
    visibility: hidden;
}

/* Pagination styling */
.partners-pagination {
    margin-top: 2rem;
}

.partners-pagination .page-item .page-link {
    color: #1e2b3c;
    background-color: #ffffff;
    border-color: #e2e8f0;
    margin: 0 4px;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.partners-pagination .page-item .page-link:hover {
    background-color: #f0f9ff;
    border-color: #22b1f7;
    color: #22b1f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 177, 247, 0.15);
}

.partners-pagination .page-item.active .page-link {
    background-color: #22b1f7;
    border-color: #22b1f7;
    color: white;
    box-shadow: 0 4px 8px rgba(34, 177, 247, 0.3);
    transform: translateY(-2px);
}

.partners-pagination .page-item.disabled .page-link {
    color: #a0aec0;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    pointer-events: none;
}

/* Loading spinner */
.partners-loader {
    margin: 3rem auto;
}

.partners-loader .spinner-border {
    color: #22b1f7 !important;
    width: 3.5rem;
    height: 3.5rem;
    border-width: 0.3rem;
}

/* Alert styling */
.alert-info {
    background-color: #e6f7ff;
    border-color: #bae7ff;
    color: #0070f3;
    border-radius: 10px;
    padding: 1.2rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 112, 243, 0.1);
}

.alert-danger {
    background-color: #fff2f0;
    border-color: #ffccc7;
    color: #f5222d;
    border-radius: 10px;
    padding: 1.2rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(245, 34, 45, 0.1);
}

/* Improve spacing in partner cards */
.partner-card .d-flex.align-items-center {
    position: relative;
    margin-bottom: 0.5rem !important;
}

/* Stile per il contenitore unificato */
.unified-container {
    background-color: #e0e4e8;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* Modifica lo stile dei filtri per adattarsi al nuovo contenitore */
.partner-filters {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.5rem !important;
    box-shadow: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

/* Modifica lo stile dell'header della categoria */
.category-header {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    background-color: transparent;
    border-radius: 0;
    border-left: 4px solid #22b1f7;
    box-shadow: none;
    padding-left: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Modifica lo stile delle card per adattarsi al nuovo contenitore */
.partner-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Modifica lo stile della paginazione */
.partners-pagination {
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Posiziona il loader fuori dal contenitore unificato */
.partners-loader {
    margin-top: 2rem;
}

/* Stile per il titolo "In Evidenza" sopra lo slider */
.featured-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0px;
    padding: 0 15px;
    background-color: #ffffff;
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
    /* font-size: 16px; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* border-bottom: 3px solid #61d1ff; */
}

.featured-title i {
    color: #ffc107;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 3px rgba(255, 193, 7, 0.3));
}

.featured-title h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e2b3c;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
}

/* Stile per i link nel footer */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.footer-link {
    color: #22b1f7;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    background-color: rgba(34, 177, 247, 0.1);
    transform: translateY(-2px);
    color: #1a9fe8;
}

.footer-link i {
    margin-right: 5px;
    font-size: 1rem;
}

/* Stile per il pulsante back */
.create-ad-btn.back-mode {
    background-color: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.create-ad-btn.back-mode:hover {
    background-color: #ff3b30;
    color: white;
}

/* Stili responsive per il titolo "In Evidenza" */
@media (max-width: 767.98px) {
    .featured-title {
        padding: 12px 15px;
    }
    
    .featured-title i {
        font-size: 1.5rem;
    }
    
    .featured-title h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .featured-title {
        padding: 10px 12px;
    }
    
    .featured-title i {
        font-size: 1.3rem;
    }
    
    .featured-title h3 {
        font-size: 1.1rem;
    }
}

/* Stile per il publisher nello slider */
.slider-publisher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.slider-publisher-logo {
    width: 32px;
    height: 32px;
    border-radius: 20%;
    overflow: hidden;
    margin-right: 0px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 32px;
    background-color: #fff;
}

.slider-publisher-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20%;
}

.slider-content {
    position: relative;
    width: 100%;
    background-color: #22b1f7;
    padding: 20px 25px;
    color: white;
    text-align: left;
    display: block !important;
    z-index: 2;
}

.slider-content h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-content p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Stili responsive per il publisher nello slider */
@media (max-width: 767.98px) {
    .slider-publisher-logo {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    
    .slider-content h3 {
        font-size: 1.1rem;
    }
    
    .slider-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .slider-publisher-logo {
        width: 36px;
        height: 37px;
        min-width: 24px;
    }
    
    .slider-content h3 {
        font-size: 1.3rem;
    }
    
    .slider-content p {
        font-size: 0.8rem;
    }
}