/* Toolbar and Dropdown Styles */

/* ===================================
   Custom Fonts - גופן גליל לכפתורים
   =================================== */

@font-face{font-family:'Galil';font-style:normal;font-weight:300 700;font-display:swap;src:url('/assets/fonts/rubik/rubik-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Galil';font-style:normal;font-weight:300 700;font-display:swap;src:url('/assets/fonts/rubik/rubik-hebrew.woff2') format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}

/* Basic Tools Dropdown Container */
.basic-tools-container {
    position: absolute;
    top: 200px;
    right: 20px;
    z-index: 100;
}

.basic-tools-split-btn {
    display: flex;
    background: linear-gradient(135deg, #1e3a5f 0%, #162d4a 100%);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.basic-tools-split-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.4);
}

.basic-action-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 12px 12px;
    cursor: pointer;
    font-family: 'Galil', 'Heebo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex: 1;
    border-radius: 0;
    position: relative;
}

.basic-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Custom Tooltip for Basic Action Button */
.basic-action-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #162d4a 0%, #1e3a5f 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    animation: tooltipFadeIn 0.3s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.basic-action-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e40af;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    animation: tooltipFadeIn 0.3s ease forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.basic-dropdown-btn {
    position: relative;
    background: transparent;
    color: white;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 0;
    min-width: 30px;
}

.basic-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Custom Tooltip for Dropdown Arrow Button */
.basic-dropdown-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    animation: tooltipFadeIn 0.3s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.basic-dropdown-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #059669;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    animation: tooltipFadeIn 0.3s ease forwards;
    pointer-events: none;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.basic-tools-split-btn.active .dropdown-arrow {
    transform: rotate(90deg);
}

.basic-tools-dropdown {
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.basic-tools-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-5px);
}

.dropdown-tool-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Galil', 'Heebo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #374151;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-tool-btn:hover {
    background: #f8fafc;
    color: #1e3a5f;
}

.dropdown-tool-btn:last-child {
    border-bottom: none;
}

.dropdown-tool-btn i {
    width: 16px;
    text-align: center;
    color: #6b7280;
}

.dropdown-tool-btn:hover i {
    color: #1e3a5f;
}

/* Advanced Settings Dropdown Button - Special Styling */
.advanced-settings-dropdown-btn {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    border: 1px solid #d1d5db !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    cursor: default !important;
    position: relative;
}

.advanced-settings-dropdown-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 0 4px 4px 0;
}

.advanced-settings-dropdown-btn:hover {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    color: #374151 !important;
    transform: none !important;
    cursor: pointer !important;
}

.advanced-settings-dropdown-btn i {
    color: #f59e0b !important;
    font-weight: 600;
}

.advanced-settings-dropdown-btn:hover i {
    color: #d97706 !important;
}

/* Editing Tools Container */
.editing-tools-container {
    position: absolute;
    top: 260px;
    right: 20px;
    z-index: 100;
}

.editing-tools-split-btn {
    display: flex;
    background: linear-gradient(135deg, #1e3a5f 0%, #162d4a 100%);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.editing-tools-split-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.4);
}

.editing-action-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 12px 12px;
    cursor: pointer;
    font-family: 'Galil', sans-serif;
    letter-spacing: normal;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex: 1;
    border-radius: 0;
    position: relative;
}

.editing-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Custom Tooltip for Editing Action Button */
.editing-action-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #162d4a 0%, #1e3a5f 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    animation: tooltipFadeIn 0.3s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.editing-action-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e40af;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    animation: tooltipFadeIn 0.3s ease forwards;
    pointer-events: none;
}

.editing-dropdown-btn {
    position: relative;
    background: transparent;
    color: white;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 0;
    min-width: 30px;
}

.editing-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Custom Tooltip for Editing Dropdown Arrow Button */
.editing-dropdown-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    animation: tooltipFadeIn 0.3s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.editing-dropdown-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #059669;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    animation: tooltipFadeIn 0.3s ease forwards;
    pointer-events: none;
}

.editing-tools-split-btn.active .dropdown-arrow {
    transform: rotate(90deg);
}

.editing-tools-dropdown {
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.editing-tools-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-5px);
}

/* Analysis Tool Container */
.analysis-tool-container {
    position: absolute;
    top: 320px;
    right: 20px;
    z-index: 100;
    transition: all 0.3s ease;
}

.analysis-tool-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Galil', sans-serif;
    letter-spacing: normal;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    width: 106px;
    justify-content: center;
}

.analysis-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.analysis-tool-container.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

/* Analysis Tools Split Button (New Structure) */
.analysis-tools-split-btn {
    display: flex;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.analysis-tools-split-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.analysis-dropdown-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 12px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.analysis-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.analysis-tools-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.analysis-tools-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-5px);
}

