/* FlowFix WordPress Plugin Styles - v2.0.0 */

#flowfix-app {
    --ff-bg: #000000;
    --ff-panel: #101a2e;
    --ff-panel2: #0f1a33;
    --ff-text: #e7eefc;
    --ff-muted: #a9b7d6;
    --ff-accent: #5cc8ff;
    --ff-border: rgba(255, 255, 255, 0.10);

    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--ff-bg);
    color: var(--ff-text);
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;

    /* Full screen horizontal with small margins */
    width: calc(100vw - 80px);
    max-width: calc(100vw - 80px);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}

#flowfix-app *,
#flowfix-app *::before,
#flowfix-app *::after {
    box-sizing: border-box;
}

/* Upload Section */
.ff-upload-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ff-dropzone {
    width: 100%;
    max-width: 400px;
    border: 2px dashed var(--ff-border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s ease;
    background: var(--ff-panel);
}

.ff-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#flowfix-app .ff-dropzone-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    color: var(--ff-text) !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    font-family: inherit !important;
    background: none !important;
    border: none !important;
}

.ff-browse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ff-accent);
    color: #071022;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    border: 2px solid var(--ff-accent);
    height: 38px;
    box-sizing: border-box;
}

.ff-browse-btn:hover {
    background: #7cf0ff;
}

.ff-btn-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.ff-template-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--ff-accent);
    color: var(--ff-accent);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    height: 38px;
    box-sizing: border-box;
}

.ff-template-btn:hover {
    background: var(--ff-accent);
    color: #071022;
}

.ff-dropzone-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--ff-muted);
    opacity: 0.8;
}

#flowfix-app .ff-file-info {
    display: none !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #1a2a44;
    border: 1px solid var(--ff-border);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

#flowfix-app .ff-file-info.visible {
    display: flex !important;
}

#ff-file-name {
    font-size: 14px;
    color: var(--ff-text);
}

#ff-file-status {
    font-size: 12px;
    color: var(--ff-muted);
}

.ff-file-status-locked {
    color: #f59e0b !important;
    font-weight: 600;
}

.ff-refresh-btn {
    background: var(--ff-accent);
    border: none;
    color: #071022;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ff-refresh-btn:hover {
    background: #7cf0ff;
}

.ff-clear-btn {
    background: transparent;
    border: none;
    color: var(--ff-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.ff-clear-btn:hover {
    color: var(--ff-text);
}

/* Dashboard */
.ff-dashboard {
    padding: 0;
}

.ff-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 12px;
    padding: 0;
}

.ff-sidebar,
.ff-main {
    background: var(--ff-panel);
    border: 1px solid var(--ff-border);
    border-radius: 12px;
}

.ff-main {
    overflow: hidden;
    min-width: 0;
}

/* Sidebar Tools */
.ff-tools {
    padding: 12px;
    border-bottom: 1px solid var(--ff-border);
}

.ff-tools label {
    display: block;
    font-size: 15px;
    color: var(--ff-text);
    font-weight: 800;
    margin-bottom: 6px;
}

.ff-field {
    margin-top: 12px;
}

.ff-tools input[type="search"],
.ff-tools input[type="date"],
.ff-tools select {
    width: 100%;
    background: #1a2a44;
    border: 1px solid var(--ff-border);
    color: var(--ff-text);
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    outline: none;
}

.ff-tools select option {
    background: #1a2a44;
    color: var(--ff-text);
}

.ff-tools input[type="date"] {
    color: #e7eefc;
}

.ff-tools input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(0.85);
}

.ff-tools input[type="search"]::-webkit-search-cancel-button {
    filter: invert(1) opacity(0.85);
}

.ff-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.ff-btn {
    margin-top: 8px;
    background: transparent;
    border: 1px solid var(--ff-border);
    color: var(--ff-text);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
}

.ff-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Instrument List */
.ff-list {
    max-height: calc(100vh - 480px);
    min-height: 200px;
    overflow: auto;
}

.ff-list::-webkit-scrollbar {
    width: 14px;
}

.ff-list::-webkit-scrollbar-track {
    background: #0d1525;
}

.ff-list::-webkit-scrollbar-thumb {
    background: #6080a0;
    border-radius: 7px;
    border: 2px solid #0d1525;
}

.ff-list::-webkit-scrollbar-thumb:hover {
    background: #80a0c0;
}

