/* public/css/status-styles.css */

/* Státusz Badge stílusok */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.status-badge i {
    margin-right: 0.35em;
}

/* Szemantikus szint szerinti stílusok */
.status-level-critical {
    border-left: 4px solid #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

.status-level-negative {
    border-left: 4px solid #fd7e14;
    box-shadow: 0 0 5px rgba(253, 126, 20, 0.3);
}

.status-level-warning {
    border-left: 8px solid #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

.status-level-neutral {
    border-left: 8px solid #6c757d;
    box-shadow: 0 0 5px rgba(108, 117, 125, 0.3);
}

.status-level-info {
    border-left: 8px solid #0dcaf0;
    box-shadow: 0 0 5px rgba(13, 202, 240, 0.3);
}

.status-level-positive {
    border-left: 8px solid #20c997;
    box-shadow: 0 0 5px rgba(32, 201, 151, 0.3);
}

.status-level-success {
    border-left: 8px solid #198754;
    box-shadow: 0 0 5px rgba(25, 135, 84, 0.3);
}

/* Státusz progress bar */
.status-progress-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.status-progress-container .progress {
    height: 0.5rem;
    margin-top: 0.25rem;
    background-color: #f2f2f2;
}

/* Egyedi színek a Backpack alapszíneken kívül */
.badge-purple {
    color:black;
    background-color: #6f42c1;
}

.badge-black {
    color:gray;
    background-color: black;
}

.badge-dark {
    color:lightgrey;
    background-color: #1b1e21;
}

.badge-info {
    color:black;
    background-color: gray;
}

.badge-pink {
    color: black;
    background-color: #e83e8c;
}

.badge-orange {
    color: black;
    background-color: #fd7e14;
}

.badge-teal {
    color: black;
    background-color: #20c997;
}

.badge-indigo {
    color: black;
    background-color: #6610f2;
}

.badge-green {
    color: black;
    background-color: #00ff00;
}

.badge-red {
    color: black;
    background-color: red;
}

.badge-red-striped {
    color: black;
    background: repeating-linear-gradient(
        45deg,
        #ff0000,
        #ff0000 3px,
        #ff9999 3px,
        #ff9999 6px
    );
}
/* Állapot átmenet animáció */
.status-badge {
    transition: all 0.3s ease;
}

/* Státusz tábla nézet */
.status-table-view {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-box {
    flex: 1 1 150px;
    padding: 0.75rem;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.status-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.status-box.active {
    border: 2px solid #007bff;
}

.status-box .status-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.status-box .status-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.status-box .status-count {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Státusz lépések megjelenítése */
.status-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    position: relative;
}

.status-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.status-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.status-step-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #6c757d;
    transition: all 0.2s ease;
}

.status-step.completed .status-step-icon {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.status-step.active .status-step-icon {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.2);
}

.status-step.warning .status-step-icon {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.status-step.error .status-step-icon {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.status-step-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    max-width: 120px;
}

.status-step.completed .status-step-label,
.status-step.active .status-step-label {
    font-weight: 600;
    color: #212529;
}

/* Státusz timeline */
.status-timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 3px;
    background-color: #e9ecef;
}

.status-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.status-timeline-item:last-child {
    padding-bottom: 0;
}

.status-timeline-marker {
    position: absolute;
    left: -2rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #6c757d;
    border: 2px solid #fff;
    z-index: 2;
}

.status-timeline-content {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.status-timeline-date {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.status-timeline-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.status-timeline-title i {
    margin-right: 0.5rem;
}

.status-timeline-text {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Státusz változás animációk */
@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(32, 201, 151, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(32, 201, 151, 0);
    }
}

.status-pulse {
    animation: statusPulse 2s infinite;
}

/* Reszponzív viselkedés */
@media (max-width: 768px) {
    .status-steps {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-steps::before {
        top: 0;
        bottom: 0;
        left: 25px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .status-step {
        flex-direction: row;
        width: 100%;
        margin-bottom: 1rem;
        align-items: center;
    }

    .status-step-icon {
        margin-right: 1rem;
        margin-bottom: 0;
    }

    .status-timeline {
        margin-left: 0;
    }
}

/* Print media stílusok */
@media print {
    .status-badge {
        border: 1px solid #dee2e6 !important;
        background-color: transparent !important;
        color: #000 !important;
    }

    .status-timeline::before,
    .status-steps::before {
        display: none !important;
    }

    .status-box,
    .status-timeline-content {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
/* Státusz mező stílusok */
.status-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.status-option {
    position: relative;
}

.status-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.status-checkbox-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-checkbox-input {
    position: absolute;
    opacity: 0;
}

.status-checkbox-input:checked + .status-checkbox-badge {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4d72d0;
    font-weight: bold;
}

.status-checkbox-badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.status-checkbox-badge i {
    margin-right: 5px;
}

.status-transition-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.status-transition-indicator i {
    color: #6c757d;
}

/* Select2 formázás */
.select2-container--default .select2-results__option .badge {
    display: inline-flex;
    align-items: center;
    width: 100%;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .badge {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 4px 8px;
}
