/* Vetmivo Phase 20: Platform Operations, Support & Status Styling */

/* Support Mode Sticky Topbar Banner */
.support-mode-banner {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1060;
}

.support-mode-banner .pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #fef08a;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(254, 240, 138, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(254, 240, 138, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(254, 240, 138, 0); }
}

/* Operations KPI Cards */
.op-kpi-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.op-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.op-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.op-kpi-val {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
}

.op-kpi-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Badge soft styling */
.badge-soft-primary { background-color: #e0f2fe; color: #0284c7; }
.badge-soft-success { background-color: #dcfce7; color: #16a34a; }
.badge-soft-warning { background-color: #fef9c3; color: #ca8a04; }
.badge-soft-danger { background-color: #fee2e2; color: #dc2626; }
.badge-soft-info { background-color: #e0e7ff; color: #4338ca; }
.badge-soft-purple { background-color: #f3e8ff; color: #9333ea; }
.badge-soft-secondary { background-color: #f1f5f9; color: #475569; }

/* Support Ticket Conversation Threads */
.ticket-thread-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ticket-message-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    position: relative;
}

.ticket-message-card.tenant-msg {
    border-left: 4px solid #0ea5e9;
}

.ticket-message-card.platform-msg {
    border-left: 4px solid #10b981;
    background: #f8fafc;
}

.ticket-message-card.internal-note {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    border-color: #fef3c7;
}

.ticket-message-card .internal-note-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.ticket-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ticket-message-sender {
    font-weight: 600;
    color: #1e293b;
}

.ticket-message-time {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.ticket-message-body {
    color: #334155;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Tenant Health Dimensions Grid */
.health-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.health-dimension-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.health-dimension-card.dim-healthy { border-left: 4px solid #22c55e; }
.health-dimension-card.dim-attention { border-left: 4px solid #eab308; }
.health-dimension-card.dim-risk { border-left: 4px solid #f97316; }
.health-dimension-card.dim-critical { border-left: 4px solid #ef4444; }

/* Onboarding Checklist */
.onboarding-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.onboarding-item-row:last-child {
    border-bottom: none;
}

.onboarding-item-row:hover {
    background-color: #f8fafc;
}

/* Public Status Page Specific */
.status-page-hero {
    padding: 3rem 1rem;
    text-align: center;
    background: #0f172a;
    color: #ffffff;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.status-component-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.status-timeline-entry {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.status-timeline-entry::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: -20px;
    width: 2px;
    background: #e2e8f0;
}

.status-timeline-entry:last-child::before {
    display: none;
}

.status-timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0ea5e9;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #0ea5e9;
}
