.node-icon i {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.node-row:hover .node-icon i {
    color: #ff4713;
}

/* Dark mode için node icon */
.dark .node-icon i {
    color: #4b5563;
}

.dark .node-row:hover .node-icon i {
    color: #ff4713;
}

/* Search Dropdown Cards */
.search-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.dark .search-dropdown-header {
    border-bottom-color: rgba(39, 39, 42, 0.8);
}

.search-dropdown-header-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, #ff4713, #cc2c00);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 71, 19, 0.4);
    font-size: 11px;
    color: white;
    flex-shrink: 0;
}

.search-dropdown-header-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    flex: 1;
}

.dark .search-dropdown-header-label {
    color: #52525b;
}

.search-dropdown-header-count {
    font-size: 10px;
    font-weight: 700;
    color: #ff4713;
    background: rgba(255, 71, 19, 0.1);
    border: 1px solid rgba(255, 71, 19, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
}

.search-section {
    border-bottom: 1px solid rgba(229, 231, 235, 0.4);
    animation: slideDown 0.25s ease-out;
}

.dark .search-section {
    border-bottom-color: rgba(39, 39, 42, 0.6);
}

.search-section:last-child {
    border-bottom: none;
}

.search-section-content {
    padding: 6px 8px 8px;
}

.search-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.25s ease-out both;
    text-decoration: none;
}

.search-card:hover {
    background: rgba(255, 71, 19, 0.06);
}

.dark .search-card:hover {
    background: rgba(255, 71, 19, 0.09);
}

.search-card:nth-child(1) { animation-delay: 0.03s; }
.search-card:nth-child(2) { animation-delay: 0.07s; }
.search-card:nth-child(3) { animation-delay: 0.11s; }
.search-card:nth-child(4) { animation-delay: 0.15s; }
.search-card:nth-child(5) { animation-delay: 0.18s; }

.search-card-icon,
.search-card-avatar {
    flex-shrink: 0;
}

.icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4713, #cc2c00);
    box-shadow: 0 2px 8px rgba(255, 71, 19, 0.35);
    transition: box-shadow 0.2s ease;
    color: white;
    font-size: 13px;
}

.search-card:hover .icon-wrapper {
    box-shadow: 0 4px 12px rgba(255, 71, 19, 0.5);
}

.search-card-content {
    flex: 1;
    min-width: 0;
}

.search-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.dark .search-card-title {
    color: #e4e4e7;
}

.search-card:hover .search-card-title {
    color: #ff4713;
}

.search-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #9ca3af;
}

.dark .search-card-meta {
    color: #52525b;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.search-card-arrow {
    flex-shrink: 0;
    color: #ff4713;
    font-size: 10px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.18s ease;
}

.search-card:hover .search-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* "Tüm sonuçları gör" footer */
.search-see-all {
    padding: 8px 10px 12px;
}

.search-see-all a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #ff4713;
    padding: 9px 14px;
    border-radius: 9px;
    border: 1.5px dashed rgba(255, 71, 19, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
    background: transparent;
}

.search-see-all a:hover {
    background: rgba(255, 71, 19, 0.07);
    border-color: rgba(255, 71, 19, 0.6);
    transform: translateY(-1px);
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== FULL SEARCH RESULTS PAGE ===== */
.search-results-container {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.dark .search-results-container {
    background: #18181b;
    border-color: #27272a;
    box-shadow: none;
}

.search-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.dark .search-results-header {
    background: #1f1f23;
    border-bottom-color: #27272a;
}

.header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4713, #cc2c00);
    box-shadow: 0 3px 10px rgba(255, 71, 19, 0.35);
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.header-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    flex: 1;
}

.dark .header-title {
    color: #f4f4f5;
}

.header-count {
    background: rgba(255, 71, 19, 0.1);
    color: #ff4713;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 71, 19, 0.2);
}

.dark .header-count {
    background: rgba(255, 71, 19, 0.12);
    color: #ff6b3d;
    border-color: rgba(255, 71, 19, 0.25);
}

.search-results-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Result Cards */
.result-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
}

.result-card:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dark .result-card:hover {
    background: #1f1f23;
    border-color: #27272a;
    box-shadow: none;
}

.result-card:last-child {
    margin-bottom: 0;
}

.result-card-avatar .avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    transition: border-color 0.18s ease;
    flex-shrink: 0;
}

.dark .result-card-avatar .avatar {
    border-color: #27272a;
}

