/* Rajasthan Panchayat Election 2026 Dashboard Stylesheet */

:root {
    --primary-color: #2563eb;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

body {
    background-color: #f1f5f9;
    color: #1e293b;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.brand-badge {
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.brand-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.1;
}

/* Pulsing Live Dot */
.live-pulse {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.spin-animation {
    animation: spin 0.8s linear infinite;
}

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

/* Party Cards */
.party-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.party-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.party-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* District Matrix Badges */
.district-badge {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.82rem;
}

/* News Cards */
.news-card {
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.hover-primary:hover {
    color: #2563eb !important;
}

/* Highlight Animation for Entry Form */
.highlight-box {
    border: 2px solid #2563eb !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.3s ease;
}

/* Tables */
.table thead th {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.table tbody td {
    font-size: 0.88rem;
}

/* Form Styles */
.form-label {
    margin-bottom: 0.25rem;
}

/* Custom Tooltip List Styling */
.cursor-pointer {
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.cursor-pointer:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

.interactive-count {
    cursor: pointer;
    border-radius: 4px;
    padding: 1px 4px;
    transition: background-color 0.15s ease;
}

.interactive-count:hover {
    background-color: #f1f5f9;
    text-decoration: underline;
}

.tooltip-hover-target {
    cursor: pointer;
}

.custom-election-tooltip .tooltip-inner {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: left;
    max-width: 340px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.custom-election-tooltip .tooltip-arrow::before {
    border-top-color: #0f172a !important;
    border-bottom-color: #0f172a !important;
}
