.fitlog-module *{ margin: 0; padding: 0; box-sizing: border-box; }
        .fitlog-module{ 
            --primary-color: #667302; --success-color: #93A603;
            --warning-color: #667302; --danger-color: #384001;
            --light-gray: #f4f5ea; --dark-gray: #384001; --text-color: #222601;
            --border-radius: 10px; --shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .fitlog-module{ font-family: -apple-system, sans-serif; background: var(--light-gray); color: var(--text-color); padding: 20px; }
        .fitlog-module .container{ max-width: 1400px; margin: 0 auto; }
        .fitlog-module .card{ background: white; border-radius: var(--border-radius); margin-bottom: 20px; box-shadow: var(--shadow); overflow: hidden; }
        .fitlog-module .card-header{ background: var(--primary-color); color: white; padding: 15px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
        .fitlog-module .card-content{ padding: 20px; }
        .fitlog-module .form-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
        .fitlog-module .form-group{ margin-bottom: 15px; }
        .fitlog-module .form-label{ display: block; margin-bottom: 5px; font-weight: 500; }
        .fitlog-module .form-input{ width: 100%; padding: 10px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 16px; }
        .fitlog-module .form-input-small{ padding: 8px; font-size: 14px; }
        .fitlog-module .form-row{ display: flex; gap: 15px; margin-bottom: 15px; }
        .fitlog-module .form-row .form-group{ flex: 1; margin-bottom: 0; }
        .fitlog-module .form-section{ margin: 20px 0; }
        .fitlog-module .form-section-title{ font-weight: bold; margin-bottom: 10px; color: var(--primary-color); padding-bottom: 5px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
        .fitlog-module .error{ color: var(--danger-color); font-size: 12px; margin-top: 5px; }
        .fitlog-module .btn{ padding: 12px 20px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; text-align: center; display: inline-block; transition: opacity 0.2s; }
        .fitlog-module .btn:hover{ opacity: 0.9; }
        .fitlog-module .btn-primary{ background: var(--primary-color); color: white; }
        .fitlog-module .btn-success{ background: var(--success-color); color: white; }
        .fitlog-module .btn-warning{ background: var(--warning-color); color: white; }
        .fitlog-module .btn-danger{ background: var(--danger-color); color: white; }
        .fitlog-module .btn-small{ padding: 6px 12px; font-size: 14px; }
        .fitlog-module .btn-icon{ padding: 8px; border-radius: 6px; min-width: 36px; }
        .fitlog-module .btn-block{ width: 100%; }
        .fitlog-module .btn-history-action{ border: none; margin-bottom: 5px; }
        .fitlog-module .results-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; }
        .fitlog-module .result-card{ background: white; border-radius: var(--border-radius); padding: 15px; text-align: center; box-shadow: var(--shadow); border-left: 4px solid var(--primary-color); }
        .fitlog-module .result-value{ font-size: 24px; font-weight: bold; color: var(--primary-color); }
        .fitlog-module .result-label{ font-size: 14px; color: var(--dark-gray); margin-top: 5px; }
        .fitlog-module .accordion{ background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 15px; }
        .fitlog-module .accordion-header{ padding: 15px; background: #f7f7f7; border-bottom: 1px solid #e0e0e0; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
        .fitlog-module .accordion-content{ padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
        .fitlog-module .accordion-content.active{ padding: 15px; max-height: 2000px; }
        .fitlog-module .accordion-icon{ transition: transform 0.3s ease; }
        .fitlog-module .accordion.active .accordion-icon{ transform: rotate(180deg); }
        .fitlog-module .tabs{ display: flex; margin-bottom: 20px; border-bottom: 1px solid #e0e0e0; overflow-x: auto; }
        .fitlog-module .tab{ padding: 10px 20px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
        .fitlog-module .tab.active{ border-bottom-color: var(--primary-color); color: var(--primary-color); font-weight: bold; }
        .fitlog-module .tab-content{ display: none; }
        .fitlog-module .tab-content.active{ display: block; }
        .fitlog-module .classification{ margin-top: 10px; padding: 8px; border-radius: 5px; text-align: center; font-weight: bold; }
        .fitlog-module .classification-normal{ background: #d4edda; color: #155724; }
        .fitlog-module .classification-warning{ background: #fff3cd; color: #856404; }
        .fitlog-module .classification-danger{ background: #f8d7da; color: #721c24; }
        .fitlog-module table{ width: 100%; border-collapse: collapse; margin: 10px 0; }
        .fitlog-module th, .fitlog-module td{ padding: 10px; text-align: left; border-bottom: 1px solid #f0f0f0; }
        .fitlog-module th{ background: #f7f7f7; font-weight: 600; }
        .fitlog-module .composition-table{ width: 100%; margin: 15px 0; }
        .fitlog-module .composition-table td{ padding: 8px; border-bottom: 1px solid #eee; }
        .fitlog-module .composition-table .component{ font-weight: 500; }
        .fitlog-module .composition-table .value{ text-align: right; font-weight: bold; }
        .fitlog-module .composition-table .percent{ text-align: center; color: var(--dark-gray); }
        .fitlog-module .assessment-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
        .fitlog-module .assessment-card{ background: white; border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow); }
        .fitlog-module .metric-row{ display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
        .fitlog-module .metric-name{ font-weight: 500; }
        .fitlog-module .metric-value{ font-weight: bold; }
        .fitlog-module .zone-visual{ margin: 15px 0; }
        .fitlog-module .zone-bar{ height: 24px; background: #e9ecef; border-radius: 12px; margin: 5px 0; position: relative; overflow: hidden; }
        .fitlog-module .zone-segment{ height: 100%; display: inline-block; }
        .fitlog-module .zone-label{ position: absolute; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: bold; color: white; text-shadow: 0 1px 1px rgba(0,0,0,0.3); }
        .fitlog-module .summary-panel{ background: linear-gradient(135deg, #667302 0%, #384001 100%); color: white; border-radius: var(--border-radius); padding: 25px; margin: 20px 0; }
        .fitlog-module .summary-score{ font-size: 48px; font-weight: bold; text-align: center; margin: 10px 0; }
        .fitlog-module .summary-text{ text-align: center; font-size: 18px; opacity: 0.9; }
        .fitlog-module .validation-error{ border-color: var(--danger-color) !important; }
        
        /* History specific styles */
        .fitlog-module .history-controls{ display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
        .fitlog-module .history-table-container{ overflow-x: auto; }
        .fitlog-module .chart-container{ margin: 20px 0; background: white; border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow); }
        .fitlog-module .chart-title{ font-weight: bold; margin-bottom: 15px; color: var(--primary-color); }
        .fitlog-module .history-comparison{ display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
        .fitlog-module .comparison-card{ background: white; border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow); }
        .fitlog-module .comparison-value{ font-size: 20px; font-weight: bold; text-align: center; margin: 10px 0; }
        .fitlog-module .comparison-change{ text-align: center; font-size: 14px; }
        .fitlog-module .positive-change{ color: var(--success-color); }
        .fitlog-module .negative-change{ color: var(--danger-color); }
        .fitlog-module .no-change{ color: var(--dark-gray); }
        .fitlog-module .date-selector{ display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
        .fitlog-module .session-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
        .fitlog-module .session-date{ font-weight: bold; color: var(--primary-color); }
        .fitlog-module .session-actions{ display: flex; gap: 5px; }
        .fitlog-module .export-options{ display: flex; gap: 10px; margin-top: 15px; }
        .fitlog-module .dataTables_wrapper{ margin-top: 15px; }
        
        .fitlog-module #historyTable{
            width: 100% !important;
            table-layout: fixed;
        }
        .fitlog-module #historyTable th{
            min-width: 100px;
        }
        .fitlog-module #historyTable:not(.display){
            display: table;
        }
        #historyTable:not(.display) th,
        .fitlog-module #historyTable:not(.display) td{
            border: 1px solid #dee2e6;
            padding: 8px;
        }

        /* Mobile responsive tables */
       .fitlog-module @media (max-width: 768px){
            .fitlog-module .form-row{ flex-direction: column; }
            .fitlog-module .history-controls{ flex-direction: column; }
            .fitlog-module .btn{ width: 100%; margin-bottom: 5px; }
            .fitlog-module .btn-icon{
                padding: 6px;
                min-width: 32px;
            }
            .fitlog-module .btn-history-action{ border: none; margin-bottom: 5px; }
            .fitlog-module .dataTables_wrapper .dataTables_scroll{
                overflow-x: auto;
            }
            .fitlog-module .dataTables_wrapper .dataTables_paginate .paginate_button{
                padding: 5px 8px;
                margin: 0 2px;
            }
            .fitlog-module .export-options{ flex-direction: column; }
            .fitlog-module .history-table-container{
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .fitlog-module .session-actions .btn-icon{
                padding: 6px 8px;
                min-width: 36px;
                font-size: 12px;
            }
            .fitlog-module #historyTable{
                table-layout: auto !important;
            }
            #historyTable th:nth-child(8),
            .fitlog-module #historyTable td:nth-child(8){
                min-width: 120px;
                max-width: 120px;
                width: 120px;
            }
            .fitlog-module #historyTable th, .fitlog-module #historyTable td{
                padding: 8px 5px;
                font-size: 14px;
            }
            .fitlog-module #historyTable td:last-child{
                position: relative;
                overflow: visible;
            }
            .fitlog-module #historyTable td:last-child .session-actions{
                display: flex;
                flex-wrap: nowrap;
                gap: 4px;
                justify-content: flex-start;
                min-width: 110px;
            }
        }

        /* Language selector styles */
        .fitlog-module .language-selector{
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            padding: 10px 15px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .fitlog-module .language-selector label{
            font-weight: 500;
            color: #333;
            font-size: 14px;
        }

        .fitlog-module .language-selector select{
            padding: 6px 10px;
            border-radius: 6px;
            border: 1px solid #667302;
            background: white;
            color: #333;
            font-size: 14px;
            cursor: pointer;
        }