/* Genel stiller */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    padding-top: 85px; /* Navbar yüksekliği + biraz boşluk */
    -webkit-text-size-adjust: 100%; /* Safari desteği için */
    text-size-adjust: 100%; /* Modern tarayıcılar için */
}

@media (max-width: 991px) {
    body {
        padding-top: 70px; /* Mobil için daha az boşluk */
    }
}

.container-fluid {
    padding-top: 10px;
}

/* Navbar ile içerik arasındaki boşluk ve uyum için */
.navbar {
        position: sticky;
        top: 0;
        z-index: 1050;
}

.main-content {
        margin-top: 0; /* Body'de zaten padding-top var */
        padding-top: 0.5rem; /* Ekstra boşluk */
}

@media (max-width: 991px) {
    .main-content {
        margin-top: 0;
        padding-top: 0.5rem;
    }
}

/* Global Form Validation Styles - Kırmızı/Yeşil background'ı kaldır */
.form-select.is-valid,
.form-control.is-valid {
    border-color: #28a745 !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2328a745' d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.061L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-select.is-invalid,
.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23dc3545' d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-select.is-valid:focus,
.form-control.is-valid:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background-color: transparent !important;
}

.form-select.is-invalid:focus,
.form-control.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background-color: transparent !important;
}

/* Bootstrap validation override - Comprehensive */
.was-validated .form-control:valid,
.was-validated .form-select:valid,
.form-control:valid,
.form-select:valid {
    background-color: transparent !important;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.form-control:invalid,
.form-select:invalid {
    background-color: transparent !important;
}

/* Select box specific styling - Override all Bootstrap states */
select.form-select,
select.form-control {
    background-color: white !important;
    background-image: none !important;
}

select.form-select.is-valid,
select.form-control.is-valid {
    background-color: white !important;
    border-color: #28a745 !important;
    background-image: none !important;
}

select.form-select.is-invalid,
select.form-control.is-invalid {
    background-color: white !important;
    border-color: #dc3545 !important;
    background-image: none !important;
}

select.form-select:focus,
select.form-control:focus {
    background-color: white !important;
}

/* All validation states - Force transparent background */
.form-control.is-valid,
.form-control.is-invalid,
.form-select.is-valid,
.form-select.is-invalid,
.was-validated .form-control:valid,
.was-validated .form-control:invalid,
.was-validated .form-select:valid,
.was-validated .form-select:invalid {
    background-color: transparent !important;
}

/* Select elements should remain white */
select.form-select,
select.form-control,
select.form-select.is-valid,
select.form-control.is-valid,
select.form-select.is-invalid,
select.form-control.is-invalid,
.was-validated select.form-select:valid,
.was-validated select.form-control:valid,
.was-validated select.form-select:invalid,
.was-validated select.form-control:invalid {
    background-color: white !important;
    background-image: none !important;
}

/* Clean focus states */
.form-control:focus,
.form-select:focus {
    background-color: transparent !important;
}

/* Mobile Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-dark .navbar-nav .nav-link i {
    margin-right: 0.5rem;
}

/* Top Navigation Bar - Global */
.top-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    border: none;
    min-height: 70px;
}

.top-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: white !important;
}

.top-navbar .navbar-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.top-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.top-navbar .navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.top-navbar .navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.top-navbar .navbar-nav .nav-link i {
    margin-right: 0.5rem;
}

@media (max-width: 991px) {
    .top-navbar {
        min-height: 60px;
    }
    
    .top-navbar .navbar-nav .nav-link {
        padding: 0.45rem 0.6rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 992px) {
    .top-navbar .navbar-nav {
        margin-left: auto;
    }
}

/* Desktop Sidebar - DISABLED */
.sidebar {
    display: none !important;
}

/* Main content */
.main-content {
    transition: all 0.3s ease;
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    padding: 2rem;
    margin-top: 0; /* Body'de zaten padding var */
}

@media (max-width: 767.98px) {
    .main-content {
        padding: 1rem;
        margin-top: 0;
    }
}

/* Template kartları */
.template-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    height: 100%;
}

.template-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.template-card .card-title {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.template-card .card-title i {
    color: #6c757d;
    margin-right: 0.5rem;
}

.template-variables {
    min-height: 2rem;
}

.template-variables .badge {
    font-size: 0.7rem;
}

/* Form stilleri */
.form-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

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

/* Buton stilleri */
.btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1da088 100%);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border: none;
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #dc6502 100%);
    transform: translateY(-1px);
    color: #212529;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #d91a72 100%);
    transform: translateY(-1px);
}

