* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

.node-card {
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.2s, box-shadow 0.3s, border-color 0.3s;
    backdrop-filter: blur(10px);
}
.node-card:hover {
    z-index: 20; transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(74, 222, 128, 0.1);
    border-color: #555 !important;
}

.node-card.search-match {
    border: 2px solid #4ade80 !important;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.4) !important;
    z-index: 30 !important; transform: scale(1.05);
}

.n-act { opacity: 0; transform: translateY(10px); transition: all 0.2s; pointer-events: none; }
.node-card:hover .n-act { opacity: 1; transform: translateY(0); pointer-events: auto; }

.tree-area { background-color: #050505; background-image: radial-gradient(#222 1px, transparent 1px); background-size: 24px 24px; }

.toast-in { animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.toast-out { animation: toastSlideOut 0.3s ease forwards; }
@keyframes toastSlideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastSlideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
@keyframes fu { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fu 0.5s ease forwards; }

.fi { background: #111; border: 1px solid #333; border-radius: 10px; padding: 12px 16px; color: #fff; font-size: 14px; width: 100%; transition: all 0.2s; }
.fi:focus { border-color: #4ade80; background: #151515; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1); }
select.fi { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

.btn-primary { background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%); color: #050505; font-weight: 700; padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer; font-size: 14px; transition: transform 0.1s, box-shadow 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74, 222, 128, 0.3); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; filter: grayscale(100%); }

.btn-sec { background: #111; color: #ddd; font-weight: 500; padding: 12px 20px; border-radius: 10px; border: 1px solid #333; cursor: pointer; transition: all 0.2s; }
.btn-sec:hover { background: #1a1a1a; border-color: #555; color: #fff; }

.modal-bg { backdrop-filter: blur(5px); }
.sql-box { background: #080808; border: 1px solid #333; border-radius: 12px; padding: 16px; font-family: monospace; font-size: 11px; color: #bbb; overflow-y: auto; white-space: pre-wrap; }
.avatar-wrap { position: relative; cursor: pointer; transition: transform 0.2s; }
.avatar-wrap:hover { transform: scale(1.05); }
.avatar-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.avatar-wrap:hover .avatar-overlay { opacity: 1; }
.fab { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: #4ade80; color: #050505; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(74, 222, 128, 0.4); z-index: 40; border: none; cursor: pointer; }

/* ==================== KÖK KART (ROOT) STİLLERİ ==================== */
.root-card {
    background: linear-gradient(135deg, rgba(20,20,20,0.95) 0%, rgba(5,5,5,0.95) 100%) !important;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.15), inset 0 0 20px rgba(74, 222, 128, 0.05) !important;
}
.root-card:hover {
    box-shadow: 0 15px 40px rgba(74, 222, 128, 0.3), inset 0 0 20px rgba(74, 222, 128, 0.1) !important;
    transform: translateY(-4px) scale(1.02);
    border-color: #4ade80 !important;
}
.root-card .n-act {
    border-color: #4ade80 !important;
}