/**
 * Brutto/Netto Switcher - Styles
 * Bootstrap 5 kompatibel
 */

/* Modal Branding */

#bruttoNettoModal .modal-title {
    font-weight: 600;
}

/* Choice Buttons */
.brutto-netto-choice {
    transition: all 0.3s ease;
    border-width: 2px;
    text-decoration: none;
}

.brutto-netto-choice:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-width: 2px;
}

.brutto-netto-choice strong {
    font-size: 1.1rem;
}

.brutto-netto-choice .fa {
    opacity: 0.7;
}

.brutto-netto-choice:hover .fa {
    opacity: 1;
}

/* Switch Link im Header */
.brutto-netto-switch {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.brutto-netto-switch:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Schwebende Badge unten rechts */
.brutto-netto-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    z-index: 1050;
    padding: 8px;
}

.brutto-netto-badge:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.brutto-netto-badge .fa {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.brutto-netto-badge .badge-text {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

/* Responsive Badge */
@media (max-width: 768px) {
    .brutto-netto-badge {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .brutto-netto-badge .fa {
        font-size: 1.3rem;
    }
    
    .brutto-netto-badge .badge-text {
        font-size: 0.6rem;
    }
}

.brutto-netto-switch .fa {
    font-size: 0.875rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    #bruttoNettoModal .modal-dialog {
        margin: 1rem;
    }
    
    .brutto-netto-choice {
        padding: 1.5rem 0.5rem !important;
    }
    
    .brutto-netto-choice .fa-2x {
        font-size: 1.5rem;
    }
    
    .brutto-netto-switch {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Loading State */
.brutto-netto-choice.loading {
    pointer-events: none;
    opacity: 0.6;
}

.brutto-netto-choice.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
