:root {
            --primary-color: #2e7d32;
            --secondary-color: #c8e6c9;
            --accent-color: #1b5e20;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #388e3c;
            --warning-color: #f57c00;
            --profit-color: #2e7d32;
            --revenue-color: #1976d2;
            --cost-color: #d32f2f;
        } 
        .page-header {
            background: linear-gradient(135deg, rgba(200, 230, 201, 0.4) 0%, rgba(46, 125, 50, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(46, 125, 50, 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(46, 125, 50, 0.15);
        }
        .currency-input {
            position: relative;
        }
        .currency-symbol {
            position: absolute;
            left: 4px;
            top: 52%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-weight: 500;
        }
        .currency-input .financial-result {
            padding: 12px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #eee;
            font-size: 1.1rem;
            margin: 10px 0;
        }
        .profit-margin-display {
            font-size: 1.5rem;
            padding: 20px;
            background-color: rgba(46, 125, 50, 0.05);
            border-left: 4px solid var(--profit-color);
            border-radius: 4px;
            margin: 15px 0;
            text-align: center;
        }
        .formula-box {
            background-color: rgba(25, 118, 210, 0.05);
            border-left: 3px solid var(--revenue-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        @media (max-width: 768px) {
            }
        .financial-examples {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .example-btn {
            background-color: rgba(46, 125, 50, 0.1);
            border: 1px solid rgba(46, 125, 50, 0.2);
            border-radius: 4px;
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.2s;
        }
        .example-btn:hover {
            background-color: rgba(46, 125, 50, 0.2);
            transform: translateY(-2px);
        }
        .calculation-step {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed var(--border-color);
        }
        .financial-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .financial-table th, .financial-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        .financial-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .financial-table tr:nth-child(even) {
            background-color: rgba(46, 125, 50, 0.05);
        }
        .financial-metric {
            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);
        }
        .metric-value {
            font-family: 'Courier New', monospace;
            background-color: rgba(46, 125, 50, 0.1);
            padding: 0.5rem;
            border-radius: 4px;
            margin: 0 0.5rem;
        }
        .metric-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: 20px;
            border-radius: 4px;
            margin-right: 0.5rem;
        }
        .revenue-color {
            background-color: rgba(25, 118, 210, 0.8);
        }
        .cost-color {
            background-color: rgba(211, 47, 47, 0.8);
        }
        .profit-color {
            background-color: rgba(46, 125, 50, 0.8);
        }
        .profitability-indicator {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.85rem;
        }
        .high-profit {
            background-color: rgba(46, 125, 50, 0.15);
            color: var(--profit-color);
        }
        .medium-profit {
            background-color: rgba(245, 124, 0, 0.15);
            color: #f57c00;
        }
        .low-profit {
            background-color: rgba(211, 47, 47, 0.15);
            color: #d32f2f;
        }
        .industry-bar {
            height: 24px;
            background-color: #e9ecef;
            border-radius: 4px;
            margin-bottom: 8px;
            position: relative;
            overflow: hidden;
        }
        .industry-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        .industry-label {
            margin-bottom: 4px;
            font-size: 0.9rem;
        }
        .history-section {
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            margin-top: 2rem;
            padding: 1.5rem;
        }
        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            border-bottom: 1px solid var(--border-color);
            transition: background-color 0.2s;
        }
        .history-item:hover {
            background-color: var(--light-gray);
        }
        .history-item:last-child {
            border-bottom: none;
        }
        .history-item-info {
            display: flex;
            flex-direction: column;
        }
        .history-item-date {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .history-item-margin {
            font-weight: 600;
            color: var(--primary-color);
        }
        .history-item-actions {
            display: flex;
            gap: 0.5rem;
        }
        .export-buttons {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        .btn-export {
            background-color: white;
            border: 1px solid var(--border-color);
            color: var(--text-color);
        }
        .btn-export:hover {
            background-color: var(--light-gray);
            border-color: var(--primary-color);
            color: var(--primary-color);
        }
        .currency-selector {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }
        .currency-flag {
            width: 24px;
            height: 16px;
            margin-right: 8px;
            border-radius: 2px;
        }
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        .industry-details {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
        .form-control-group {
            margin-bottom: 1.5rem;
        }
        @keyframes pulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }
        .loading-pulse {
            animation: pulse 1.5s infinite;
        }
        .tooltip-custom {
            position: relative;
            display: inline-block;
        }
        .tooltip-custom .tooltip-text {
            visibility: hidden;
            width: 200px;
            background-color: var(--text-color);
            color: white;
            text-align: center;
            border-radius: 6px;
            padding: 8px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.85rem;
            font-weight: normal;
        }
        .tooltip-custom:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }
        .alert-custom {
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid transparent;
        }
        .alert-success {
            background-color: rgba(46, 125, 50, 0.1);
            border-color: rgba(46, 125, 50, 0.2);
            color: var(--primary-color);
        }
        .alert-info {
            background-color: rgba(25, 118, 210, 0.1);
            border-color: rgba(25, 118, 210, 0.2);
            color: var(--revenue-color);
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
        }
        .data-table th, .data-table td {
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            text-align: left;
        }
        .data-table th {
            background-color: var(--light-gray);
        }