/* triathlon-calculator.css - Combined and Unminified */

/* General container for the entire calculator */
.triathlon-calculator-container {
    /*max-width: 800px;*/
    margin: 10px auto;
    padding: 24px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    color: #333;
}

.triathlon-calculator-container h1 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 30px;
    font-size: 2em;
}

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

.triathlon-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.triathlon-form input[type="text"],
.triathlon-form input[type="number"],
.triathlon-form input[type="date"],
.triathlon-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in width */
    font-size: 1em;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.triathlon-form input[type="text"]:focus,
.triathlon-form input[type="number"]:focus,
.triathlon-form input[type="date"]:focus,
.triathlon-form select:focus {
    border-color: #007bff;
    outline: none;
}

.triathlon-form .row-group {
    display: flex;
    gap: 20px;
}

.triathlon-form .row-group .form-item {
    flex: 1;
}

.triathlon-form .input-with-select {
    display: flex;
    align-items: center;
}

.triathlon-form .input-with-select input {
    flex: 1;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.triathlon-form .input-with-select select {
    width: auto;
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: #eee;
    padding-left: 10px;
    padding-right: 10px;
}

.triathlon-form .checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 20px;
}

.triathlon-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.triathlon-form .checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    color: #333;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.form-actions button {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 200px;
    margin: 0 10px;
}

.form-actions #calculatePlanBtn {
    background-color: #007bff;
    color: white;
}

.form-actions #calculatePlanBtn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.form-actions #linkTelegramBtn {
    background-color: #0088cc; /* Telegram blue */
    color: white;
}

.form-actions #linkTelegramBtn:hover {
    background-color: #006699;
    transform: translateY(-2px);
}

/* Loading, Plan Results, Telegram Message sections */
#loadingMessage, /* Using ID to target specific div */
#planResults,    /* Using ID to target specific div */
#telegramLinkMessage /* Using ID to target specific div */
{
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #e9f5ff;
    border: 1px solid #b3d9ff;
    color: #333;
    text-align: center;
    display: none; /* Hidden by default, controlled by JS */
}

#loadingMessage {
    background-color: #fff3cd; /* From user's original CSS */
    border-color: #ffeeba; /* From user's original CSS */
    color: #664d03; /* From user's original CSS */
    font-weight: bold;
    font-size: 18px; /* Added for consistency */
}

.error-message { /* Used by JS for error display */
    background-color: #ffe0e0;
    color: #dc3545;
    border: 1px solid #dc3545;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
}

.no-data-message { /* Used by JS for no data display */
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
}


/* Styling for the main plan content container (where results are injected) */
#planContent { /* Targeting the specific ID where structured HTML is injected */
    background-color: #f0f8ff; /* Background from user's original CSS */
    padding: 15px; /* From user's original CSS */
    border-radius: 5px; /* From user's original CSS */
    border: 1px solid #cceeff; /* From user's original CSS */
    /* Limit height for long plans - from user's original CSS */
    /* max-height: 500px; */
    overflow-y: auto; /* Add scroll if content overflows - from user's original CSS */
    text-align: left; /* Ensure text alignment is left for structured content */
    margin-top: 20px; /* Add some space above the content */
}


#telegramLinkMessage p {
    text-align: left;
    margin-bottom: 10px;
}

#telegramLinkMessage ol {
    text-align: left;
    margin-left: 20px;
}

#telegramLinkMessage a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

#telegramLinkMessage a:hover {
    text-decoration: underline;
}


