/* imapsync_form.css – clean white responsive layout */
/* $Id: imapsync_form.css,v 1.14 custom $ */

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
                 Arial, sans-serif;
}

/* Shell */
.ims-app-shell {
    min-height: 100vh;
}

/* Topbar (minimal, no buttons/title) */
.ims-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(6px);
}

.ims-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 12px;
}

/* Main */
.ims-main {
    padding: 18px 12px 28px;
}

.ims-main-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Page head */
.ims-page-head {
    margin: 10px 0 18px;
}

.ims-h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #111827;
}

.ims-lead {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Cards */
.ims-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    padding: 18px 18px 16px;
    margin-bottom: 14px;
}

#account1,
#account2 {
    background-color: #ffffff;
}

.ims-card-legend {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #374151;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid #eef2f7;
}

/* Fields */
.ims-field-block {
    margin-bottom: 14px;
}

.ims-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ims-label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.ims-inline-option {
    font-size: 12px;
    color: #6b7280;
}

/* Inputs */
.ims-input-group .input-group-addon {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-right: none;
    color: #6b7280;
    border-radius: 8px 0 0 8px;
}

.ims-input.form-control {
    height: 42px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 20px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
}

.ims-input.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* Checkboxes */
.ims-checkbox-full {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
    white-space: normal;
}

/* Parameters column */
.ims-parameters-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ims-parameters-separator {
    border-top: 1px dashed #e5e7eb;
    margin: 10px 0;
}

/* Buttons (global) */
.btn {
    border-radius: 10px;
    font-weight: 600;
    white-space: normal;          /* <<< wichtig */
    word-break: break-word;       /* <<< wichtig */
}

.btn-default {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}

.btn-primary {
    background: #2563eb;
    border: 1px solid #2563eb;
}

.btn-danger {
    background: #dc2626;
    border: 1px solid #dc2626;
}

/* >>> FIX: Swap-Button <<< */
.ims-swap-button {
    display: flex;                 /* sauberes Layout */
    flex-direction: column;        /* Text oben, Icon unten */
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    line-height: 1.3;
    text-align: center;
}

.ims-swap-button .glyphicon {
    font-size: 16px;
}

/* Extra input */
.ims-extra-input {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 14px;
}

/* Sync buttons */
.ims-sync-btn,
.ims-stop-btn {
    padding: 12px;
    border-radius: 12px;
}

/* Progress */
#progress-txt {
    text-align: center;
    font-size: 13px;
    margin-bottom: 8px;
}

.ims-progress {
    height: 18px;
    border-radius: 999px;
    background: #eef2f7;
    border: 1px solid #e5e7eb;
}

/* Consoles */
.ims-console-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
}

.ims-console-pre,
.ims-log-pre {
    background: #0b1220;
    color: #e5e7eb;
    font-size: 12px;
    border-radius: 10px;
    padding: 10px;
    overflow: auto;
}

/* Utilities */
.padd0 {
    padding-left: 0;
    padding-right: 0;
}

#tests {
    display: none !important;
}

/* Responsive */
@media (max-width: 767px) {
    .ims-h1 {
        font-size: 20px;
    }

    .ims-input.form-control,
    .ims-extra-input {
        height: 44px;
    }
}