/* Template viewer */
.template-viewer {
    background: #2d3748;
    border-radius: 0.5rem;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.template-viewer pre {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.template-viewer pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.template-viewer pre::-webkit-scrollbar-track {
    background: #1a202c;
    border-radius: 4px;
}

.template-viewer pre::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.template-viewer pre::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

.template-viewer code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

/* Template info */
.template-info {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid #667eea;
}

.template-info strong {
    color: #495057;
    font-weight: 600;
}

.template-info .text-primary {
    font-weight: 500;
    font-size: 1.1rem;
}

.template-info .text-muted {
    font-style: italic;
}

/* Template actions */
.template-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.template-actions .btn {
    border-radius: 0.375rem;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Card improvements */
.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.card-header h5 {
    color: #495057;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5 i {
    color: #667eea;
    margin-right: 0.5rem;
}

.card-header .btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* Collapse animation */
.collapse {
    transition: height 0.3s ease;
}

.collapsing {
    transition: height 0.3s ease;
}

/* Syntax highlighting for Jinja2 */
.language-jinja2 {
    color: #e2e8f0;
}

.language-jinja2 .jinja-variable {
    color: #81c784;
    font-weight: 600;
}

.language-jinja2 .jinja-tag {
    color: #f06292;
    font-weight: 600;
}

.language-jinja2 .jinja-comment {
    color: #90a4ae;
    font-style: italic;
}

.language-jinja2 .jinja-string {
    color: #ffb74d;
}

.language-jinja2 .jinja-keyword {
    color: #64b5f6;
    font-weight: 600;
}

/* Variables list */
.variables-list {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
}

.variable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.variable-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateX(2px);
}

.variable-item.highlighted {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f2ff 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.variable-name {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
}

.variable-type {
    font-size: 0.75rem;
    background: #667eea;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    text-transform: uppercase;
    font-weight: 500;
}

.variables-list::-webkit-scrollbar {
    width: 6px;
}

.variables-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.variables-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.variables-list::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Responsive template viewer */
@media (max-width: 767.98px) {
    .template-viewer pre {
        font-size: 0.8rem;
        padding: 1rem;
    }
    
    .template-actions {
        flex-direction: column;
    }
    
    .template-actions .btn {
        width: 100%;
    }
    
    .template-info {
        padding: 0.75rem;
    }
    
    .variables-list {
        margin-top: 1rem;
        max-height: 200px;
    }
    
    .variable-item {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .variable-name {
        font-size: 0.8rem;
    }
    
    .variable-type {
        font-size: 0.7rem;
    }
}

/* Konfigürasyon önizleme */
.config-preview {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
}

.config-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #4a5568;
}

.config-preview-title {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Sayfalama */
.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.125rem;
    color: #667eea;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #5a6fd8;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* Responsive tasarım */
@media (max-width: 767.98px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-top: 1rem;
    }
    
    .template-card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
        border-radius: 0.5rem !important;
        width: 100%;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-toolbar {
        margin-bottom: 1rem;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination .page-item {
        margin: 0.125rem;
    }
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 0 !important;
    }
}

/* Sidebar toggle animation */
.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.sidebar-toggle i {
    font-size: 1.2rem;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile sidebar */
.sidebar-mobile {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar-mobile.active {
    left: 0;
}

.sidebar-mobile .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-mobile .sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.sidebar-mobile .sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Improved card design */
.template-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.template-card:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.template-card .card-body {
    padding: 1.5rem;
}

.template-card .card-title {
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.template-card .card-title i {
    color: #667eea;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.template-card .card-text {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.template-variables {
    min-height: 2.5rem;
    margin-bottom: 1.5rem;
}

.template-variables .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

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

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

/* Form grup stilleri */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    white-space: normal;
}

/* Form text içindeki icon'ların düzgün hizalanması */
.form-text i.fas,
.form-text i.far,
.form-text i.fab {
    vertical-align: baseline;
    margin-right: 0.35rem;
    font-size: 0.8rem;
    color: #6c757d;
    display: inline-block;
    width: auto;
    min-width: 12px;
}

/* Mobile responsive için form-text düzenlemeleri */
@media (max-width: 576px) {
    .form-text {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-top: 0.2rem;
    }
    
    .form-text i.fas,
    .form-text i.far,
    .form-text i.fab {
        font-size: 0.75rem;
        margin-right: 0.25rem;
    }
}

/* Çoklu değer input'ları */
.multi-value-input {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.multi-value-input input {
    flex: 1;
    margin-right: 0.5rem;
}

.multi-value-input button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.add-item-btn {
    background: none;
    border: 1px dashed #ced4da;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-item-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Alert stilleri */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(232, 62, 140, 0.1) 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #0c5460;
    border-left: 4px solid #667eea;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 0.2rem solid #f3f3f3;
    border-top: 0.2rem solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip stilleri */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: #2d3748;
    color: #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

/* Özel scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Kategori filtreleme stilleri */
.category-filter-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-filter-card .card-body {
    padding: 1.25rem;
}

.category-filter-btn {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.category-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-filter-btn.btn-primary {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.category-filter-btn .badge {
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

/* Template kartlarında kategori badgeleri */
.template-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.template-card .badge i {
    margin-right: 0.25rem;
}

/* Kategori seçimi formu */
.form-select optgroup {
    font-weight: 600;
    color: #495057;
}

.form-select option {
    padding: 0.375rem 0.75rem;
}

/* Alt kategori bölümü */
.subcategory-section {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.subcategory-btn {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .category-filter-card .card-body {
        padding: 1rem;
    }
    
    .category-filter-btn {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .subcategory-btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Template tablosu stilleri */
.table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa !important;
}

.table td {
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.template-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
}

.template-description {
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
}

.variable-list {
    max-height: 60px;
    overflow: hidden;
}

.variable-list .badge {
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
}

/* ---- Dropdown styles removed - replaced with action buttons ---- */

/* Responsive tablo */
@media (max-width: 991.98px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th:nth-child(3),
    .table td:nth-child(3) {
        display: none; /* Açıklama sütununu tablet'de gizle */
    }
    
    .template-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .table th:nth-child(2),
    .table td:nth-child(2) {
        display: none; /* Kategori sütununu mobile'da gizle */
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .table td:last-child {
        padding: 0.5rem 0.5rem;
        min-width: auto;
    }
}

/* Boş durum stilleri */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* Tablo footer stilleri */
.card-footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6;
}

.card-footer small {
    font-weight: 500;
}

/* Kategori badge'leri */
.badge.rounded-pill {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

/* Öne çıkan template badge'i */
.badge.bg-warning {
    color: #212529 !important;
}

/* Template durumu göstergeleri */
.template-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.template-status.active {
    background-color: #28a745;
}

.template-status.inactive {
    background-color: #dc3545;
}

.template-status.draft {
    background-color: #ffc107;
}

/* Action Icon Buttons - Modern Design */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 120px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.action-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    opacity: 0.9;
}

.action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.action-btn:active {
    opacity: 0.8;
}

/* Success Action Button (Generate Config) */
.action-btn.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: transparent;
}

.action-btn.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1da088 100%);
    color: white;
}

/* Info Action Button (View) */
.action-btn.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
    color: white;
    border-color: transparent;
}

.action-btn.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #0056b3 100%);
    color: white;
}

/* Warning Action Button (Edit) */
.action-btn.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
    border-color: transparent;
}

.action-btn.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #dc6502 100%);
    color: #212529;
}

/* Danger Action Button (Delete) */
.action-btn.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
    border-color: transparent;
}

.action-btn.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #d91a72 100%);
    color: white;
}

/* Pulse animation for important actions */
.action-btn.btn-success:hover {
    animation: pulse-success 0.6s ease-in-out;
}

.action-btn.btn-danger:hover {
    animation: pulse-danger 0.6s ease-in-out;
}

@keyframes pulse-success {
    0% { box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4); }
    100% { box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); }
}

@keyframes pulse-danger {
    0% { box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4); }
    100% { box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); }
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .action-buttons {
        gap: 0.375rem;
        min-width: auto;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}

