/* GŁÓWNY KONTENER DASHBOARDU */
.mpi-dashboard-pro {
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* NAGŁÓWEK I PRZYCISKI */
.mpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.mpi-header h2 {
    margin: 0;
}

.mpi-btn-primary {
    background: #2563eb;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.mpi-btn-primary:hover { 
    background: #1d4ed8; 
    box-shadow: 0 4px 12px rgba(37,99,235,0.3); 
}

/* KARTY ZGŁOSZEŃ */
.mpi-ticket-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.mpi-ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #bfdbfe;
}

/* ELEMENTY W KARCIE */
.mpi-ticket-info h4 { 
    margin: 0 0 8px 0; 
    font-size: 18px; 
    color: #1f2937; 
}

.mpi-ticket-meta { 
    font-size: 13px; 
    color: #6b7280; 
    display: flex; 
    gap: 15px; 
}

.mpi-ticket-meta i { 
    margin-right: 5px; 
    color: #9ca3af; 
}

/* --- MAGIA: ŚWIATEŁKA STATUSÓW --- */
.mpi-status {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #374151;
}

.mpi-status::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Status: Oczekujące / Nowe (Czerwone, pulsujące) */
.mpi-status.status-nowe::before,
.mpi-status.status-oczekujace::before {
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
}

/* Status: W trakcie (Żółte / Pomarańczowe, pulsujące) */
.mpi-status.status-w-trakcie::before {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulse-orange 2s infinite;
}

/* Status: Zrealizowane (Zielone, stałe) */
.mpi-status.status-zrealizowane::before {
    background: #10b981;
}

/* Animacje pulsowania */
@keyframes pulse-red { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@keyframes pulse-orange { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }