/* Breeze Rsync Wizard Styles */
:root {
    --color-primary: #0b60b0;
    --color-primary-hover: #084c8d;
    --color-text: #0f172a;
    --color-text-light: #475569;
    --color-bg: #f8fbff;
    --color-border: #e2e8f0;
    --color-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
}

[v-cloak] { display: none; }

.app-container {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--color-text);
    max-width: 1000px;
    margin: 0 auto;
}

/* Header & Controls */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lang-switch button {
    background: none;
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-light);
    transition: all 0.2s;
}
.lang-switch button:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); border-right: none; }
.lang-switch button:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.lang-switch button.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Main Form */
.config-panel {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.input-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.text-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #fdfdfd;
}

.text-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11, 96, 176, 0.1);
}

/* Command Preview */
.command-preview {
    background: #1e293b;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.command-preview h3 {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.cmd-box {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.1rem;
    line-height: 1.5;
    word-break: break-all;
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #334155;
    color: #a5f3fc;
}

.cmd-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}
.btn-primary:hover { background: var(--color-primary-hover); }

.btn-secondary {
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}
.btn-secondary:hover { background: #f1f5f9; }

/* Options Grid */
.options-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.search-bar {
    width: 100%;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 1rem center;
    padding-left: 3rem;
}

.category {
    margin-bottom: 2rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.category-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 700;
    color: var(--color-text);
    font-size: 1rem;
}

.options-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--color-border); /* grid border effect */
}

.option-item {
    background: white;
    padding: 1rem;
    display: flex;
    flex-direction: column; /* change to column to handle checkbox + input */
    gap: 0.5rem;
}

/* Breeze Rsync Wizard page-scoped styles */
.breeze-sync-wizard {
    --primary-color: #0d6efd;
    --layout-max: 1200px;
    --nav-offset: 68px;
    --section-gap: 16px;
    --example-width: 320px;
    --page-gap: 16px;
    --options-height: calc(100vh - var(--nav-offset) - 200px);
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    height: 100%;
    overflow: hidden;
}
html { height: 100%; }

.breeze-sync-wizard [v-cloak] { display: none; }

.breeze-sync-wizard .home-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.9rem;
    background: linear-gradient(135deg, #e7f3ff, #f8fbff);
    border: 1px solid #d7e7fb;
    border-radius: 999px;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.breeze-sync-wizard .home-chip:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(13, 110, 253, 0.18); }
.breeze-sync-wizard .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #e9f2ff;
    color: #0d6efd;
    font-weight: 700;
}
.breeze-sync-wizard .card-lift { border: 0; border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.breeze-sync-wizard .card-lift:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.08); transition: all 0.2s ease; }
.breeze-sync-wizard .cmd-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem;
}
.breeze-sync-wizard .option-badge { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.breeze-sync-wizard .group-hover { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; transition: all 0.15s ease; }
.breeze-sync-wizard .group-hover:hover { border-color: #0d6efd; background: #f8fbff; }
.breeze-sync-wizard .container-narrow {
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding-right: 0;
}
.breeze-sync-wizard main {
    padding-top: 16px;
    height: calc(100vh - var(--nav-offset));
    overflow: hidden;
}
.breeze-sync-wizard .options-wrap {
    margin-top: var(--section-gap);
    overflow: hidden;
}
.breeze-sync-wizard .options-scroll {
    height: var(--options-height);
    overflow-y: auto;
    padding-right: 4px;
}
.breeze-sync-wizard .cmd-input {
    min-width: 280px;
    max-width: 820px;
    height: 64px;
    font-size: 1.05rem;
    padding: 0.85rem 0.9rem;
}
.breeze-sync-wizard .btn-ghost {
    border: 1px solid var(--color-border);
    color: #0f172a;
    background: #fff;
    transition: all 0.2s ease;
}
.breeze-sync-wizard .btn-ghost:hover {
    background: #f8fbff;
    border-color: #0d6efd;
    color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}
.breeze-sync-wizard .example-item { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; transition: all 0.15s ease; cursor: pointer; }
.breeze-sync-wizard .example-item:hover { border-color: #0d6efd; background: #f8fbff; }
.breeze-sync-wizard .example-command { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 8px; font-size: 0.9rem; }
.breeze-sync-wizard .example-floating {
    position: fixed;
    top: calc(var(--nav-offset) + 16px);
    right: var(--page-gap);
    width: var(--example-width);
    height: calc(100vh - var(--nav-offset) - 32px);
    z-index: 1045;
    pointer-events: auto;
    display: block;
}
.breeze-sync-wizard .example-floating .card { height: 100%; overflow-y: auto; }


.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--color-primary);
}

.option-label {
    display: flex;
    flex-direction: column;
}

.flag {
    font-family: monospace;
    font-weight: bold;
    color: #e11d48;
    background: #fff1f2;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
}

.desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.option-input {
    margin-left: 1.85rem; /* align with text */
    margin-top: 0.25rem;
}
.option-input input {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .options-list { grid-template-columns: 1fr; }
}
