:root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --math-color: #6f42c1;
            --calc-color: #e83e8c;
            --trig-color: #17a2b8;
            --tan-color: #20c997;
        }
       .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 1.5rem 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(--text-color);
        }
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.15);
        }
        .math-input {
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            font-size: 1.1rem;
        }
        .math-result {
            padding: 12px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #eee;
            font-size: 1.1rem;
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            margin: 10px 0;
            text-align: center;
        }
        .math-equation {
            font-size: 1.3rem;
            padding: 15px;
            background-color: rgba(23, 162, 184, 0.05);
            border-left: 4px solid var(--trig-color);
            border-radius: 4px;
            margin: 15px 0;
        }
        .trig-box {
            background-color: rgba(23, 162, 184, 0.05);
            border-left: 3px solid var(--trig-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        @media (max-width: 768px) {
            }
        .function-examples {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .example-btn {
            background-color: rgba(44, 125, 160, 0.1);
            border: 1px solid rgba(44, 125, 160, 0.2);
            border-radius: 4px;
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Courier New', monospace;
        }
        .example-btn:hover {
            background-color: rgba(44, 125, 160, 0.2);
            transform: translateY(-2px);
        }
        .math-notation {
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            font-size: 1.1rem;
        }
        .calculation-step {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed var(--border-color);
        }
        .parameter-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .parameter-table th, .parameter-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        .parameter-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .parameter-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        .parameter-item {
            display: flex;
            align-items: center;
            margin: 1rem 0;
            padding: 1rem;
            background-color: rgba(255,255,255,0.8);
            border-radius: 6px;
            border: 1px solid var(--border-color);
        }
        .parameter-value {
            font-family: 'Courier New', monospace;
            background-color: rgba(44, 125, 160, 0.1);
            padding: 0.5rem;
            border-radius: 4px;
            margin: 0 0.5rem;
        }
        .parameter-label {
            font-weight: 600;
            margin-right: 0.5rem;
        }
        .graph-legend {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-top: 1rem;
        }
        .legend-item {
            display: flex;
            align-items: center;
        }
        .legend-color {
            width: 20px;
            height: 4px;
            margin-right: 0.5rem;
        }
        .function-color {
            background-color: rgba(44, 125, 160, 0.8);
        }
        .period-color {
            background-color: rgba(23, 162, 184, 0.8);
        }
        .amplitude-color {
            background-color: rgba(232, 62, 140, 0.8);
        }
        .parameter-inputs {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .parameter-input-group {
            display: flex;
            flex-direction: column;
        }
        .parameter-input {
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 0.5rem;
            font-family: 'Courier New', monospace;
        }
        .parameter-input-label {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        .wave-visualization {
            height: 150px;
            width: 100%;
            position: relative;
            overflow: hidden;
            background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
            border-radius: 8px;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
        }
        .wave-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        .wave-info {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: rgba(255, 255, 255, 0.8);
            padding: 0.5rem;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        .ad-placeholder {
            font-size: 1.2rem;
        }
        .results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .result-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            text-align: center;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .result-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        .result-unit {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-left: 0.25rem;
        }
        .result-label {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        .settings-panel {
            background-color: rgba(44, 125, 160, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(44, 125, 160, 0.2);
        }
        .settings-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
        .settings-options {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }
        .setting-option {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .setting-label {
            font-weight: 500;
        }
        .key-points-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .key-points-table th, .key-points-table td {
            padding: 0.75rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        .key-points-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .key-points-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        .export-buttons {
            display: flex;
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .export-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            background-color: white;
            border: 1px solid var(--border-color);
            color: var(--text-color);
            font-weight: 600;
            transition: all 0.3s;
        }
        .export-btn:hover {
            background-color: var(--light-gray);
            transform: translateY(-2px);
            color: var(--primary-color);
        }
        @keyframes wave-pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        .wave-animated {
            animation: wave-pulse 2s ease-in-out infinite;
        }
        .unit-toggle {
            display: flex;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            overflow: hidden;
            width: fit-content;
        }
        .unit-option {
            padding: 0.5rem 1rem;
            background-color: white;
            cursor: pointer;
            transition: all 0.3s;
        }
        .unit-option.active {
            background-color: var(--primary-color);
            color: white;
        }
        .unit-option:not(.active):hover {
            background-color: var(--light-gray);
        }
        .advanced-options {
            background-color: rgba(23, 162, 184, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(23, 162, 184, 0.2);
        }
        .advanced-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--trig-color);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .advanced-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        .advanced-content.show {
            max-height: 500px;
            transition: max-height 0.5s ease-in;
        }
        .point-marker {
            position: absolute;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: rgba(220, 53, 69, 0.8);
            transform: translate(-50%, -50%);
            z-index: 10;
            box-shadow: 0 0 5px rgba(0,0,0,0.3);
        }
        .point-label {
            position: absolute;
            font-size: 0.8rem;
            background-color: rgba(255,255,255,0.9);
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid var(--border-color);
            transform: translate(-50%, 10px);
            z-index: 10;
            white-space: nowrap;
        }