/* Genel Stiller */
body {
    background-color: var(--background);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.container {
    background: transparent;
}

/* Form Stilleri */
.chat-form {
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    background: #121212;
}

.form-control {
    background: #1e1e1e;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    -webkit-user-select: text !important;
    user-select: text !important;
}

.form-control:focus {
    background: #2a2a2a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

/* Buton Stilleri */
.btn-primary {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
}

html[data-theme="light"] .logo-light { display: block; }
html[data-theme="light"] .logo-dark { display: none; }

html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

/* Dosya Seçme Alanı Stilleri */
.file-selection-area {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.selected-file {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px 0;
}

.bg-dark {
    background-color: #1e1e1e !important;
}

.btn-primary:hover {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.modal-footer .btn-primary:hover {
    color: white;
}

.btn-success {
    background-color: rgb(107, 107, 107);
    color: #ffffff;
    border: none;
    border-radius: 6px;
}

.btn-success:hover {
    background-color: #218838;
    color: #ffffff;
}

.btn-danger {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 6px;
}

.btn-danger:hover {
    background-color: #c82333;
    color: #ffffff;
}

/* Başlık Stilleri */
h1 {
    color: var(--text-color);
    font-size: 24px;
}

h2 {
    color: #ffffff;
    font-size: 20px;
}

h3 {
    color: #ffffff;
    font-size: 16px;
}

/* Form Etiketleri */
.form-label {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 0.3rem;
}

/* Chatbot Kart Stilleri */
.chatbot-card {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    background: #1e1e1e;
}

/* Avatar Stilleri */
.avatar-container {
    position: relative;
    width: 126px;
    height: 88px; /* Form alanlarının toplam yüksekliğine uygun */
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    display: flex;
    align-items: center;
}

.avatar-input {
    display: none;
}

.avatar-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.upload-icon i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
}

.avatar-label:hover .upload-icon i {
    color: rgba(255, 255, 255, 0.8);
}

/* Link Listesi */
.link-item-container {
    background: #1e1e1e;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-item {
    color: #ffffff;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.link-item:hover {
    color: #28a745;
    text-decoration: none;
}

.info-boxes {
    margin-bottom: 1.5rem;
}

.auto-optimization-info {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auto-optimization-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.check-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

[data-theme="dark"] .auto-optimization-info {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .check-icon {
    background-color: #161b22;
}

.auto-optimization-info p {
    color: #333;
    line-height: 1.5;
}

[data-theme="dark"] .auto-optimization-info p {
    color: #e1e4e8;
}

/* Form Check */
.form-check-input:checked {
    background-color: var(--primary-color, #1e1e1e);
    border-color: var(--border-color, rgba(255, 255, 255, 0.2));
}

/* Yardımcı Metin */
small {
    color: rgba(255, 255, 255, 0.6);
}

/* Tab Stilleri */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-tabs .nav-link {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 2px;
    border-bottom: none;
    padding: 8px 16px;
    background: #000000;
}

.nav-tabs .nav-link:hover {
    background-color: #333333;
    color: #ffffff;
    border-color: #ffffff;
}

.nav-tabs .nav-link.active {
    background-color: #000000;
    color: #ffffff;
    border-color: #ffffff;
    border-bottom: none;
}

/* Tab İçeriği 
.tab-content {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 20px;
}

.nav-tabs .nav-link:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: #001100;
}

.nav-tabs .nav-link.active {
    color: #ffffff;
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.3);
    border-bottom-color: transparent;
}

.tab-content {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background-color: #1a1a1a;
    padding: 20px !important;
}
*/
/* Chat Sayfası Stilleri */

/* Küçük Yeni Metin Ekle butonu için özel stil */
.btn-add-text {
    background: linear-gradient(45deg, #1a3a1a, #2a5a2a);
    color: #8aff8a;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(42, 90, 42, 0.2);
}

/* Metin girişleri için özel stil */
.text-entry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.text-entry-title {
    font-weight: 500;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-entry-actions {
    display: flex;
    gap: 5px;
}

/* Profil Dropdown Stilleri */
header .profile-dropdown {
    position: relative;
    margin-right: 1.5rem;
}

header .profile-dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
}

header .profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-top: 0.5rem;
    display: none;
}

header .profile-dropdown-menu.show {
    display: block;
    z-index: 1001;
}

header .dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

.search-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #6e7781);
    font-size: 1.3rem;
    margin-left: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 575.98px) {
    .search-box {
        display: none !important;
    }
    .search-toggle-btn {
        display: flex !important;
    }
    .search-box.active {
        display: flex !important;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        margin: 0 auto;
        z-index: 1000;
        background: var(--header-bg, #fff);
        border-radius: 6px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.12);
        max-width: 95vw;
        width: 95vw;
        padding: 8px 16px;
    }
}

header .dropdown-username {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

header .dropdown-email {
    font-size: 0.8rem;
    color: #8b949e;
}

header .dropdown-divider {
    height: 1px;
    margin:  0;
}

header .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

header .dropdown-item:hover {
    background-color: #1f2937;
    color: #e6edf3; /* Hover durumunda yazı rengini koruyoruz */
}

header .dropdown-item i {
    font-size: 1rem;
    color: #8b949e;
}

.token-badge {
    background-color: #10b981;
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: auto;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    cursor: pointer;
    overflow: hidden;
}

.user-avatar-image {
    padding: 0;
    background-color: transparent;
}

.user-avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


/* Ana İçerik */
.dashboard-content {
    flex: 1;
    padding: 1rem 1rem;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.info-bar {
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.info-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.info-link {
    color: #10b981;
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

.search-container {
    margin-bottom: 1.5rem;
}

.search-box {
    background-color:var(--search-box-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-box i {
    color: #8b949e;
}

.search-box input {
    background: transparent;
    border: none;
    color: #e6edf3;
    flex: 1;
    outline: none;
    font-size: 0.95rem;
}

.search-box input::placeholder {
    color: #8b949e;
}

/* Chatbot Kartları - YouTube Tarzı */
.chatbot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.chatbot-card {
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease;
    width: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.chatbot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.card-body-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #f1f5f9;
    margin: 0 0 4px 0;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 3;
}

.card-title a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #10b981;
}

.card-description, .card-tags {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.card-description {
    display: none;
}

.card-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #1e293b;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    height: 48px;
    position: relative;
    z-index: 4;
    text-align: center;
}

.chatbot-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.chatbot-type i {
    font-size: 1rem;
    color: #64748b;
}

.card-header {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    margin-bottom: 12px;
}

.card-profile {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    margin-top: 10px;
}

.profile-container-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-name-card {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 2px;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin-right: 10px;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.card-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.badge-herkese-acik, .badge-ozel, .badge-ucretli, .badge-giris-gerekli {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 3;
    font-weight: 500;
}

.badge-right {
    margin-left: auto;
}

.status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-weight: 500;
}

.edit-button {
    margin-left: auto;
}

.approval-actions {
    margin-top: 10px;
}

.badge-herkese-acik {
    background-color: var(--badge-acik-bg);
    color: var(--badge-acik-color);
}

.badge-ozel {
    background-color: var(--badge-ozel-bg);
    color: var(--badge-ozel-color);
}

.badge-ucretli {
    background-color: var(--badge-ucretli-bg);
    color: var(--badge-ucretli-color);
}

.badge-giris-gerekli {
    background-color: var(--badge-ozel-bg);
    color: var(--badge-ozel-color);
}

.badge-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-button {
    background-color: rgba(88, 166, 255, 0.2);
    color: #58a6ff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.edit-button:hover {
    background-color: rgba(88, 166, 255, 0.4);
    color: #ffffff;
}

.card-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.default-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #0f172a;
    background-image: linear-gradient(30deg, #10b981 12%, transparent 12.5%, transparent 87%, #10b981 87.5%, #10b981),
    linear-gradient(150deg, #10b981 12%, transparent 12.5%, transparent 87%, #10b981 87.5%, #10b981),
    linear-gradient(30deg, #10b981 12%, transparent 12.5%, transparent 87%, #10b981 87.5%, #10b981),
    linear-gradient(150deg, #10b981 12%, transparent 12.5%, transparent 87%, #10b981 87.5%, #10b981),
    linear-gradient(60deg, #10b98177 25%, transparent 25.5%, transparent 75%, #10b98177 75%, #10b98177);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0;
}

.default-thumbnail.color-1 {
    background-color: #0f172a;
    background-image: linear-gradient(30deg, #10b981 12%, transparent 12.5%, transparent 87%, #10b981 87.5%, #10b981),
    linear-gradient(150deg, #10b981 12%, transparent 12.5%, transparent 87%, #10b981 87.5%, #10b981),
    linear-gradient(30deg, #10b981 12%, transparent 12.5%, transparent 87%, #10b981 87.5%, #10b981),
    linear-gradient(150deg, #10b981 12%, transparent 12.5%, transparent 87%, #10b981 87.5%, #10b981),
    linear-gradient(60deg, #10b98177 25%, transparent 25.5%, transparent 75%, #10b98177 75%, #10b98177);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0;
}

.default-thumbnail.color-2 {
    background-color: #0f172a;
    background-image: 
    radial-gradient(circle at 50% 50%, #10b981 10%, transparent 10.5%),
    radial-gradient(circle at 0% 0%, #10b981 5%, transparent 5.5%),
    radial-gradient(circle at 100% 0%, #10b981 5%, transparent 5.5%),
    radial-gradient(circle at 0% 100%, #10b981 5%, transparent 5.5%),
    radial-gradient(circle at 100% 100%, #10b981 5%, transparent 5.5%);
    background-size: 60px 60px;
    background-position: 0 0;
}

.default-thumbnail.color-3 {
    background-color: #0f172a;
    background-image: 
    linear-gradient(45deg, #10b981 25%, transparent 25%), 
    linear-gradient(-45deg, #10b981 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #10b981 75%),
    linear-gradient(-45deg, transparent 75%, #10b981 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.default-thumbnail.color-4 {
    background-color: #0f172a;
    background-image: 
    linear-gradient(0deg, #10b98133 50%, transparent 50%),
    linear-gradient(90deg, #10b98133 50%, transparent 50%);
    background-size: 40px 40px;
}

.default-thumbnail.color-5 {
    background-color: #0f172a;
    background-image: 
    linear-gradient(45deg, #10b98122 25%, transparent 25%, transparent 75%, #10b98122 75%, #10b98122),
    linear-gradient(-45deg, #10b98122 25%, transparent 25%, transparent 75%, #10b98122 75%, #10b98122);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.chatbot-card:hover .card-thumbnail {
    transform: scale(1.03);
}

.profile-avatar-container {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin: 10px;
}

.profile-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.profile-overlay:hover {
    transform: scale(1.05);
}


.header-left, .header-right {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    gap: 1rem;
}


.logo-light { display: none; }
.logo-dark { display: none; }

.logo-container{
    overflow: hidden;
    height: 60px;
    width: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #10b981;
}

.logo-png{ 
    padding-top: 8px;
    height: 240px; 
    margin-right: 10px;
}

.logo-text{
    color:var(--text-color)
}

.header-center {
    display: flex;
    gap: 1.5rem;
    flex-grow: 1 !important;
    max-width: none !important;
}

.header-link {
    color: #8b949e;
    text-decoration: none;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.header-link:hover, .header-link.active {
    color: #e6edf3;
}

.header-link i {
    font-size: 1.1rem;
}

.header-center #search-container {
    min-width: 400px !important;
    max-width: 400px !important;
    width: 100%;
}

.header-center #search-input {
    color: var(--text-color);
    width: 100% !important;
}

/* Kanal Banner Stilleri */
.channel-banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 15px 20px;
    background-color: var(--background);
}

.channel-banner {
    width: 100%;
    max-width: 1200px;
    height: 200px;
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}