.ff-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ff-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ff-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ff-item.active {
    background: rgba(92, 200, 255, 0.10);
}

.ff-item .ff-left {
    min-width: 0;
}

.ff-item .ff-name {
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-item .ff-right {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.ff-mini {
    font-size: 11px;
    color: var(--ff-muted);
    border: 1px solid var(--ff-border);
    border-radius: 999px;
    padding: 2px 7px;
    white-space: nowrap;
}

/* Main Panel */
.ff-main {
    padding: 14px;
}

.ff-row-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ff-small {
    font-size: 12px;
    color: var(--ff-muted);
}

.ff-selected-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--ff-text);
}

/* Category Cards */
.ff-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    min-width: 0;
}

.ff-card {
    background: var(--ff-panel2);
    border: 1px solid var(--ff-border);
    border-radius: 12px;
    padding: 10px;
    min-width: 0;
    overflow: hidden;
}

.ff-card .ff-k {
    font-size: 15px;
    color: var(--ff-text);
    font-weight: 900;
}

.ff-card .ff-v {
    font-size: 18px;
    font-weight: 900;
    margin-top: 6px;
}

.ff-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-top: 8px;
}

.ff-progress > div {
    height: 100%;
    background: linear-gradient(90deg, var(--ff-accent), #7cf0ff);
}

/* Table wrapper with scroll */
.ff-table-wrap {
    margin-top: 14px;
    border: 1px solid var(--ff-border);
    border-radius: 12px;
    background: var(--ff-panel2);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.ff-table-scroll {
    overflow-x: visible;
    overflow-y: auto;
    max-height: calc(100vh - 160px);
    width: 1440px;
    min-width: 1440px;
    position: relative;
}

#flowfix-app table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

#flowfix-app table th,
#flowfix-app table td {
    width: auto;
}

#flowfix-app table th:nth-child(1) { width: 160px; }
#flowfix-app table th:nth-child(2) { width: 100px; }
#flowfix-app table th:nth-child(3) { width: 60px; }
#flowfix-app table th:nth-child(4) { width: 110px; }
#flowfix-app table th:nth-child(5) { width: 50px; }
#flowfix-app table th:nth-child(6) { width: 350px; }
#flowfix-app table th:nth-child(7) { width: 350px; }

/* Scrollbar styling - vertical (inner container) */
.ff-table-scroll::-webkit-scrollbar {
    width: 14px;
}

.ff-table-scroll::-webkit-scrollbar-track {
    background: #0d1525;
}

.ff-table-scroll::-webkit-scrollbar-thumb {
    background: #6080a0;
    border-radius: 7px;
    border: 2px solid #0d1525;
}

.ff-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #80a0c0;
}

/* Scrollbar styling - horizontal (outer container) */
.ff-table-wrap::-webkit-scrollbar {
    height: 14px;
}

.ff-table-wrap::-webkit-scrollbar-track {
    background: #0d1525;
    border-radius: 0 0 12px 12px;
}

.ff-table-wrap::-webkit-scrollbar-thumb {
    background: #6080a0;
    border-radius: 7px;
    border: 2px solid #0d1525;
}

.ff-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #80a0c0;
}

#flowfix-app th,
#flowfix-app td {
    padding: 10px;
    border-bottom: 1px solid var(--ff-border);
    vertical-align: top;
    font-size: 12.8px;
    text-align: left;
}

#flowfix-app th {
    position: sticky;
    top: 0;
    background: #101a2e;
    color: var(--ff-text);
    font-weight: 900;
    font-size: 15px;
    z-index: 10;
}

#flowfix-app tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.ff-cat {
    font-weight: 900;
    display: inline-block;
    min-width: 34px;
    text-align: center;
    border-radius: 6px;
    padding: 2px 6px;
    border: 1px solid var(--ff-border);
    color: var(--ff-text);
}

.ff-pill {
    display: inline-flex;
    align-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--ff-muted);
}

.ff-nowrap {
    white-space: nowrap;
}

/* Input Row */
.ff-input-row {
    background: #1a2a44;
    position: sticky;
    top: 41px;
    z-index: 9;
}

.ff-input-row td {
    padding: 8px;
    vertical-align: middle;
}

.ff-input-row input,
.ff-input-row select {
    width: 100%;
    height: 32px;
    background: #1a2a44 !important;
    border: 1px solid var(--ff-border) !important;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    outline: none;
    box-sizing: border-box;
}

