.widget-tools-card {
    padding-bottom: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), inset 0 2px 4px rgba(255,255,255,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.widget-tools-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(255,255,255,0.5);
}
.tool-tab-btn {
    background: none; border: none; color: var(--text-muted); padding: 10px 12px; font-size: 0.8rem; cursor: pointer; border-bottom: 2px solid transparent; flex: 1; text-align: center;
    transition: all 0.2s ease;
    position: relative;
}
.tool-tab-btn:hover {
    color: var(--text-main);
    background: rgba(0,0,0,0.02);
}
.tool-tab-btn.active {
    color: var(--primary); font-weight: 600;
}
.tool-tab-btn.active::after {
    content: ''; position: absolute; bottom: -2px; left: 10%; width: 80%; height: 2px;
    background: var(--primary); border-radius: 2px;
}
.tool-tab-content { display: none; animation: fadeInTab 0.3s ease; flex: 1; padding-right: 4px; overflow-y: auto; }
.tool-tab-content::-webkit-scrollbar { width: 4px; }
.tool-tab-content::-webkit-scrollbar-track { background: transparent; }
.tool-tab-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }
.tool-tab-content::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
.tool-tab-content.active { display: block; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Tool Widget UI Components */
.tool-box {
    box-sizing: border-box;
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02), inset 0 2px 4px rgba(255,255,255,0.8);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tool-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04), inset 0 2px 4px rgba(255,255,255,0.8);
}
.tool-input {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: #ffffff;
    color: var(--text-main);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.tool-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 59, 130, 246), 0.2), inset 0 1px 3px rgba(0,0,0,0.05);
}
.tool-select {
    box-sizing: border-box;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
}
.tool-label {
    font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500;
}
.tool-result {
    margin-top: 6px; font-weight: 600; font-size: 0.8rem; color: var(--primary);
    background: rgba(var(--primary-rgb, 59, 130, 246), 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}
