/* /tools/profit-planner/style.css */

/* --- Toolbar (Save & Title) --- */
.ac-tool-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 2em;
    background: var(--color-surface);
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ac-plan-name-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-heading);
    font-size: 1.25em;
    font-weight: 700;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.ac-plan-name-input:focus,
.ac-plan-name-input:hover {
    outline: none;
    border-bottom-color: var(--color-border);
}

.ac-toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ac-toolbar-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ac-tool-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 12px;
    }

    .ac-plan-name-input {
        font-size: 1.1em;
        text-align: center;
        border-bottom-color: var(--color-border);
    }

    .ac-toolbar-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ac-toolbar-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Profit Planner Specific Styles (Globals handled in actb-single.css) */

/* --- Stats & Charts --- */
.ac-chart-container {
    height: 300px;
    width: 100%;
    position: relative;
    margin-bottom: 2em;
}

/* --- Goals View --- */
.ac-goal-hero {
    text-align: center;
    padding: 3em;
    background: rgba(var(--color-primary-rgb), 0.05);
    border-radius: var(--radius-lg);
    margin-bottom: 2em;
}

.ac-big-number {
    font-size: 4em;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0.2em 0;
    line-height: 1;
}

/* --- Saved Projects List --- */
.ac-project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.8em;
    transition: all 0.2s;
}

.ac-project-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* --- Currency Toggle --- */
.ac-toggle-group {
    display: flex;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2px;
}

.ac-toggle-item {
    padding: 0.5em 0.8em;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-radius: calc(var(--radius-md) - 2px);
}

.ac-toggle-item.active {
    background: var(--color-surface);
    color: var(--color-heading);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --- Mobile --- */
@media (max-width: 700px) {
    .ac-tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5em;
        /* Space for scrollbar */
    }
}