html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.navbar {
    background: #005aa7; /* fallback for old browsers */
    background: linear-gradient(to left, #005aa7, #e4f2ff);
}

.text-grey {
    color: #aaaaaa;
}

.text-green {
    color: #0a930a;
}

.text-orange {
    color: #d47500;
}

.text-blue {
    color: #005aa7;
}

.hover-shadow:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.badge {
    border-radius: 1rem;
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
    display: inline-block;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

/* Bootstrap Badge Color Variants */
.badge-primary {
    color: #ffffff;
    background-color: #007bff;
}

.badge-secondary {
    color: #ffffff;
    background-color: #6c757d;
}

.badge-success {
    color: #ffffff;
    background-color: #28a745;
}

.badge-danger {
    color: #ffffff;
    background-color: #dc3545;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

.badge-info {
    color: #ffffff;
    background-color: #17a2b8;
}

.badge-light {
    color: #212529;
    background-color: #f8f9fa;
}

.badge-dark {
    color: #ffffff;
    background-color: #343a40;
}

.table th {
    background-color: rgba(0, 0, 0, 0.03);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.progress {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Card Counter Animations */
.display-5,
.display-6 {
    transition: all 0.3s ease;
}

.card:hover .display-5,
.card:hover .display-6 {
    transform: scale(1.05);
}


/* Pulse-Animation für Echtzeit-Updates */
@keyframes progress-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.progress-bar-pulse {
    animation: progress-pulse 1s ease-in-out infinite;
}

/* Echtzeit-Update Indikator */
.realtime-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #28a745;
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    animation: progress-pulse 1.5s ease-in-out infinite;
}

/* Rollout Stages Process UI */
.rollout-stages {
    margin: 1.5rem 0;
    padding: 0;
}

.stage-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.stage-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 26px;
    bottom: -16px;
    width: 2px;
    height: 1rem;
    background-color: #EBECEDFF;
    z-index: 1;
}

.stage-indicator {
    margin-right: 1rem;
    font-size: 1.25rem;
    min-width: 1.5rem;
    text-align: center;
    z-index: 2;
    padding: 0.25rem 0;
}

.stage-content {
    flex: 1;
}

.stage-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stage-details {
    margin-top: 0.5rem;
}

.stage-item:not(:last-child)::after {
    background-color: #c5d2e0;
}

/* Completed stages */
.stage-completed {
    background-color: #EBECEDFF;
    border-left: 4px solid #28a745;
}

.stage-completed .stage-indicator {
    color: #28a745;
}

.stage-completed .stage-title {
    color: #28a745;
}

/* Current stage */
.stage-current {
    background-color: #EBECEDFF;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.stage-current .stage-indicator {
    color: #007bff;
    animation: progress-pulse 2s ease-in-out infinite;
}

.stage-current .stage-title {
    color: #007bff;
    font-weight: 700;
}

/* Future stages */
.stage-future {
    background-color: #ebeced;
    border-left: 4px solid #dee2e6;
    opacity: 0.6;
}

.stage-future .stage-indicator {
    color: #6c757d;
}

.stage-future .stage-title {
    color: #6c757d;
}


/* Skipped Stage */
.stage-skipped {
    background-color: #EBECED;
    border-left: 4px solid #9E9E9E;
    opacity: 0.6;
}

.stage-skipped .stage-indicator {
    color: #ff9800;
}

.stage-skipped .stage-title {
    color: #6c757d;
}


/* Stage actions (pen button) */
.stage-actions {
    margin-left: auto;
}

.edit-comment-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    border: 1px solid #6c757d;
    background-color: transparent;
    color: #6c757d;
    transition: all 0.2s ease;
}

.edit-comment-btn:hover {
    background-color: #6c757d;
    color: white;
    transform: scale(1.05);
}

.font-size-small {
    font-size: 0.875rem;
}

.btn-outline-warning {
    color: #ff9800;
    border-color: #ff9800;
}

.btn-group.btn-group-sm.record-decision-buttons {
    min-width: 380px;
}