.result-card:hover .avatar {
    border-color: rgba(255, 71, 19, 0.4);
}

.result-card-icon .icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: linear-gradient(135deg, #ff4713, #cc2c00);
    box-shadow: 0 3px 10px rgba(255, 71, 19, 0.3);
    color: white;
    flex-shrink: 0;
}

.result-card-content {
    flex: 1;
    min-width: 0;
}

.result-card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #111827;
    line-height: 1.45;
    margin-bottom: 4px;
    transition: color 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-card:hover .result-card-title {
    color: #ff4713;
}

.dark .result-card-title {
    color: #f4f4f5;
}

.dark .result-card:hover .result-card-title {
    color: #ff6b3d;
}

.result-card-description {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .result-card-description {
    color: #71717a;
}

.result-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #9ca3af;
    flex-wrap: wrap;
}

.dark .result-card-meta {
    color: #52525b;
}

.result-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.dark .result-card-meta .meta-item {
    background: #27272a;
    border-color: #3f3f46;
    color: #71717a;
}

.result-card-meta .meta-item i {
    font-size: 10px;
    color: #ff4713;
    opacity: 0.8;
}

.result-card-arrow {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.18s ease;
    color: #ff4713;
    font-size: 13px;
    align-self: center;
}

.result-card:hover .result-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== ALERT — [role="alert"] ===== */
[role="alert"] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 10px;
    border-left: 4px solid currentColor;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 10px;
    animation: alertSlideIn 0.18s ease-out both;
}

[role="alert"]:last-child { margin-bottom: 0; }

[role="alert"] .alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 14px;
}

[role="alert"] .alert-body {
    flex: 1;
    min-width: 0;
}

[role="alert"] ul {
    margin: 4px 0 0;
    padding-left: 18px;
    list-style: disc;
}

[role="alert"] ul li + li { margin-top: 3px; }

/* ── Light — Danger ── */
[role="alert"].alert-danger {
    background-color: #fafafa;
    border-left-color: #ef4444;
    color: #7f1d1d;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), inset 0 0 0 1px #fee2e2;
}
[role="alert"].alert-danger .alert-icon { color: #ef4444; }

/* ── Light — Success ── */
[role="alert"].alert-success {
    background-color: #fafafa;
    border-left-color: #22c55e;
    color: #14532d;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), inset 0 0 0 1px #dcfce7;
}
[role="alert"].alert-success .alert-icon { color: #22c55e; }

/* ── Light — Warning ── */
[role="alert"].alert-warning {
    background-color: #fafafa;
    border-left-color: #f59e0b;
    color: #78350f;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), inset 0 0 0 1px #fef3c7;
}
[role="alert"].alert-warning .alert-icon { color: #f59e0b; }

/* ── Light — Info ── */
[role="alert"].alert-info {
    background-color: #fafafa;
    border-left-color: #3b82f6;
    color: #1e3a8a;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), inset 0 0 0 1px #dbeafe;
}
[role="alert"].alert-info .alert-icon { color: #3b82f6; }

/* ── Dark — Danger ── */
.dark [role="alert"].alert-danger {
    background-color: #1c1917;
    border-left-color: #f87171;
    color: #fca5a5;
    box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 0 0 1px rgba(248,113,113,.12);
}
.dark [role="alert"].alert-danger .alert-icon { color: #f87171; }

/* ── Dark — Success ── */
.dark [role="alert"].alert-success {
    background-color: #0f1a12;
    border-left-color: #4ade80;
    color: #86efac;
    box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 0 0 1px rgba(74,222,128,.12);
}
.dark [role="alert"].alert-success .alert-icon { color: #4ade80; }

/* ── Dark — Warning ── */
.dark [role="alert"].alert-warning {
    background-color: #1c1708;
    border-left-color: #fbbf24;
    color: #fde68a;
    box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 0 0 1px rgba(251,191,36,.12);
}
.dark [role="alert"].alert-warning .alert-icon { color: #fbbf24; }

/* ── Dark — Info ── */
.dark [role="alert"].alert-info {
    background-color: #0c1222;
    border-left-color: #60a5fa;
    color: #bfdbfe;
    box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 0 0 1px rgba(96,165,250,.12);
}
.dark [role="alert"].alert-info .alert-icon { color: #60a5fa; }

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== SWAL TOAST ===== */
.swal-toast-compact {
    max-width: 360px !important;
    font-size: 13.5px !important;
}

.swal-toast-compact .swal2-title {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* Scrollbar özelleştirme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
