﻿.et-toolbar {
    position: absolute;
    z-index: 10001;
    display: none;
    background: rgba(22, 22, 24, 0.98);
    border: 1px solid rgba(100, 100, 100, 0.4);
    border-radius: 8px;
    padding: 4px 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    gap: 3px;
    align-items: center;
    backdrop-filter: blur(12px);
}

.et-toolbar.visible { display: flex; }

.et-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 5px;
    color: #bbb;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    transition: all 0.15s;
    user-select: none;
    flex-shrink: 0;
}

.et-btn:hover { background: rgba(255, 255, 255, 0.1); color: #eee; }

.et-btn.et-active {
    background: rgba(196, 154, 58, 0.2);
    color: #c49a3a;
}

.et-sep {
    width: 1px;
    height: 22px;
    background: rgba(100, 100, 100, 0.3);
    margin: 0 2px;
    flex-shrink: 0;
}

.et-color-group { display: flex; align-items: center; gap: 4px; }

.et-color-label {
    font-size: 13px;
    font-weight: 700;
    color: #999;
    font-family: 'Manrope', sans-serif;
    flex-shrink: 0;
}

.et-color-preview {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    flex-shrink: 0;
}

.et-hex-input {
    width: 70px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 4px;
    color: #ccc;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    padding: 0 6px;
    outline: none;
    transition: border-color 0.15s;
}

.et-hex-input:focus { border-color: rgba(196, 154, 58, 0.5); }
.et-hex-input::placeholder { color: rgba(150, 150, 150, 0.4); font-size: 11px; }

.et-eyedropper-btn {
    width: 30px !important;
    height: 30px !important;
}

.et-eyedropper-btn svg { opacity: 0.7; transition: opacity 0.15s; }
.et-eyedropper-btn:hover svg { opacity: 1; }

.et-color-apply-btn {
    color: #7ba57b !important;
    font-size: 16px !important;
    font-weight: 700;
}
.et-color-apply-btn:hover { color: #9dce9d !important; }

.et-font-select {
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 4px;
    color: #ccc;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    padding: 0 4px;
    outline: none;
    cursor: pointer;
    max-width: 120px;
    transition: border-color 0.15s;
}

.et-font-select:focus { border-color: rgba(196, 154, 58, 0.5); }

.et-font-select option {
    background: #1a1a1a;
    color: #ccc;
    padding: 4px;
}

.et-size-group { display: flex; align-items: center; gap: 2px; }

.et-size-input {
    width: 48px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 4px;
    color: #ccc;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    padding: 0 4px;
    outline: none;
    text-align: center;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}

.et-size-input::-webkit-inner-spin-button,
.et-size-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.et-size-input:focus { border-color: rgba(196, 154, 58, 0.5); }
.et-size-input::placeholder { color: rgba(150, 150, 150, 0.4); }

.et-size-unit {
    font-size: 11px;
    color: #888;
    font-family: 'Share Tech Mono', monospace;
}

.et-save-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    padding: 11px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    background: rgba(35, 35, 38, 0.96);
    color: #777;
    border: 1px solid rgba(100, 100, 100, 0.35);
    border-radius: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 10px;
    transition: all 0.25s;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

body.edit-mode .et-save-btn { display: flex; }

.et-save-btn.has-changes {
    background: rgba(196, 154, 58, 0.12);
    color: #c49a3a;
    border-color: rgba(196, 154, 58, 0.45);
    box-shadow: 0 4px 24px rgba(196, 154, 58, 0.15);
}

.et-save-btn.has-changes:hover {
    background: rgba(196, 154, 58, 0.22);
    color: #d4aa4a;
    transform: translateY(-1px);
}

.et-save-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.esb-count {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Share Tech Mono', monospace;
    min-width: 20px;
    text-align: center;
}

.et-save-btn.has-changes .esb-count { background: rgba(196, 154, 58, 0.25); }

.et-notification {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 9999;
    padding: 11px 22px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    background: rgba(30, 30, 34, 0.96);
    color: #7ba57b;
    border: 1px solid rgba(123, 165, 123, 0.3);
    border-radius: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.et-notification.show { opacity: 1; transform: translateY(0); }
.et-notification-err { color: #c55a5a; border-color: rgba(197, 90, 90, 0.3); }

body.edit-mode [data-editable] {
    position: relative;
    transition: outline 0.15s, background 0.15s;
    outline: 2px dashed rgba(196, 154, 58, 0.3);
    border-radius: 3px;
    -webkit-touch-callout: none;
}

body.edit-mode [data-editable]:hover {
    outline-color: rgba(196, 154, 58, 0.55);
}

body.edit-mode [data-editable]:focus {
    outline: 2px solid rgba(196, 154, 58, 0.65);
    background: rgba(196, 154, 58, 0.04);
    outline-offset: 2px;
}

.edit-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(40, 40, 40, 0.95);
    color: #aaa;
    border: 1px solid rgba(100, 100, 100, 0.4);
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.edit-toggle:hover { color: #ddd; border-color: rgba(140, 140, 140, 0.5); }

.edit-toggle.active {
    background: rgba(196, 154, 58, 0.18);
    color: #c49a3a;
    border-color: rgba(196, 154, 58, 0.5);
}
