/* /tools/project-deadline-calculator/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;
}

.ac-row-flex {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.ac-row-flex>div {
    flex: 1;
}

/* 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;
    }

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

    .ac-row-flex {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Custom Tool Assets --- */

/* --- Forms & Inputs --- */
.ac-input-group {
    margin-bottom: 1.5em;
}

.ac-sub-label {
    font-size: 0.85em;
    color: var(--color-text-secondary);
    margin-top: 5px;
    display: block;
}

.ac-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-text-main);
}

.ac-checkbox-label input {
    width: 18px;
    height: 18px;
}


/* --- Task List --- */
#actb-task-list {
    margin-bottom: 1em;
}

.ac-dynamic-row {
    display: grid;
    grid-template-columns: 3fr 1fr 40px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.ac-btn-remove {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fee;
    background: #fff5f5;
    color: #e53e3e;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.ac-btn-remove:hover {
    background: #e53e3e;
    color: #fff;
    border-color: #e53e3e;
}

/* Analysis Messages */
.ac-msg-box {
    padding: 1.5em;
    border-radius: var(--radius-md);
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.ac-msg-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #856404;
}