/* General page styling for MAIN_PAGE plugins (comin, coper, destine, freva, intake, local, loco)*/
#page-wrapper {
    background: linear-gradient(to bottom, #e9edf2, #ffffff); /* Or gradient/background you like */
    min-height: 100vh;
    padding-top: 20px;
    padding-bottom: 20px;
}

#content-wrapper {
    font-family: 'Segoe UI', 'Inter', Roboto, Arial, sans-serif;
    font-size: 16px;
    color: #212529;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    background-color: white;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Headings inside Intake */
#content-wrapper h1 {
    font-size: 26px;
    font-weight: 600;
    color: #1f2e3d;
    margin-bottom: 20px;
}

#content-wrapper h4 {
    font-size: 22px;
    font-weight: 500;
    color: #007bff;
    margin: 16px 0 8px;
}

#content-wrapper h5 {
    font-size: 18px;
    font-weight: 500;
    color: #007bff;
    margin: 16px 0 8px;
}

/* Labels */
#content-wrapper label {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0 6px;
    color: #2c3e50;
    display: block;
}

/* Section headers and labels */
#content-wrapper label,
#content-wrapper h5,
#content-wrapper h4 {
    margin-top: 20px;
    margin-bottom: 6px;
    display: block;
    font-weight: 600;
    color: #333;
}

/* Dropdowns and inputs */
#content-wrapper .Select-control,
#content-wrapper input,
#content-wrapper .dash-dropdown,
#content-wrapper .dash-input {
    margin-bottom: 16px;
    font-size: 15px;
}


/* General page styling for PLUGIN (left panel). Use it on comin, coper, destine, freva, intake, local, loco */
#plugin-panel {
    background-color: transparent;
    padding: 10px 10px 10px 0;  /* less padding */
    font-size: 15px;
    color: #333;
    min-height: 100%;
    max-width: 180px;
    flex-shrink: 0;
}

#plugin-panel h4 {
    margin: 0 0 8px 0; /* tighter */
    color: #007bff;
    font-weight: 600;
    font-size: 16px;
}

#plugin-panel ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

#plugin-panel li {
    margin-bottom: 8px;
}

#plugin-panel a {
    color: #007bff;
    text-decoration: none;
}

#plugin-panel a:hover {
    text-decoration: underline;
}

#plugin-panel h4 a {
    color: #007bff;
}

#plugin-panel h4 a:hover {
    text-decoration: underline;
}


/* General styling for figures: */
/* === Plot preview styling === */
.plot-container {
    text-align: center;
    margin-top: 20px;
}

.plot-image {
    width: 100%;
    max-width: 900px;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.plot-caption {
    font-size: 1.5em;
    color: #555;
    text-align: center;
    margin-top: 8px;
}

/* === General buttons styles === */
.btn {
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Button Color Variants */
.normal-button {
    background-color: #007bff;
}

.danger-button {
    background-color: #dc3545;
}

.success-button {
    background-color: #28a745;
}

.teal-button {
    background-color: #17a2b8;
}

/* Grouped Layout for buttons */
.button-group {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* === Frosted Card Base === */
.frosted-card {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 30px auto;
    text-align: left;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.frosted-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.frosted-card.blue-border {
    border: 1px solid #007bff;
}

.frosted-card.transparent {
    background-color: transparent;
    box-shadow: none;
}


/* === Generic 3-Column Checkbox Layout === */
.checkbox-column-group {
    column-count: 3;
    column-gap: 24px;
    margin-top: 10px;
}

/* Prevent break between checkboxes */
.checkbox-column-group .dash-checkbox {
    break-inside: avoid-column;
    margin-bottom: 12px;
}

/* Align labels and allow text wrapping */
.checkbox-column-group .dash-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 240px;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.checkbox-column-group .dash-checkbox input {
    vertical-align: middle;
    margin-top: 3px; /* aligns checkbox nicely */
}

/* Style panel for printing output results */
.log-title {
    margin-top: 30px;
}


/* Log display box */
.log-box {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;

    /* Text behavior */
    white-space: pre-wrap;        /* Preserve line breaks and wrap lines */
    word-break: break-word;       /* Break long words if needed */

    /* Add spacing */
    margin-top: 12px;            /* gap above */
    margin-bottom: 8px;          /* small gap below */
}

/* Hide empty boxes completely */
.log-box:empty {
    display: none;
}


/* Short message box*/
.display-box {
    margin-top: 20px;
    white-space: pre-wrap;
    background-color: rgba(255,255,255,0.5);
    backdrop-filter: blur(6px);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: monospace;
    font-size: 14px;
    color: #111;
}




/* Style panel for warrning messages */
.status-message {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}
.status-warning { color: #d9534f; }   /* red */
.status-success { color: #3c763d; }   /* green */
.status-info    { color: #31708f; }   /* blue */




