/* ==========================================================================
   WIDGETS - Tab Widget ve İstatistik Widget'ları
   ========================================================================== */

/* Search Container */
.search-container {
    position: relative;
    width: 250px;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.search-suggestions.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.search-suggestions::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 18px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.08);
    border-top: 1px solid rgba(0,0,0,0.08);
    transform: rotate(45deg);
}

.search-suggestion {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    color: #2b2b2b;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-suggestion:hover {
    background: #f8f9fa;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.suggestion-title {
    font-weight: 600;
    color: #222;
}

.suggestion-meta {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.search-input {
    border-radius: 24px !important;
    padding-left: 16px !important;
    box-shadow: none !important;
}

/* Modern Tab Widget Tasarımı */
.tab-widget {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.tab-nav {
    display: flex;
    background: #f1f3f4;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    border-radius: 0;
}

.tab-nav-item {
    flex: 1;
    padding: 14px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    color: #5f6368;
    position: relative;
    border-right: 1px solid rgba(0,0,0,0.06);
}

.tab-nav-item:last-child {
    border-right: none;
}

.tab-nav-item:hover {
    color: #3c4043;
    background: rgba(0,0,0,0.04);
}

.tab-nav-item.active {
    color: var(--bs-primary);
    background: #ffffff;
    font-weight: 600;
    border-bottom: 2px solid var(--bs-primary);
    margin-bottom: -1px;
}

.tab-content {
    padding: 16px 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

.tab-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-list-item {
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.tab-list-item:last-child {
    border-bottom: none;
}

.tab-list-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.tab-list-link:hover {
    background: #f8f9fa;
    color: var(--bs-primary);
    text-decoration: none;
}

.tab-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-success));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.tab-item-content {
    flex: 1;
    min-width: 0;
}

.tab-item-title {
    font-weight: 500;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-item-meta {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

.tab-badge {
    background: var(--bs-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
}

.tab-badge.new {
    background: var(--bs-success);
}

/* Site İstatistikleri Widget Stilleri */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.stat-line:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.stat-value {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}