/* Table cell alignment for action buttons */
.table td:last-child {
    vertical-align: middle;
    padding: 0.75rem 1rem;
    min-width: 120px;
}

.table td:nth-last-child(2) {
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* User Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 1rem;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

/* User Profile Styles */
.profile-avatar {
    text-align: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-title {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* User Avatar Styles */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Profile Page Specific Styles */
.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.profile-stat {
    padding: 0.5rem 0;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.profile-avatar {
    margin-bottom: 1rem;
}

.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

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

.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #654b92 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table td {
    border: none;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
}

.table-sm th,
.table-sm td {
    padding: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* Account Info Styles */
.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.account-info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-value {
    color: #6c757d;
    font-weight: 500;
}

/* Purple button variants */
.btn-purple {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.btn-purple:hover {
    color: #fff;
    background-color: #5a359c;
    border-color: #5a359c;
}

.btn-purple:focus, .btn-purple.focus {
    color: #fff;
    background-color: #5a359c;
    border-color: #5a359c;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.5);
}

.btn-purple:not(:disabled):not(.disabled):active, 
.btn-purple:not(:disabled):not(.disabled).active,
.show > .btn-purple.dropdown-toggle {
    color: #fff;
    background-color: #5a359c;
    border-color: #5a359c;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:focus, .btn-outline-purple.focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.5);
}

.btn-outline-purple:not(:disabled):not(.disabled):active, 
.btn-outline-purple:not(:disabled):not(.disabled).active,
.show > .btn-outline-purple.dropdown-toggle {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.text-purple {
    color: #6f42c1 !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
}