.ff-input-row input[type="text"] {
    color: #ffffff !important;
}

.ff-input-row input[type="date"] {
    color: #ffffff;
}

.ff-input-row input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
}

.ff-input-row input::placeholder {
    color: #ffffff;
    opacity: 0.7;
}

.ff-input-row input::-webkit-input-placeholder {
    color: #ffffff;
    opacity: 0.7;
}

.ff-input-row input::-moz-placeholder {
    color: #ffffff;
    opacity: 0.7;
}

.ff-input-row input:-ms-input-placeholder {
    color: #ffffff;
    opacity: 0.7;
}

.ff-input-row input:focus,
.ff-input-row select:focus {
    border-color: var(--ff-accent);
}

.ff-input-row select option {
    background: #1a2a44;
    color: var(--ff-text);
}

.ff-input-solution-cell input {
    width: calc(100% - 105px);
    display: inline-block;
    vertical-align: middle;
}

.ff-input-solution-cell .ff-update-log-btn {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.ff-update-log-btn {
    background: var(--ff-accent);
    color: #071022;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ff-update-log-btn:hover {
    background: #7cf0ff;
}

/* Responsive */
@media (max-width: 1400px) {
    .ff-grid {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
    }
}

@media (max-width: 1100px) {
    .ff-container {
        grid-template-columns: 1fr;
    }

    .ff-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #flowfix-app table {
        min-width: 900px;
    }

    .ff-date-row {
        grid-template-columns: 1fr;
    }

    .ff-list {
        max-height: 300px;
    }
}

/* Clickable rows */
#ff-log-body tr.ff-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

#ff-log-body tr.ff-clickable:hover {
    background: rgba(100, 220, 255, 0.1);
}

/* Edit Modal */
.ff-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.ff-edit-modal-content {
    background: #000000;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 16px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

/* Compact fields for Instrument, Date, Reference */
.ff-edit-field-compact {
    margin-bottom: 6px;
}

.ff-edit-field-compact label {
    margin-bottom: 2px;
}

.ff-edit-field.ff-edit-field-compact input,
.ff-edit-field.ff-edit-field-compact select {
    font-size: 12px !important;
    padding: 4px 8px !important;
    height: 28px !important;
}

.ff-edit-field {
    margin-bottom: 10px;
}

.ff-edit-field label {
    display: block;
    font-size: 11px;
    color: #aaaaaa;
    margin-bottom: 4px;
    font-weight: 600;
}

.ff-edit-field input,
.ff-edit-field select,
.ff-edit-field textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #555;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.ff-edit-field input[type="text"],
.ff-edit-field input[type="date"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.ff-edit-field select option {
    background: #1a1a1a;
    color: #ffffff;
}

.ff-edit-field input:focus,
.ff-edit-field select:focus,
.ff-edit-field textarea:focus {
    border-color: var(--ff-accent);
}

.ff-edit-field input:-webkit-autofill,
.ff-edit-field input:-webkit-autofill:hover,
.ff-edit-field input:-webkit-autofill:focus,
.ff-edit-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}

.ff-edit-field textarea {
    resize: vertical;
    min-height: 60px;
}

.ff-edit-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
}

.ff-edit-btn-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 14px;
}

.ff-edit-btn {
    background: #64dcff;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ff-edit-btn:hover {
    background: #7cf0ff;
}

.ff-edit-btn.secondary {
    background: #333333;
    border: 1px solid #555;
    color: #ffffff;
}

.ff-edit-btn.secondary:hover {
    background: #444444;
}

.ff-edit-btn.danger {
    background: #dc3545;
    color: #ffffff;
}

.ff-edit-btn.danger:hover {
    background: #c82333;
}

.ff-edit-btn.green {
    background: #5cb85c;
    color: #ffffff;
}

.ff-edit-btn.green:hover {
    background: #4cae4c;
}

.ff-edit-email-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #333;
}

.ff-edit-email-row select {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #555;
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    outline: none;
}

.ff-edit-email-row select option {
    background: #1a1a1a;
    color: #ffffff;
}

.ff-edit-email-row .ff-edit-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.ff-edit-btn-row-split {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.ff-edit-btn-row-split .ff-edit-btn-right {
    display: flex;
    gap: 12px;
}

@media (max-width: 600px) {
    .ff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Document Drop Zones */
.ff-edit-docs-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #333;
}

.ff-edit-docs-section > label {
    display: block;
    font-size: 11px;
    color: #aaaaaa;
    margin-bottom: 8px;
    font-weight: 600;
}

.ff-drop-zones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.ff-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}

