/* Enhanced Tracker Card Styles */
        .tracker-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            padding: 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .tracker-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.9) 100%);
            border-radius: 20px;
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            border: 1px solid rgba(30, 136, 229, 0.2);
            box-shadow: 0 4px 20px rgba(30, 136, 229, 0.15);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            opacity: 0;
            animation: fadeInUp 0.6s ease forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .tracker-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.5s;
        }

        .tracker-card:hover::before {
            left: 100%;
        }

        .tracker-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 40px rgba(30, 136, 229, 0.3);
            border-color: rgba(30, 136, 229, 0.4);
        }

        /* Water wave animation at bottom of card */
        .tracker-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #1e88e5, #0d47a1, #1e88e5);
            background-size: 200% 100%;
            animation: wave-flow 3s linear infinite;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .tracker-card:hover::after {
            opacity: 1;
            height: 6px;
        }

        @keyframes wave-flow {
            0% { background-position: 0% 50%; }
            100% { background-position: 200% 50%; }
        }

        /* Card Header with Device Image */
        .card-header {
            position: relative;
            height: 120px;
            margin: -1.5rem -1.5rem 1rem -1.5rem;
            overflow: hidden;
            border-radius: 20px 20px 0 0;
        }

        .card-bg-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .tracker-card:hover .card-bg-image {
            transform: scale(1.1);
        }

        .card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(13, 71, 161, 0.3), rgba(13, 71, 161, 0.7));
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
        }

        .device-icon {
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .tracker-title {
            position: absolute;
            bottom: 10px;
            left: 1.5rem;
            color: white;
            font-size: 1.3rem;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            z-index: 2;
        }

        /* Data Rows with Icons */
        .data-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.6rem 0;
            border-bottom: 1px solid rgba(30, 136, 229, 0.1);
            transition: all 0.3s;
        }

        .data-row:last-of-type {
            border-bottom: none;
        }

        .data-row:hover {
            background: rgba(30, 136, 229, 0.05);
            margin: 0 -0.5rem;
            padding-left: 0.5rem;
            padding-right: 0.5rem;
            border-radius: 8px;
        }

        .data-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #566b8c;
            font-size: 0.9rem;
        }

        .data-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(30, 136, 229, 0.1);
            border-radius: 6px;
            font-size: 0.9rem;
            transition: transform 0.3s;
        }

        .data-row:hover .data-icon {
            transform: scale(1.2) rotate(10deg);
            background: rgba(30, 136, 229, 0.2);
        }

        .data-value {
            font-weight: 600;
            color: #0a2540;
            font-size: 0.95rem;
            transition: all 0.3s;
        }

        .data-row:hover .data-value {
            color: #1e88e5;
            transform: scale(1.05);
        }

        /* Status Badge */
        .status {
            margin-top: 1rem;
            padding: 0.8rem;
            border-radius: 12px;
            text-align: center;
            font-weight: 600;
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
            transition: all 0.3s;
        }

        .status::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 10px;
            width: 8px;
            height: 8px;
            background: currentColor;
            border-radius: 50%;
            transform: translateY(-50%);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
            50% { opacity: 0.5; transform: translateY(-50%) scale(1.2); }
        }

        .status.good {
            background: rgba(76, 175, 80, 0.15);
            color: #2e7d32;
        }

        .status.warning {
            background: rgba(255, 152, 0, 0.15);
            color: #ef6c00;
        }

        .status.danger {
            background: rgba(244, 67, 54, 0.15);
            color: #c62828;
            animation: alert-pulse 1.5s infinite;
        }

        @keyframes alert-pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
            50% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
        }

        /* Interactive Expand Button */
        .expand-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s;
            z-index: 10;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .expand-btn:hover {
            transform: rotate(90deg) scale(1.1);
            background: #1e88e5;
            color: white;
        }

        /* Mini Chart Container */
        .mini-chart {
            height: 0;
            overflow: hidden;
            transition: height 0.4s ease;
            margin-top: 0;
        }

        .tracker-card.expanded .mini-chart {
            height: 100px;
            margin-top: 1rem;
        }

        .chart-bar {
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            height: 80px;
            padding: 0 0.5rem;
        }

        .bar {
            width: 8px;
            background: linear-gradient(to top, #1e88e5, #64b5f6);
            border-radius: 4px 4px 0 0;
            transition: all 0.3s;
            animation: grow-up 0.8s ease-out;
        }

        @keyframes grow-up {
            from { height: 0; }
        }

        .bar:hover {
            background: linear-gradient(to top, #0d47a1, #1e88e5);
            transform: scaleX(1.3);
        }

        /* Ripple Effect on Click */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(30, 136, 229, 0.3);
            transform: scale(0);
            animation: ripple-effect 0.6s linear;
            pointer-events: none;
        }

        @keyframes ripple-effect {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* Value update animation */
        .value-updated {
            animation: value-flash 0.5s ease;
        }

        @keyframes value-flash {
            0% { color: #1e88e5; transform: scale(1.2); }
            100% { color: #0a2540; transform: scale(1); }
        }