/* Genel Stiller */
html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.feature-box {
    padding: 1.5rem;
    margin: 1rem 0;
}

.feature-box i {
    opacity: 0.9;
}

/* Card Stiller */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* Button Stiller */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
}

.btn-primary:focus {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
    color: white !important;
}

.btn-primary:active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
}

/* Login Sayfası */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

/* Dashboard */
.sidebar {
    min-height: 100vh;
    background: white !important;
    border-radius: 10px !important;
    padding: 25px !important;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08) !important;
    margin-bottom: 20px !important;
    border: 1px solid #e9ecef !important;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    margin: 0.2rem 0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}

.sidebar-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    color: #4CAF50 !important;
}

.popular-article {
    display: flex !important;
    align-items: flex-start !important;
    padding: 12px 8px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s ease !important;
    margin-bottom: 12px !important;
}

.popular-article:hover {
    background: rgba(76, 175, 80, 0.05) !important;
    transform: translateX(3px) !important;
    text-decoration: none !important;
    color: inherit !important;
}

.popular-number {
    background: #4CAF50 !important;
    color: white !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

.popular-article h6 {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
    color: #2c3e50 !important;
}

.popular-article:hover h6 {
    color: #4CAF50 !important;
}

.popular-article small {
    font-size: 0.75rem !important;
    color: #6c757d !important;
}

/* Ticket Durumları */
.status-open { color: #dc3545; }
.status-in_progress { color: #fd7e14; }
.status-pending { color: #ffc107; }
.status-resolved { color: #198754; }
.status-closed { color: #6c757d; }

.badge-open { background-color: #dc3545; }
.badge-in_progress { background-color: #fd7e14; }
.badge-pending { background-color: #ffc107; color: #000; }
.badge-resolved { background-color: #198754; }
.badge-closed { background-color: #6c757d; }

/* Öncelik Seviyeleri */
.priority-low { color: #28a745; }
.priority-medium { color: #ffc107; }
.priority-high { color: #fd7e14; }
.priority-urgent { color: #dc3545; }

.badge-low { background-color: #28a745; }
.badge-medium { background-color: #ffc107; color: #000; }
.badge-high { background-color: #fd7e14; }
.badge-urgent { background-color: #dc3545; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .feature-box {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    /* Brand Logo Responsive */
    .brand-logo,
    .brand-logo-placeholder,
    .brand-card-logo {
        width: auto !important;
        height: 80px !important;
        max-width: 100% !important;
    }
    
    .category-icon {
        width: 160px !important;
        height: 80px !important;
    }
    
    .category-icon img {
        height: 80px !important;
        max-width: 120px !important;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Chat Widget Özelleştirme */
.crisp-client .crisp-1wo1nzc {
    right: 20px !important;
    bottom: 20px !important;
}

/* Tablo Stiller */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Form Stiller */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Alert Stiller */
.alert {
    border: none;
    border-radius: 10px;
}

/* Pagination */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 0.1rem;
    border: 1px solid #dee2e6;
}

.pagination .page-link:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.file-upload-area.dragover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: white;
    border: 2px solid #667eea;
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Brand Logo Styles - completely clean */
.brand-logo {
    width: auto !important;
    height: 90px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
}

.brand-logo-placeholder {
    width: auto !important;
    height: 90px !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #6c757d !important;
    font-size: 1.5rem !important;
    padding: 0 !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
}

.brand-card-logo {
    width: auto !important;
    height: 90px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
}

/* Category icon container - completely clean, no borders or shadows */
.category-icon {
    width: 180px !important;
    height: 90px !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 0px !important;
    font-size: 2rem !important;
    color: #6c757d !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Override any inline background styles for logos */
.category-icon img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    height: 90px !important;
    max-width: 130px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Remove background color override */
.category-card .category-icon[style*="background"] {
    background: transparent !important;
}

/* Force remove all inline background styles */
.category-icon[style] {
    background: transparent !important;
}

/* Additional override for any dynamic styles */
div.category-icon {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Category card clean styles */
.category-card {
    position: relative !important;
    z-index: 1 !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important; /* Border radius 15px */
    padding: 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.category-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12) !important;
}

/* Override brand info header logo styles */
.brand-info-header .brand-logo,
.brand-info-header .brand-logo-placeholder {
    height: 90px !important;
    width: auto !important;
    max-width: 200px !important;
    margin: 0 auto !important;
    background: transparent !important;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.3s ease forwards;
}

/* Print Stiller */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .pagination {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

/* Fix for display issues */
body {
    position: relative !important;
    z-index: 0 !important;
    overflow-x: hidden !important;
}

.container {
    position: relative !important;
    z-index: 1 !important;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding: 0;
    width: 100%;
}

/* Remove any problematic pseudo-elements */
.category-card::before,
.category-card::after {
    display: none !important; /* Pseudo elementleri kaldır */
}

/* Category card clean styles */
.category-card {
    position: relative !important;
    z-index: 1 !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important; /* Border radius 15px */
    padding: 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.category-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12) !important;
}

/* Category title görünür hale getir */
.category-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 15px 0 10px 0 !important;
    display: block !important;
}

/* Category count ve meta bilgileri */
.category-count {
    font-size: 0.9rem !important;
    color: #4CAF50 !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
}

.category-meta {
    font-size: 0.8rem !important;
    color: #6c757d !important;
    margin: 0 !important;
}

/* Header nav button specific styles */
.navbar .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: none !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 8px 20px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.navbar .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
    color: white !important;
}

.navbar .btn-primary:focus {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
    color: white !important;
}

/* Marka Bilgi Kutusu Düzeltmeleri */
.brand-info-header {
    color: white !important;
    padding: 40px !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    min-height: 300px !important;
    display: flex !important;
    align-items: center !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important; /* Parallax kaldırıldı */
    background-repeat: no-repeat !important;
    position: relative !important;
    background-color: #333 !important; /* Fallback color */
    border-radius: 10px !important; /* Border radius 15px */
}

.brand-info-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important; /* Daha opak siyah overlay */
    z-index: 1 !important;
}

.brand-info-header .container {
    position: relative !important;
    z-index: 2 !important;
}

.brand-info-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
}

/* Logo Çerçevesi - Yuvarlak Köşeli */
.brand-logo-container {
    width: 120px !important;
    height: 120px !important;
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 20px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    padding: 10px !important;
}

.brand-logo-container .brand-logo,
.brand-logo-container .brand-logo-placeholder {
    height: 90px !important;
    width: auto !important;
    max-width: 100px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.brand-info-text {
    text-align: center !important;
}

.brand-info-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 0px !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.brand-info-description {
    font-size: 1.2rem !important;
    margin-bottom: 0px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.brand-stats {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    margin-top: 25px !important;
}

.brand-stat {
    text-align: center !important;
    padding: 20px 25px !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    min-width: 120px !important;
}

.brand-stat-number {
    display: block !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #4CAF50 !important;
}

.brand-stat-label {
    font-size: 0.95rem !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Navigasyon Linkleri İyileştirme */
.navbar-nav .nav-link {
    background: transparent !important;
    color: #495057 !important;
    padding: 8px 16px !important;
    margin: 0 5px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.navbar-nav .nav-link:hover {
    background: rgba(76, 175, 80, 0.1) !important;
    color: #4CAF50 !important;
    transform: translateY(-1px) !important;
}

.navbar-nav .nav-link.active {
    background: #4CAF50 !important;
    color: white !important;
}

.navbar-nav .nav-link i {
    margin-right: 5px !important;
}

/* Responsive için kategoriler sütunu */
@media (max-width: 768px) {
    .brand-info-header {
        padding: 30px 20px !important;
        min-height: 250px !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Mobilde 2 sütun */
        gap: 15px !important;
        padding: 0 15px !important;
    }
    
    .category-card {
        padding: 15px !important;
    }
    
    .category-title {
        font-size: 1rem !important;
        margin: 10px 0 8px 0 !important;
    }
    
    .category-count {
        font-size: 0.85rem !important;
    }
    
    .category-meta {
        font-size: 0.75rem !important;
    }
    
    .brand-stats {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
    
    .brand-stat {
        min-width: 200px !important;
        padding: 15px 20px !important;
    }
    
    .brand-info-title {
        font-size: 1.8rem !important;
    }
    
    .brand-info-description {
        font-size: 1rem !important;
    }
    
    .brand-logo-container {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 15px !important;
    }
    
    .brand-logo-container .brand-logo,
    .brand-logo-container .brand-logo-placeholder {
        height: 70px !important;
        max-width: 80px !important;
    }
}

/* Tablet için orta boyut */
@media (max-width: 1024px) and (min-width: 769px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr) !important; /* Tablet'te 4 sütun */
        padding: 0 20px !important;
    }
}

/* Grid Görünümü Stilleri - Boşluk Düzeltilmiş */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
    border-color: #4CAF50;
}

.article-icon {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    position: relative;
    overflow: hidden;
}

.article-body {
    flex: 1;
    display: table-column-group;
    flex-direction: column;
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
    margin-bottom: 0px;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    text-align: left;
    word-wrap: break-word;
}

.article-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.article-category,
.article-brand {
    background: #f8f9fa !important;
    color: #495057 !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    white-space: nowrap;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.article-category {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.article-brand {
    background: #e8f5e8 !important;
    color: #2e7d32 !important;
}

.article-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: auto;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-stats i {
    font-size: 0.8rem;
}

.article-icon-title {
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
    padding: 8px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Tasarım - Grid için */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        padding: 15px;
    }
    
    .article-icon {
        height: 100px;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
    
    .article-category,
    .article-brand {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .article-stats {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .article-card {
        padding: 15px;
    }
    
    .article-icon {
        height: 80px;
    }
} 