/* Environment Indicators - DEV and BETA badges */

/* Development Indicator - Red badge on bottom left */
.dev-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1060;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 25px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.dev-indicator-badge {
    background: #dc3545; /* Red color for development */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    cursor: default;
    user-select: none;
}

.dev-indicator-badge:hover {
    background: #c82333; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

/* Beta Indicator - Green badge on bottom left */
.beta-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1060;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 25px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.beta-indicator-badge {
    background: #28a745; /* Green color for beta */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.beta-indicator-badge:hover {
    background: #218838; /* Darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.beta-indicator-badge:active {
    transform: translateY(0);
}

/* Bug count notification badge */
.bug-count-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive adjustments - match feedback button */
@media (max-width: 768px) {
    .dev-indicator,
    .beta-indicator {
        bottom: 90px;
        left: 15px;
        z-index: 1060;
    }

    .dev-indicator-badge,
    .beta-indicator-badge {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px; /* Touch target size */
        min-width: 44px;
    }

    /* Hide text on smaller screens */
    .dev-indicator-badge .d-none.d-md-inline,
    .beta-indicator-badge .d-none.d-md-inline {
        display: none !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .dev-indicator,
    .beta-indicator {
        bottom: 85px;
        left: 10px;
    }

    .dev-indicator-badge,
    .beta-indicator-badge {
        padding: 10px 12px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Bug Tracker Styles */

/* Bug list item styling */
.bug-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.bug-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.bug-priority-low {
    border-left: 4px solid #28a745;
}

.bug-priority-medium {
    border-left: 4px solid #ffc107;
}

.bug-priority-high {
    border-left: 4px solid #dc3545;
}

.bug-status-active {
    opacity: 1;
}

.bug-status-pending_resolution {
    opacity: 0.85;
    background-color: #fff3cd;
}

.bug-status-resolved {
    opacity: 0.6;
    text-decoration: line-through;
}

.bug-date {
    font-size: 0.875rem;
    color: #6c757d;
}

.bug-actions {
    display: none;
}

.bug-item:hover .bug-actions {
    display: inline-block;
}

/* Bug tracker modal mobile adjustments */
@media (max-width: 768px) {
    #bugModal .modal-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }

    #bugModal .modal-body .form-control,
    #bugModal .modal-body .form-select,
    #bugModal .modal-body .btn {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
