:root {
            --primary-color: #2c7da0;
            --primary-gradient: linear-gradient(135deg, #2c7da0 0%, #01497c 100%);
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --audio-color: #6a11cb;
            --record-color: #e63946;
            --purple-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            --dark-bg: #0a1929;
            --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }
         .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 2rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 125, 160, 0.2);
            position: relative;
            overflow: hidden;  color: var(--text-color);
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: var(--primary-color);
            font-weight: 500;
        }
        .tool-card:hover {
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        }
        .btn-danger {
            background-color: var(--danger-color);
            border-color: var(--danger-color);
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            transition: all 0.3s;
        }
        .btn-danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
        }
        .btn-success {
            background-color: var(--success-color);
            border-color: var(--success-color);
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            transition: all 0.3s;
        }
        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
        }
        .btn-outline-secondary:hover {
            transform: translateY(-2px);
        }
        .visualization-container {
            position: relative;
            height: 220px;
            width: 100%;
            margin: 1.5rem 0;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.1);
            background: linear-gradient(180deg, #0a1929 0%, #1a2b3c 100%);
        }
        .visualization-gradient {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(0deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
            z-index: 1;
        }
        .viz-switch {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 10;
            display: flex;
            gap: 5px;
            background: rgba(0, 0, 0, 0.5);
            padding: 5px;
            border-radius: 8px;
            backdrop-filter: blur(5px);
        }
        .viz-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: all 0.3s;
        }
        .viz-btn.active {
            background: var(--primary-color);
        }
        .viz-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        #audioVisualization {
            position: relative;
            z-index: 2;
            width: 100%;
            height: 100%;
        }
        .spectrum-container {
            height: 180px;
            width: 100%;
            margin: 1.5rem 0;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.1);
            display: none;
            background: linear-gradient(180deg, #0c2036 0%, #15273d 100%);
        }
        .spectrum-bars {
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            height: 100%;
            padding: 15px;
        }
        .spectrum-bar {
            width: 12px;
            background: linear-gradient(180deg, #6a11cb 0%, #2575fc 100%);
            border-radius: 6px 6px 0 0;
            transition: height 0.1s ease;
            box-shadow: 0 0 10px rgba(106, 17, 203, 0.3);
        }
        .frequency-labels {
            display: flex;
            justify-content: space-between;
            padding: 0 15px 10px;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.7);
        }
        .device-selector {
            background-color: white;
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin: 1.5rem 0;
            box-shadow: var(--card-shadow);
        }
        .audio-meters {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            margin: 1.5rem 0;
        }
        .meter-container {
            background-color: white;
            border-radius: 10px;
            padding: 1.25rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .meter-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.75rem;
            font-weight: 600;
        }
        .meter-bar {
            height: 24px;
            background-color: #e9ecef;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
        }
        .meter-fill {
            height: 100%;
            border-radius: 12px;
            transition: width 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .meter-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg,
                rgba(255,255,255,0.2) 0%,
                rgba(255,255,255,0.5) 50%,
                rgba(255,255,255,0.2) 100%);
            background-size: 200% 100%;
            animation: shimmer 2s infinite;
        }
        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }
        .volume-fill {
            background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
        }
        .frequency-fill {
            background: linear-gradient(90deg, #6a11cb, #2575fc);
        }
        .summary-card:hover {
            transform: translateY(-5px);
        }
        .recording-controls {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin: 1.5rem 0;
        }
        .recording-indicator {
            display: none;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 1.5rem;
            background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
            border-radius: 10px;
            border-left: 4px solid var(--danger-color);
            margin: 1.5rem 0;
            animation: fadeIn 0.5s;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .recording-pulse {
            width: 14px;
            height: 14px;
            background-color: var(--danger-color);
            border-radius: 50%;
            animation: pulse 1.5s infinite;
            box-shadow: 0 0 10px var(--danger-color);
        }
        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.7; }
            100% { transform: scale(1); opacity: 1; }
        }
        .audio-player {
            background-color: white;
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin: 1.5rem 0;
            box-shadow: var(--card-shadow);
            display: none;
            animation: fadeIn 0.5s;
        }
        .audio-player-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        .audio-player-progress {
            width: 100%;
            height: 8px;
            background-color: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
            cursor: pointer;
            margin-bottom: 0.5rem;
        }
        .audio-player-progress-fill {
            height: 100%;
            background: var(--primary-gradient);
            width: 0%;
            transition: width 0.1s linear;
            position: relative;
            overflow: hidden;
        }
        .status-indicator {
            display: inline-flex;
            align-items: center;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-weight: 600;
            margin-right: 1rem;
        }
        .status-good {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--success-color);
            border-left: 3px solid var(--success-color);
        }
        .status-warning {
            background-color: rgba(255, 193, 7, 0.1);
            color: var(--warning-color);
            border-left: 3px solid var(--warning-color);
        }
        .status-error {
            background-color: rgba(220, 53, 69, 0.1);
            color: var(--danger-color);
            border-left: 3px solid var(--danger-color);
        }
        .audio-box {
            background: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(37, 117, 252, 0.05) 100%);
            border-left: 4px solid var(--audio-color);
            padding: 1.25rem;
            border-radius: 0 8px 8px 0;
            margin: 1.5rem 0;
        }
        .test-phrases {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin: 1.25rem 0;
        }
        .phrase-btn {
            background-color: rgba(44, 125, 160, 0.1);
            border: 1px solid rgba(44, 125, 160, 0.2);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        .phrase-btn:hover {
            background-color: rgba(44, 125, 160, 0.2);
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(44, 125, 160, 0.2);
        }
        .analysis-results {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.25rem;
            margin: 1.5rem 0;
        }
        .analysis-card {
            background: white;
            border-radius: 10px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: var(--card-shadow);
        }
        .analysis-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        .analysis-value {
            font-size: 2rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 0.5rem;
        }
        .analysis-label {
            color: var(--text-muted);
            font-size: 0.9rem;
            font-weight: 600;
        }
     
        @media (max-width: 992px) {
            .analysis-results {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 768px) {
            .recording-controls {
                flex-direction: column;
            }
            .recording-controls .btn {
                width: 100%;
            }
            .analysis-results {
                grid-template-columns: 1fr;
            }
            .viz-switch {
                top: 10px;
                right: 10px;
            }
        }
      
        .volume-warning {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 5;
            background: rgba(220, 53, 69, 0.9);
            color: white;
            padding: 5px 10px;
            border-radius: 6px;
            font-size: 0.8rem;
            display: none;
            animation: fadeIn 0.5s;
        }
        .tooltip-inner {
            background-color: rgba(0, 0, 0, 0.8);
            border-radius: 6px;
            padding: 8px 12px;
        }
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-color);
        }