* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

header h1 {
    margin-bottom: 15px;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu span {
    color: #ecf0f1;
    font-weight: 500;
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #c0392b;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #34495e;
}

nav a.active {
    background-color: #3498db;
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
}

.nav-item > a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: inline-block;
    cursor: pointer;
}

.nav-item > a::after {
    content: ' ▾';
    font-size: 12px;
    margin-left: 4px;
}

.nav-item > a:hover {
    background-color: #34495e;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 0;
    padding-top: 0px;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    transition: background-color 0.3s;
    border-radius: 0;
}

.dropdown-menu a:first-child {
    border-radius: 4px 4px 0 0;
    padding-top: 10px;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 4px 4px;
}

.dropdown-menu a:hover {
    background-color: #2c3e50;
}

.dropdown-menu a.active {
    background-color: #3498db;
}

main {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.description {
    color: #666;
    margin-bottom: 20px;
}

/* Dashboard Styles */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.card h3 {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.card .value {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

.chart-container {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.allocation-bar {
    margin-bottom: 15px;
}

.allocation-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.allocation-bar-visual {
    height: 30px;
    background-color: #3498db;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.allocation-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s;
}

.allocation-bar-text {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.allocation-inputs {
    margin-bottom: 20px;
}

.allocation-input-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.total-allocation {
    font-size: 18px;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-edit {
    background-color: #f39c12;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    margin-right: 5px;
}

.btn-edit:hover {
    background-color: #d68910;
}

/* Message Styles */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Table Styles */
.investments-table {
    margin-top: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

table tr:hover {
    background-color: #f8f9fa;
}

.actions {
    margin-bottom: 20px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 2vh auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Calculator Styles */
.calculator-input {
    margin-bottom: 30px;
}

.quick-increment-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-increment {
    background-color: #27ae60;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    flex: 1;
    min-width: 80px;
}

.btn-increment:hover {
    background-color: #229954;
}

.calculation-results {
    margin-top: 30px;
}

.summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
}

.summary-item .label {
    color: #666;
}

.summary-item .value {
    color: #2c3e50;
    font-weight: bold;
}

.allocation-result {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.allocation-result h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.allocation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.detail-item .label {
    font-size: 12px;
    color: #666;
    display: block;
}

.detail-item .value {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.investment-allocations {
    margin-top: 15px;
}

.investment-allocations h5 {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.investment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.investment-item .investment-info {
    flex: 1;
}

.investment-item .name {
    font-weight: bold;
}

.investment-item .investment-amounts {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.investment-item .amount {
    color: #27ae60;
    font-weight: bold;
    font-size: 14px;
}

.investment-item .quantity {
    color: #3498db;
    font-weight: 500;
    font-size: 14px;
}

.investment-item .investment-actions {
    display: flex;
    gap: 8px;
}

.btn-deposit {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-deposit:hover {
    background-color: #229954;
}

.investments-list {
    display: grid;
    gap: 10px;
}

.investment-card {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.investment-card h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.investment-card .type {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.investment-card .value {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

/* Charts Section */
.charts-section {
    margin-bottom: 30px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.chart-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.chart-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-wrapper canvas {
    max-height: 100%;
}

/* Responsive adjustments for charts */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-wrapper {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .chart-wrapper {
        height: 200px;
    }
}

/* Profitability Page Styles */
.card .subtext {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.filter-controls {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-controls label {
    font-weight: bold;
    color: #2c3e50;
}

.filter-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.performers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.performers-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.performers-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

.performers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}

.performer-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.performer-rank {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    min-width: 30px;
    text-align: center;
}

.performer-details {
    flex: 1;
}

.performer-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.performer-type {
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

.performer-return {
    text-align: right;
}

.performer-percentage {
    font-size: 18px;
    font-weight: bold;
}

.performer-absolute {
    font-size: 13px;
    margin-top: 2px;
}

.table-container {
    margin-top: 20px;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .performers-grid {
        grid-template-columns: 1fr;
    }

    .performer-item {
        flex-direction: column;
        text-align: center;
    }

    .performer-rank {
        font-size: 20px;
    }

    .performer-return {
        text-align: center;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 1vh auto;
        max-height: 98vh;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-row-grid {
        grid-template-columns: 1fr;
    }

    .period-input-group {
        flex-direction: column;
    }

    .period-input-group input,
    .period-input-group select {
        width: 100%;
    }
}

/* Compound Interest Calculator Styles */
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.period-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.period-input-group input {
    flex: 2;
    width: auto;
}

.period-input-group select {
    flex: 1;
    width: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.monthly-table {
    width: 100%;
    border-collapse: collapse;
}

.monthly-table th,
.monthly-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.monthly-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.monthly-table tr:hover {
    background-color: #f8f9fa;
}

.monthly-table .highlight {
    font-weight: bold;
    color: #27ae60;
}

.summary-item.highlight {
    background-color: #d4edda;
    border-radius: 4px;
    padding: 10px;
}

/* Transactions Styles */
.info-text {
    background-color: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #2c3e50;
}

.transaction-deposit {
    background-color: #d4edda !important;
}

.transaction-withdrawal {
    background-color: #f8d7da !important;
}

.transaction-dividend {
    background-color: #fff3cd !important;
}

.transactions-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

/* FIRE Tradicional Calculator Styles */
.fire-header {
    text-align: center;
    margin-bottom: 40px;
}

.fire-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

.fire-header .description {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.fire-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fire-result-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.fire-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fire-result-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.fire-result-card.primary .label,
.fire-result-card.primary small {
    color: rgba(255, 255, 255, 0.9);
}

.fire-result-card.highlight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.fire-result-card.highlight .label,
.fire-result-card.highlight small {
    color: rgba(255, 255, 255, 0.9);
}

.fire-result-card.success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
}

.fire-result-card.success .label,
.fire-result-card.success small {
    color: rgba(255, 255, 255, 0.9);
}

.fire-result-card .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.fire-result-card .value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.fire-result-card small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Quick Info Section */
.quick-info-section {
    margin: 40px 0;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quick-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.quick-info-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.quick-info-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.quick-info-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Tabs Container */
.fire-content-section {
    margin: 50px 0;
}

.tabs-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-button:hover {
    background-color: #e9ecef;
    color: #2c3e50;
}

.tab-button.active {
    color: #3b82f6;
    background-color: #fff;
    border-bottom-color: #3b82f6;
}

.tabs-content {
    padding: 40px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.tab-panel h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.intro-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

/* Concept Cards */
.concept-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.concept-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #3b82f6;
    transition: all 0.3s ease;
    position: relative;
}

.concept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.concept-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.concept-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.concept-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.concept-card ul {
    list-style: none;
    padding-left: 0;
}

.concept-card ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: #444;
    font-size: 14px;
}

.concept-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Strategy Section */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.strategy-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid #10b981;
    transition: all 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.strategy-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.strategy-card h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.strategy-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.strategy-card ul {
    list-style: none;
    padding-left: 0;
}

.strategy-card ul li {
    padding: 10px 0;
    color: #444;
    line-height: 1.6;
    font-size: 14px;
}

.strategy-card ul li strong {
    color: #2c3e50;
}

/* FAQ Styles */
.faq-list {
    max-width: 100%;
    margin-top: 30px;
}

.faq-item {
    background-color: #f8f9fa;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.faq-item summary {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: all 0.2s ease;
}

.faq-item summary:hover {
    background-color: #e9ecef;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:after {
    content: "+";
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #3b82f6;
    transition: transform 0.2s ease;
}

.faq-item[open] summary:after {
    content: "−";
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 20px 20px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* Warning Cards */
.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.warning-card {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.warning-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.2);
}

.warning-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.warning-card h3 {
    font-size: 18px;
    color: #856404;
    margin-bottom: 10px;
    font-weight: 600;
}

.warning-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #856404;
    margin: 0;
}

.warning-card strong {
    font-weight: 700;
}

/* Responsive adjustments for FIRE page */
@media (max-width: 768px) {
    .fire-header h2 {
        font-size: 28px;
    }

    .fire-results-grid {
        grid-template-columns: 1fr;
    }

    .quick-info-grid {
        grid-template-columns: 1fr;
    }

    .tabs-header {
        flex-direction: column;
    }

    .tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-button.active {
        border-left-color: #3b82f6;
        border-bottom-color: transparent;
    }

    .tabs-content {
        padding: 20px;
    }

    .concept-cards,
    .strategy-grid,
    .warning-grid {
        grid-template-columns: 1fr;
    }

    .fire-result-card .value {
        font-size: 20px;
    }
}

/* Allocations Page - New Design with Sliders and Pie Chart */
.allocations-container {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 40px;
    margin-bottom: 30px;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 12px;
}

.allocations-section .chart-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.allocations-section .chart-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.allocations-section #pieChart {
    display: block;
}

.allocations-section .chart-total {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.allocations-section .total-label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.allocations-section .total-value {
    font-size: 36px;
    font-weight: bold;
}

.allocations-section #totalAllocation {
    color: inherit;
}

.allocations-section .chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 0 20px;
}

.allocations-section .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.allocations-section .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.allocations-section .legend-label {
    white-space: nowrap;
}

.allocations-section .sliders-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

.allocations-section .allocation-slider-group {
    margin-bottom: 25px;
}

.allocations-section .allocation-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: white;
    font-weight: 500;
    font-size: 16px;
}

.allocations-section .color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.allocations-section .allocation-label label {
    flex: 1;
    margin: 0;
    color: white;
}

.allocations-section .allocation-value {
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

.allocations-section .slider-container {
    width: 100%;
}

.allocations-section .allocation-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right,
        var(--slider-color) 0%,
        var(--slider-color) var(--value, 0%),
        #444 var(--value, 0%),
        #444 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.allocations-section .allocation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--slider-color, #3498db);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.allocations-section .allocation-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.allocations-section .allocation-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--slider-color, #3498db);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.allocations-section .allocation-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.allocations-section .allocation-slider::-moz-range-track {
    background: #444;
    height: 8px;
    border-radius: 5px;
}

.allocations-section .slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.allocations-section .form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    background-color: #1a1a1a;
    border-radius: 12px;
}

.allocations-section .btn-secondary {
    background-color: #555;
    color: white;
}

.allocations-section .btn-secondary:hover {
    background-color: #666;
}

/* Responsive design for allocations page */
@media (max-width: 1024px) {
    .allocations-section .allocations-container {
        grid-template-columns: 1fr;
    }

    .allocations-section .chart-container {
        order: 2;
    }

    .allocations-section .sliders-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    .allocations-section .allocations-container {
        padding: 20px;
    }

    .allocations-section #pieChart {
        width: 300px !important;
        height: 300px !important;
    }

    .allocations-section .chart-legend {
        flex-direction: column;
        align-items: flex-start;
    }
}