.ff-drop-zone:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.ff-drop-zone.drag-over {
    border-color: var(--ff-accent);
    background: rgba(92, 200, 255, 0.1);
}

.ff-drop-label {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.9;
}

/* Document List */
.ff-doc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ff-doc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
}

.ff-doc-name {
    flex: 1;
    font-size: 12px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ff-doc-view {
    background: #5cc8ff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.ff-doc-view:hover {
    background: #7cf0ff;
}

.ff-doc-view.disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
}

.ff-doc-remove {
    background: #cc4444;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
}

.ff-doc-remove:hover {
    background: #ff5555;
}

/* Document Indicator in Table */
.ff-docs-cell {
    text-align: center;
    width: 40px;
}

.ff-doc-indicator {
    display: inline-block;
    color: var(--ff-accent);
    font-weight: 700;
    font-size: 12px;
}

/* ===== CONFLICT DETECTION MODAL ===== */
.ff-conflict-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.ff-conflict-content {
    background: #0a0a0a;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
}

.ff-conflict-title {
    color: #f59e0b;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ff-conflict-title::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f59e0b;
    color: #000;
    border-radius: 50%;
    font-weight: 900;
    font-size: 18px;
}

.ff-conflict-section-title {
    color: #e7eefc;
    font-size: 14px;
    font-weight: 700;
    margin: 16px 0 8px 0;
}

.ff-conflict-table-wrap {
    overflow-x: auto;
    margin-bottom: 12px;
}

.ff-conflict-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ff-conflict-table th,
.ff-conflict-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.ff-conflict-table th {
    background: #1a1a1a;
    color: #a9b7d6;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.ff-conflict-table td {
    color: #e7eefc;
}

.ff-conflict-added {
    background: rgba(34, 197, 94, 0.15);
}

.ff-conflict-added td {
    border-left: 3px solid #22c55e;
}

.ff-conflict-modified {
    background: rgba(245, 158, 11, 0.15);
}

.ff-conflict-modified td {
    border-left: 3px solid #f59e0b;
}

.ff-conflict-deleted {
    background: rgba(239, 68, 68, 0.15);
}

.ff-conflict-deleted td {
    border-left: 3px solid #ef4444;
}

.ff-conflict-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.ff-conflict-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ff-conflict-btn.merge {
    background: #22c55e;
    color: #ffffff;
}

.ff-conflict-btn.merge:hover {
    background: #16a34a;
}

.ff-conflict-btn.refresh {
    background: #3b82f6;
    color: #ffffff;
}

.ff-conflict-btn.refresh:hover {
    background: #2563eb;
}

.ff-conflict-btn.cancel {
    background: #4b5563;
    color: #ffffff;
}

.ff-conflict-btn.cancel:hover {
    background: #6b7280;
}

.ff-conflict-btn.close-workbook {
    background: #f59e0b;
    color: #000000;
}

.ff-conflict-btn.close-workbook:hover {
    background: #fbbf24;
}

.ff-locked-message {
    color: #a9b7d6;
    font-size: 14px;
    margin: 12px 0;
    line-height: 1.5;
}

/* Scrollbar for conflict modal */
.ff-conflict-content::-webkit-scrollbar {
    width: 10px;
}

.ff-conflict-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 5px;
}

.ff-conflict-content::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 5px;
}

.ff-conflict-content::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Document Storage Prompt */
.ff-docs-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.ff-docs-prompt-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px 32px;
    text-align: center;
    max-width: 360px;
}

.ff-docs-prompt-content p {
    margin: 0 0 8px 0;
    color: #e2e8f0;
    font-size: 16px;
}

.ff-docs-prompt-hint {
    color: #94a3b8 !important;
    font-size: 13px !important;
    margin-bottom: 20px !important;
}

.ff-docs-prompt-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ff-docs-prompt-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ff-docs-prompt-btn.yes {
    background: #22c55e;
    color: white;
}

.ff-docs-prompt-btn.yes:hover {
    background: #16a34a;
}

.ff-docs-prompt-btn.no {
    background: #475569;
    color: white;
}

.ff-docs-prompt-btn.no:hover {
    background: #64748b;
}
