/* WORKPASS 2.0 - MONITORING & DASHBOARD STYLES */

/* --- Evidence Gallery --- */
.evidence-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

.evidence-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
}

.evidence-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color, #ff4444);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.evidence-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.evidence-info {
    padding: 12px;
}

.evidence-info h4 {
    font-size: 13px;
    margin-bottom: 4px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evidence-info p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.evidence-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.evidence-time {
    font-size: 9px;
    color: var(--primary-color, #ff4444);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evidence-image-wrapper {
    position: relative;
    width: 100%;
}

.verified-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 222, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    font-weight: 800;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.evidence-item.is-verified {
    border-color: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.verify-btn {
    background: var(--primary-color, #ff4444);
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.verify-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

.verified-badge {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

/* --- Metrics Grid --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.metric-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.metric-user {
    display: flex;
    flex-direction: column;
}

.metric-user-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.metric-user-role {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* Graphical Progress Bar */
.progress-container {
    margin-top: 10px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 6px;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #ff4444) 0%, #fff 200%);
    box-shadow: 0 0 15px var(--primary-color, #ff4444);
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* --- Activity Feed --- */
.activity-feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color, #ff4444);
    transition: background 0.2s;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #ff4444);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.activity-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
}

.activity-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- UTILS --- */
.loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 68, 68, 0.1);
    border-top-color: #ff4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

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

/* User Delete Button Styling */
.delete-user-btn {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.delete-user-btn:hover {
    background: #ff4444;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.staff-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.staff-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.staff-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.staff-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.staff-meta {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* --- EVIDENCE REVIEW SYSTEM --- */
.evidence-card {
    position: relative;
    transition: all 0.3s ease;
}

.evidence-card.reviewed {
    opacity: 0.7;
    border-color: rgba(74, 222, 128, 0.3);
}

.reviewed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(74, 222, 128, 0.9);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(74, 222, 128, 0.4);
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ev-reviewed-date {
    display: block;
    font-size: 10px;
    color: rgba(74, 222, 128, 0.8);
    margin-top: 4px;
    font-weight: 500;
}

.wp-button.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.wp-button.success:hover {
    background: #4ade80;
    color: #000;
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

.reviewed-text {
    color: rgba(74, 222, 128, 0.8);
    font-size: 12px;
    font-weight: 600;
}

/* --- METRICS STYLING --- */
.metric-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.metric-item.highlight-metric {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.05);
}

.metric-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.metric-value.success {
    color: #4ade80;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.metric-value.warning {
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}