/* EcoHissa Aloqa Sahifasi Uchun Maxsus Stil */

:root {
    --shadcn-bg: #020617;
    --shadcn-border: rgba(255, 255, 255, 0.1);
    --shadcn-input: rgba(15, 23, 42, 0.6);
    --shadcn-primary: #ffffff;
    --shadcn-primary-fg: #020617;
    --accent-green: #10b981;
    --bg-blue-soft: #3b82f6;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--shadcn-bg);
    color: white;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-main {
    padding: 80px 0;
}

/* Sarlavhalar */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.gradient-text {
    background: linear-gradient(90deg, #10b981, #3b82f6);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 60px;
}

/* Sidebar Info */
.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bg-indigo {
    background: #6366f1;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.bg-green {
    background: #10b981;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.bg-blue {
    background: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.value {
    font-size: 1rem;
    font-weight: 600;
    margin: 2px 0 0;
}

.social-btn.tg {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: #0088cc;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    transform: scale(1.1);
}

/* Glass Form */
.custom-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid var(--shadcn-border);
    border-radius: 24px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.shadcn-form input,
.shadcn-form textarea,
.shadcn-select {
    width: 100%;
    background: var(--shadcn-input);
    border: 1px solid var(--shadcn-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.shadcn-form input:focus,
.shadcn-form textarea:focus {
    border-color: var(--accent-green);
    background: rgba(15, 23, 42, 0.9);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit-shadcn {
    width: 100%;
    background: var(--shadcn-primary);
    color: var(--shadcn-primary-fg);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s;
}

.btn-submit-shadcn:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .custom-glass {
        padding: 25px;
    }
}

/* ===== KPI CARDS ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.kpi-card {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(31, 41, 55, 0.9);
    border-radius: 18px;
    padding: 1.4rem 1.3rem 1.2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--kpi-from), var(--kpi-to));
    border-radius: 18px 18px 0 0;
}

.kpi-card.green {
    --kpi-from: #22c55e;
    --kpi-to: #4ade80;
}

.kpi-card.blue {
    --kpi-from: #3b82f6;
    --kpi-to: #60a5fa;
}

.kpi-card.yellow {
    --kpi-from: #facc15;
    --kpi-to: #fde047;
}

.kpi-card.teal {
    --kpi-from: #14b8a6;
    --kpi-to: #2dd4bf;
}

.kpi-glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--kpi-from) 0%, transparent 70%);
    opacity: 0.12;
}

.kpi-icon {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    display: block;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.kpi-unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
}

.kpi-label {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.kpi-delta {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

/* ===== LIVE INDICATOR ===== */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #4ade80;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    margin-bottom: 1.2rem;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ===== MAP SECTION ===== */
.stat-map-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-stats-card {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(31, 41, 55, 0.9);
    border-radius: 18px;
    padding: 1.4rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.device-stats-card h3 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
}

.device-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(31, 41, 55, 0.7);
}

.device-status-row .status-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.device-status-row .status-count {
    font-size: 1.4rem;
    font-weight: 700;
}

.status-count.green {
    color: #22c55e;
}

.status-count.red {
    color: #ef4444;
}

.status-count.yellow {
    color: #facc15;
}

.status-count.total {
    color: #e5e7eb;
}

.device-bar-row {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: auto;
}

.device-bar-row .bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mini-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.9);
    overflow: hidden;
}

.mini-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1.5s ease;
}

/* ===== CHARTS ===== */
.chart-card {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(31, 41, 55, 0.9);
    border-radius: 18px;
    padding: 1.3rem 1.2rem 2rem;
}

.chart-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.chart-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 1.2rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 140px;
}

.chart-bars .bar {
    flex: 1;
    border-radius: 6px 6px 3px 3px;
    position: relative;
    transition: height 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chart-bars .bar:hover {
    filter: brightness(1.2);
}

.chart-bars .bar::after {
    content: attr(data-val);
    position: absolute;
    top: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    color: var(--muted);
    white-space: nowrap;
}

.chart-bars .bar span {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--muted);
    white-space: nowrap;
}

.bar-green {
    background: linear-gradient(to top, #16a34a, #4ade80);
}

.bar-blue {
    background: linear-gradient(to top, #2563eb, #60a5fa);
}

.bar-teal {
    background: linear-gradient(to top, #0d9488, #2dd4bf);
}

/* ===== CO2 PROGRESS ===== */
.co2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.co2-card {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(31, 41, 55, 0.9);
    border-radius: 18px;
    padding: 1.4rem 1.3rem 1.2rem;
}

.co2-card h4 {
    margin: 0 0 0.3rem;
    font-size: 0.88rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.co2-value {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0.2rem 0 0.6rem;
}

.co2-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.9);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.co2-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1.8s ease;
}

.co2-note {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ===== LEADERBOARD ===== */
.table-wrap {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(31, 41, 55, 0.9);
    border-radius: 18px;
    overflow: hidden;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.table-wrap th {
    background: rgba(2, 6, 23, 0.7);
    color: var(--muted);
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    text-align: left;
}

.table-wrap td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.4);
}

.table-wrap tr:last-child td {
    border-bottom: none;
}

.table-wrap tbody tr:hover td {
    background: rgba(22, 163, 74, 0.06);
}

.rank-badge {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
}

.rank-badge.gold {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.rank-badge.silver {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.rank-badge.bronze {
    background: rgba(180, 140, 100, 0.15);
    color: #d4956a;
}

.rank-badge.plain {
    background: rgba(31, 41, 55, 0.7);
    color: var(--muted);
}

.trend-up {
    color: #4ade80;
    font-size: 0.75rem;
}

.trend-down {
    color: #ef4444;
    font-size: 0.75rem;
}

.inprogress-bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.9);
    margin-top: 4px;
    overflow: hidden;
}

.inprogress-fill {
    height: 100%;
    background: linear-gradient(to right, #22c55e, #4ade80);
    border-radius: 999px;
    transition: width 1.5s ease;
}

/* ===== LAST UPDATED ===== */
.last-updated {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: right;
    margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .co2-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stat-map-layout {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .co2-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}
 /* ===== PRODUCT CARDS ===== */
    .product-card {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding: 0;
    }

    .product-img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
      flex-shrink: 0;
      border-radius: 0;
    }

    .product-card__body {
      padding: 1.1rem 1.1rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      flex: 1;
    }

    .product-card__body h3 {
      margin: 0.5rem 0 0.15rem;
    }

    .product-badge--blue {
      background: rgba(59, 130, 246, 0.15);
      color: #93c5fd;
      border-color: rgba(59, 130, 246, 0.6);
    }

    .product-badge--red {
      background: rgba(239, 68, 68, 0.15);
      color: #fca5a5;
      border-color: rgba(239, 68, 68, 0.6);
    }