/* Styling for new JSON output sections (n8n- section containers) */
.n8n-section-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.n8n-section-container:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.n8n-section-container h2 {
    color: #333;
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.n8n-section-container h2::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Specific icon for each section (REPLACE THESE URLs with actual icon paths) */
.n8n-overview h2::before {
    background-image: url('https://example.com/wp-content/uploads/2024/01/overview-icon.png'); /* Replace with actual overview icon */
}
.n8n-performance h2::before {
    background-image: url('https://example.com/wp-content/uploads/2024/01/trophy-icon.png'); /* Replace with actual performance icon */
}
.n8n-phases h2::before {
    background-image: url('https://example.com/wp-content/uploads/2024/01/calendar-icon.png'); /* Replace with actual phases icon */
}
.n8n-notes-section h2::before {
    background-image: url('https://example.com/wp-content/uploads/2024/01/notes-icon.png'); /* Replace with actual notes icon */
}
.n8n-overall-schedule h2::before {
    background-image: url('https://example.com/wp-content/uploads/2024/01/overall-schedule-icon.png'); /* Replace with actual icon */
}


/* Styling for estimated race performance list */
.n8n-performance ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.n8n-performance ul li {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.n8n-performance ul li strong {
    color: #0056b3;
    margin-right: 5px;
}

.performance-notes {
    font-style: italic;
    color: #666;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

/* Training Phases styling */
.n8n-phase-container {
    background-color: #fefefe;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.n8n-phase-container h3 {
    color: #007bff;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px dashed #a7d9ff;
    padding-bottom: 8px;
}

.n8n-phase-container .phase-guidelines {
    font-style: italic;
    color: #555;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Weekly Schedule container */
.n8n-weekly-schedules {
    margin-top: 25px;
}

.n8n-week-container {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.n8n-week-container h4 {
    color: #495057;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #ced4da;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.n8n-week-container .weekly-focus-text {
    font-style: italic;
    font-size: 16px;
    color: #6c757d;
}

/* Training Plan Table Styling (Detailed weekly plan) */
.n8n-training-plan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.n8n-training-plan-table th,
.n8n-training-plan-table td {
    border: 1px solid #dee2e6;
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.n8n-training-plan-table thead th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.n8n-training-plan-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.n8n-training-plan-table tbody tr:hover {
    background-color: #e9ecef;
}

.n8n-training-plan-table td strong {
    color: #333;
}


/* Additional Notes Styling */
.n8n-notes-section .note-item {
    background-color: #f8f9fa;
    border-left: 4px solid #28a745; /* Green border for notes */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.n8n-notes-section .note-item strong {
    color: #218838;
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.n8n-notes-section .note-item p {
    margin: 0;
    line-height: 1.6;
    color: #444;
}


/* Overall Schedule Table Styling (Calendar-like) */
.overall-schedule-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.overall-schedule-description .legend-text {
    font-style: italic;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.overall-schedule-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    background-color: #fcfcfc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden; /* Ensures border-radius applies to table corners */
}

.overall-schedule-calendar-table th,
.overall-schedule-calendar-table td {
    border: 1px solid #e9ecef;
    padding: 8px 10px; /* Slightly reduced padding for compactness */
    text-align: center;
    vertical-align: top;
    min-width: 100px; /* Minimum width for day columns */
}

.overall-schedule-calendar-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overall-schedule-calendar-table .week-number-cell {
    font-weight: bold;
    background-color: #f0f8ff; /* Light blue for week number cells */
    color: #0056b3;
}

.overall-schedule-calendar-table .day-workout-cell {
    font-size: 13px; /* Slightly smaller font for workout details */
    line-height: 1.4;
    position: relative; /* Needed for responsive labels if implemented */
}

.overall-schedule-calendar-table .day-workout-cell span {
    display: block; /* Each workout on a new line */
    padding: 2px 0;
    margin-bottom: 3px;
    border-radius: 3px;
    background-color: #e6f7ff; /* Lighter background for each workout item */
    border: 1px solid #cceeff;
}

.overall-schedule-calendar-table .day-workout-cell .no-workout {
    background-color: #f8f8f8; /* Different background for rest/light days */
    color: #888;
    font-style: italic;
    border: 1px solid #eee;
}

.overall-schedule-calendar-table tbody tr:hover .week-number-cell {
    background-color: #d9ecff; /* Hover effect for week number */
}

.overall-schedule-calendar-table tbody tr:hover .day-workout-cell span {
    background-color: #d9ecff; /* Hover effect for workout items */
    border-color: #b3d9ff;
}

.overall-schedule-calendar-table tbody tr:hover .day-workout-cell .no-workout {
    background-color: #f0f0f0; /* Hover effect for no workout items */
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .triathlon-calculator-container {
        padding: 20px;
        margin: 20px;
    }

    .triathlon-form .row-group {
        flex-direction: column;
        gap: 0;
    }

    .form-actions button {
        width: 100%;
        margin: 10px 0;
    }

    /* Responsive tables: Make them horizontally scrollable */
    .n8n-training-plan-table,
    .overall-schedule-calendar-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap; /* Prevents wrapping within cells on small screens */
        width: calc(100% + 20px); /* Adjust width to account for negative margin/padding */
        margin-left: -10px; /* Compensate for page padding */
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Adjust cell sizes for smaller screens */
    .n8n-training-plan-table th,
    .n8n-training-plan-table td,
    .overall-schedule-calendar-table th,
    .overall-schedule-calendar-table td {
        min-width: 80px; /* Smaller min-width for columns */
        padding: 6px 8px; /* Reduced padding */
        font-size: 12px; /* Smaller font size */
    }

    .overall-schedule-calendar-table .week-number-cell {
        min-width: 60px; /* Smaller min-width for week number column */
    }

    .overall-schedule-calendar-table .day-workout-cell span {
        padding: 1px 0;
        margin-bottom: 2px;
    }

    /* If you want to use the data-label approach for detailed table, uncomment and apply this: */
    /*
    .n8n-training-plan-table thead, .n8n-training-plan-table tbody, .n8n-training-plan-table th, .n8n-training-plan-table td, .n8n-training-plan-table tr {
        display: block;
    }
    .n8n-training-plan-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .n8n-training-plan-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }
    .n8n-training-plan-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    .n8n-training-plan-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
    */
}
/* --- NEW: Tabbed Interface Styling --- */
.n8n-tabs-container {
    margin-top: 25px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.n8n-tabs-nav {
    display: flex;
    flex-wrap: wrap; /* Allows tabs to wrap onto next line on smaller screens */
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    gap: 5px; /* Space between tab buttons */
}

.n8n-tab-button {
    background-color: #e9ecef;
    color: #495057;
    padding: 12px 20px;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent; /* For active indicator */
    white-space: nowrap; /* Prevent text wrapping inside buttons */
}

.n8n-tab-button:hover {
    background-color: #dee2e6;
    color: #212529;
}

.n8n-tab-button.active {
    background-color: #007bff;
    color: white;
    border-bottom: 2px solid #0056b3; /* Highlight active tab */
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1; /* Bring active tab to front */
}

.n8n-tab-content-wrapper {
    padding: 10px 0; /* Padding around tab content */
}

.n8n-tab-content {
    display: none; /* Hidden by default, shown by JS */
    animation: fadeIn 0.5s ease-in-out; /* Simple fade in effect */
}

/* Keyframe for fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Adjust section containers within tabs for consistent padding/margin */
.n8n-tab-content .n8n-section-container {
    margin-bottom: 0; /* Remove bottom margin as each section is now in its own tab */
    box-shadow: none; /* Remove redundant shadow as tab container has shadow */
    border: none; /* Remove redundant border */
    padding: 0; /* Remove default section padding, use tab content padding instead */
    background-color: transparent; /* Remove background, use tab content background */
}

.n8n-tab-content .n8n-section-container h2 {
    /* Keep heading styles but remove bottom border if it conflicts with tab UI */
    border-bottom: none; /* Remove section heading border as tab nav handles separation */
    padding-bottom: 0;
    margin-bottom: 15px; /* Adjust margin for section headings */
}

/* Ensure consistent spacing inside tab content for various elements */
.n8n-tab-content .n8n-section-container p,
.n8n-tab-content .n8n-section-container ul,
.n8n-tab-content .n8n-section-container table,
.n8n-tab-content .n8n-section-container .charts-container {
    margin-bottom: 20px; /* Add some consistent margin between elements within a section */
}

/* Specific adjustments for sections inside tabs that might need it */
.n8n-tab-content .n8n-overview p {
    line-height: 1.6;
}
.n8n-tab-content .n8n-performance ul {
    gap: 15px;
}
.n8n-tab-content .n8n-notes-section .note-item {
    margin-bottom: 10px;
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .n8n-tabs-nav {
        flex-direction: column; /* Stack tabs vertically on mobile */
        border-bottom: none;
        gap: 0; /* Remove gap when stacked */
    }

    .n8n-tab-button {
        border-radius: 5px; /* Full border-radius when stacked */
        margin-bottom: 5px; /* Space between stacked buttons */
        text-align: left;
        border: 1px solid #e0e0e0;
    }

    .n8n-tab-button.active {
        border-bottom: 1px solid #0056b3; /* Still highlight active */
        border-color: #0056b3; /* Active border for stacked tabs */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .n8n-tabs-container {
        padding: 10px;
    }
}
/* --- Mobile Optimization for Tables --- */

/* Detailed Training Plan Table (n8n-training-plan-table) */
@media screen and (max-width: 768px) {

    .n8n-training-plan-table,
    .n8n-training-plan-table thead,
    .n8n-training-plan-table tbody,
    .n8n-training-plan-table th,
    .n8n-training-plan-table td,
    .n8n-training-plan-table tr {
        display: block;
        /* Make all table elements behave like block elements */
    }

    .n8n-training-plan-table thead tr {
        position: absolute;
        top: -9999px;
        /* Hide table headers visually but keep them for screen readers */
        left: -9999px;
    }

    .n8n-training-plan-table tr {
        border: 1px solid #ddd;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        /* Ensures rounded corners are visible */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .n8n-training-plan-table td {
        border: none;
        /* Remove individual cell borders */
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        /* Make space for the pseudo-element label */
        text-align: right;
        /* Align content to the right */
        padding: 10px;
        /* Adjust padding */
        font-size: 0.95em;
    }

    .n8n-training-plan-table td:last-child {
        border-bottom: 0;
        /* No border on the last cell */
    }

    /* Use data-label attribute to create pseudo-element labels for each cell */
    .n8n-training-plan-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        /* Adjust width of the label */
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }

    /* Specific adjustments for rowspan cells */
    .n8n-training-plan-table td[rowspan] {
        border-bottom: none;
        /* Remove bottom border for rowspan cells */
    }

    .n8n-training-plan-table tr:first-child td[rowspan] {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .n8n-training-plan-table tr:last-child td[rowspan] {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    /* Adjust for multi-detail rows */
    .n8n-training-plan-table td[rowspan]:not(:first-child) {
        border-top: 1px solid #eee;
        /* Add top border for subsequent cells in a rowspan group */
    }


    /* Overall Schedule Table (overall-schedule-calendar-table) */
    .overall-schedule-calendar-table {
        font-size: 0.85em;
        /* Reduce font size */
    }

    .overall-schedule-calendar-table th,
    .overall-schedule-calendar-table td {
        padding: 6px 3px;
        /* Smaller padding */
        white-space: normal;
        /* Allow text to wrap */
    }

    .overall-schedule-calendar-table .day-workout-cell {
        min-width: 60px;
        /* Set a minimum width for day cells */
        max-width: 100px;
        /* Set a maximum width */
        overflow: hidden;
        text-overflow: ellipsis;
        /* Add ellipsis for overflow text */
    }

    .overall-schedule-calendar-table .day-workout-cell span {
        display: block;
        /* Each workout on a new line */
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .overall-schedule-calendar-table .week-number-cell {
        min-width: 50px;
        max-width: 70px;
    }

    /* Make the overall schedule table scrollable horizontally if needed */
    .n8n-overall-schedule {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }

    .overall-schedule-calendar-table {
        min-width: 600px;
        /* Ensure table is wide enough to trigger scroll on small screens */
    }
}
/* New styles for Email PDF prompt and inline email section */
.message-container {
    padding: 20px;
    border-radius: 8px;
    background-color: #e0f7fa;
    /* Light blue background */
    border: 1px solid #b2ebf2;
    color: #00796b;
    /* Darker teal text */
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.message-container h2 {
    color: #004d40;
    /* Even darker teal */
    margin-bottom: 15px;
    font-size: 1.6em;
}

.message-container p {
    margin-bottom: 15px;
}

.form-group-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* Space between input and button */
    margin-bottom: 15px;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.n8n-input-inline {
    flex-grow: 1;
    /* Allow input to grow */
    max-width: 300px;
    /* Max width for input */
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.n8n-button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Space between buttons */
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.n8n-button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    /* Prevent button text from wrapping */
}

.n8n-button-primary {
    background-color: #007bff;
    /* Blue */
    color: white;
}

.n8n-button-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.n8n-button-secondary {
    background-color: #6c757d;
    /* Gray */
    color: white;
}

.n8n-button-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

.n8n-message-inline {
    margin-top: 10px;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    text-align: center;
    background-color: #f8d7da;
    /* Light red for error */
    color: #721c24;
    /* Dark red for error */
    border: 1px solid #f5c6cb;
    display: none;
    /* Hidden by default */
}

.n8n-message-inline[style*="green"] {
    background-color: #d4edda;
    /* Light green for success */
    color: #155724;
    /* Dark green for success */
    border-color: #c3e6cb;
}

.n8n-message-inline[style*="blue"] {
    background-color: #e0f7fa;
    /* Light blue for info */
    color: #00796b;
    /* Dark teal for info */
    border-color: #b2ebf2;
}

/* Section for sending PDF after plan is displayed */
.n8n-send-pdf-section {
    background-color: #f8f9fa;
    /* Lighter background for this section */
    border: 1px solid #e2e6ea;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    /* Space above this section */
    text-align: center;
}

.n8n-send-pdf-section h3 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.3em;
}

@media screen and (max-width: 576px) {

    .form-group-inline,
    .n8n-button-group {
        flex-direction: column;
        /* Stack items vertically on very small screens */
        gap: 10px;
    }

    .n8n-input-inline {
        max-width: 100%;
        /* Full width on small screens */
    }

    .n8n-button {
        width: 100%;
        /* Full width buttons */
    }
}