* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Info Box - Genel stil */
.info-box {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Login Page */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1a73e8;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #1a73e8;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #1557b0;
}

.btn-outline {
    background: white;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.btn-outline:hover {
    background: #f0f7ff;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

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

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4caf50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    color: #1a73e8;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-email {
    color: #666;
    font-size: 14px;
}

/* Health Indicator */
.health-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.health-indicator:hover {
    background: #ebebeb;
}

.health-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffc107;
    animation: pulse 2s infinite;
}

.health-indicator.healthy .health-dot {
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: none;
}

.health-indicator.unhealthy .health-dot {
    background: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
    animation: pulse 1s infinite;
}

.health-indicator.checking .health-dot {
    background: #ffc107;
}

.health-text {
    font-weight: 500;
    white-space: nowrap;
    color: #555;
}

.health-indicator.healthy .health-text {
    color: #4caf50;
}

.health-indicator.unhealthy .health-text {
    color: #f44336;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   SIDEBAR NAVIGATION - Modern Admin Panel
   ============================================ */

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar Logo */
.sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-icon {
    font-size: 32px;
}

.sidebar-logo-text h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.sidebar-logo-text p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin: 2px 0 0 0;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 20px 0;
}

.menu-section {
    margin-bottom: 30px;
}

.menu-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 20px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.3);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #60a5fa;
    border-left-color: #3b82f6;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #3b82f6;
    border-radius: 3px 0 0 3px;
}

.menu-item-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.menu-item-text {
    flex: 1;
}

.menu-item-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Submenu Styles */
.menu-item-parent {
    cursor: pointer;
    user-select: none;
}

.menu-item-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu-item-parent.submenu-open .menu-item-arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    margin: 4px 0;
    border-radius: 8px;
    overflow: hidden;
}

.menu-item-child {
    padding: 10px 20px 10px 40px;
    font-size: 14px;
}

.menu-item-child:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-item-child.active {
    background: rgba(59, 130, 246, 0.15);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: #f5f7fa;
}

/* Top Header */
.top-header {
    background: white;
    padding: 16px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-header-title h1 {
    font-size: 24px;
    color: #1e293b;
    margin: 0;
    font-weight: 700;
}

.top-header-title p {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-selector-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    padding: 8px 10px;
    width: auto;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: #1a73e8;
}

.btn-icon:hover {
    color: #1557b0;
}

.inline-app-creator {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 340px;
    max-width: min(340px, calc(100vw - 48px));
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    padding: 16px;
    display: none;
    z-index: 50;
    animation: fadeInScale 0.2s ease-out;
}

.inline-app-creator::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 28px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    transform: rotate(45deg);
}

.inline-app-creator.active {
    display: block;
}

.inline-app-creator form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inline-app-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.inline-app-form-header h3 {
    font-size: 16px;
    color: #111827;
    margin: 0;
    font-weight: 600;
}

.btn-close-small {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-close-small:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #1a73e8;
}

.inline-app-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.inline-app-actions .btn {
    width: auto;
    flex: 1;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Content Container */
.content-container {
    padding: 32px;
    max-width: 1400px;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-header h2 {
    font-size: 28px;
    color: #1e293b;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.page-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1e293b;
    cursor: pointer;
    padding: 8px;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .top-header {
        padding: 12px 16px;
    }
    
    .content-container {
        padding: 16px;
    }
    
    .top-header-title h1 {
        font-size: 18px;
    }

    .top-header-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 12px;
    }

    .app-selector-group {
        width: 100%;
    }

    .app-selector-group .form-group {
        flex: 1;
    }

    .inline-app-creator {
        position: static;
        width: 100%;
        max-width: none;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
        margin-top: 8px;
    }

    .inline-app-creator::before {
        display: none;
    }
}

/* OLD NAVIGATION - KEEP FOR COMPATIBILITY BUT HIDDEN */
.nav-tabs {
    display: none;
}

.nav-tab {
    display: none;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

.tab-content h2 {
    font-size: 24px;
    color: #1e293b;
    margin: 0 0 24px 0;
    font-weight: 700;
}

.tab-content h3 {
    font-size: 20px;
    color: #334155;
    margin: 24px 0 16px 0;
    font-weight: 600;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tab-header h2 {
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 40px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #1a73e8;
}

/* Table */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Checklist table container with scroll and freeze panes */
#checklist-table-section .table-container {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #555;
}

table tr:hover {
    background: #f9f9f9;
}

.checklist-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.checklist-table th,
.checklist-table td {
    vertical-align: top;
}

/* Freeze panes - sticky header */
.checklist-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.checklist-table thead th {
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 11;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

.checklist-table thead th:not(:first-child) {
    text-align: center;
}

/* Table container with scroll */
#checklist-table-section .table-container {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: auto;
}

.checklist-category-row td {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    padding: 10px 16px;
}

.cell-title {
    font-weight: 600;
    color: #111827;
}

.table-subtext {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.mono-cell {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #475569;
    text-align: center;
}

.count-cell {
    text-align: center;
}

.actions-cell {
    text-align: right;
    min-width: 120px;
}

.actions-cell .btn {
    width: auto;
}

.checklist-link-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.badge-positive {
    background: #dcfce7;
    color: #166534;
}

.badge-muted {
    background: #f1f5f9;
    color: #475569;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    cursor: default;
}

.chip-action {
    background: #e8f2fd;
    color: #1557b0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.chip-action:hover {
    background: #d6e9fb;
}

.load-more-container {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.load-more-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.load-more-text {
    color: #475569;
    font-size: 14px;
}

.load-more-actions {
    display: flex;
    gap: 8px;
}

/* Error/Success Messages */
.error-message {
    background: #fee;
    color: #c00;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #4caf50;
    border: 1px solid #c8e6c9;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s;
    pointer-events: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: slideUp 0.3s;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.modal-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.modal-card + .modal-card {
    margin-top: 16px;
}

.checklist-link-section {
    margin-bottom: 20px;
}

.checklist-link-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-weight: 600;
    color: #111827;
}

.checklist-link-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}

.checklist-link-row:first-of-type {
    border-top: none;
}

.checklist-link-details {
    flex: 1;
    min-width: 0;
}

.checklist-link-details .cell-title {
    margin-bottom: 4px;
}

.link-muted {
    color: #2563eb;
    font-size: 13px;
    word-break: break-all;
}

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

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.btn-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.btn-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
    width: auto;
}

.form-group small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #4285f4);
    animation: progressAnimation 1.5s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   CHAT CONTAINER STYLES - Modern RAG Chat UI
   ============================================ */

.chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
    max-height: 800px;
}

/* Chat Header */
.chat-header {
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.chat-title h2 {
    margin: 0;
    font-size: 22px;
    color: #1a73e8;
}

.chat-subtitle {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #666;
}

.chat-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.chat-app-select {
    min-width: 200px;
    padding: 8px 12px;
    border: 2px solid #1a73e8;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-app-select:focus {
    outline: none;
    border-color: #1557b0;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Chat Info Panel */
.chat-info-panel {
    padding: 12px 20px;
    background: #f0f7ff;
    border-bottom: 1px solid #d0e7ff;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 13px;
}

.info-item {
    display: flex;
    gap: 8px;
}

.info-label {
    font-weight: 600;
    color: #555;
}

.info-value {
    color: #1a73e8;
    font-family: 'Courier New', monospace;
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Welcome Screen */
.chat-welcome {
    text-align: center;
    padding: 60px 30px;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.welcome-icon {
    font-size: 80px;
    margin-bottom: 25px;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.chat-welcome h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}

.chat-welcome p {
    color: #666;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.6;
}

.welcome-features {
    display: none;
}

.feature-item {
    display: none;
}

/* Chat Message Bubbles */
.message-wrapper {
    display: flex;
    margin-bottom: 16px;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-wrapper.user {
    justify-content: flex-end;
}

.message-wrapper.assistant {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
}

.message-wrapper.user .message-bubble {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.message-wrapper.assistant .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.job-question-wrapper .message-bubble {
    max-width: 100%;
}

.job-answer-confirmation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background-color: #e6f4ea;
    color: #0f8a1f;
    font-weight: 600;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px rgba(15, 138, 31, 0.15);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.job-answer-confirmation.visible {
    opacity: 1;
    transform: translateY(0);
}

.job-answer-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0f8a1f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.job-question-wrapper.job-question-completed {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.message-content {
    line-height: 1.5;
    white-space: pre-wrap;
}

.message-meta {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.7;
}

.message-wrapper.user .message-meta {
    color: rgba(255, 255, 255, 0.9);
}

.message-wrapper.assistant .message-meta {
    color: #666;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    max-width: 70px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    padding: 20px;
    border-top: 2px solid #e0e0e0;
    background: white;
    border-radius: 0 0 12px 12px;
}

#chat-form {
    position: relative; /* Autocomplete dropdown için gerekli */
}

.chat-input-disabled {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

.chat-input-wrapper {
    position: relative;
}

.chat-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    transition: all 0.3s;
    background: white;
}

.chat-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.chat-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.chat-send-btn {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 36px;
    height: 36px;
    background: transparent;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.chat-send-btn:hover:not(:disabled) {
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.05);
}

.chat-send-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.chat-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.send-icon {
    display: inline-block;
}

.chat-hints {
    margin-top: 10px;
    text-align: center;
}

.chat-hints small {
    color: #666;
    font-size: 12px;
}

/* Message Error State */
.message-error {
    background: #ffebee !important;
    border-color: #f44336 !important;
    color: #c62828 !important;
}

.message-error::before {
    content: "⚠️ ";
}

/* Responsive Chat */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 150px);
        border-radius: 8px;
    }
    
    .chat-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .chat-controls {
        width: 100%;
    }
    
    .chat-app-select {
        width: 100%;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .chat-info-panel {
        flex-direction: column;
        gap: 8px;
    }
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border: 2px solid #1a73e8;
    border-radius: 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    max-height: 350px;
    overflow-y: auto;
    z-index: 9999;
    min-height: 50px;
}

.autocomplete-category {
    padding: 10px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 13px;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.autocomplete-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #e3f2fd;
}

.autocomplete-item.selected {
    border-left: 3px solid #1a73e8;
}

.autocomplete-item-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.autocomplete-item-value {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.autocomplete-item:hover .autocomplete-item-value {
    background: #1a73e8;
    color: white;
}

.autocomplete-item.selected .autocomplete-item-value {
    background: #1a73e8;
    color: white;
}

.autocomplete-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.autocomplete-hint {
    padding: 8px 15px;
    background: #fff3cd;
    border-top: 1px solid #ffc107;
    font-size: 11px;
    color: #856404;
    position: sticky;
    bottom: 0;
    z-index: 1;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e0e0e0;
    color: #666;
    white-space: nowrap;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-tabs {
        overflow-x: auto;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .autocomplete-dropdown {
        max-height: 250px;
    }

    .techspec-overview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .techspec-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .techspec-actions .techspec-action-btn,
    .techspec-actions .techspec-refresh-btn {
        flex: 1 1 100%;
    }
}

/* TechSpec Overview Layout */
.techspec-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.techspec-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.techspec-actions .techspec-action-btn {
    flex: 1 1 180px;
    min-width: 180px;
    padding: 12px;
    font-size: 14px;
}

.techspec-actions .techspec-refresh-btn {
    flex: 0 0 auto;
    padding: 12px 24px;
    font-size: 14px;
}

.techspec-hint {
    margin-bottom: 16px;
    background: #e8f2fd;
    border-left: 4px solid #1a73e8;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #1e3a5f;
}

.techspec-hint strong {
    font-weight: 600;
    margin-right: 4px;
}

/* ============================================
   TechSpec Tablo Stilleri
   ============================================ */
.techspec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.techspec-table thead {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: white;
}

.techspec-table thead th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #1557b0;
}

.techspec-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.techspec-table tbody tr:hover {
    background-color: #f0f7ff;
}

.techspec-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.techspec-table tbody tr:nth-child(even):hover {
    background-color: #f0f7ff;
}

.techspec-table tbody td {
    padding: 10px;
    color: #333;
    vertical-align: middle;
}

.techspec-table tbody td:first-child {
    font-weight: 500;
    color: #1a1a1a;
}

/* Responsive tablo */
@media (max-width: 600px) {
    .techspec-table {
        font-size: 11px;
    }
    
    .techspec-table thead th,
    .techspec-table tbody td {
        padding: 8px 6px;
    }
}

/* Chat mesajlarında tablo başlıkları */
.message-content h4 {
    margin: 10px 0 8px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.message-content h3 {
    margin: 10px 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* Mesaj bubble'ında overflow fix */
.message-content {
    overflow-x: auto;
}

/* ========== EMBED WIDGET STYLES ========== */

/* View type seçim kartları */
input[type="radio"][name="embed-view-type"] {
    display: none;
}

input[type="radio"][name="embed-view-type"]:checked + div {
    border-color: #1a73e8 !important;
    background: #f0f7ff !important;
}

/* Renk input grupları */
input[type="color"] {
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

/* Embed preview container */
#embed-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Preview içindeki button hover efektleri */
#embed-preview-container button:hover {
    opacity: 0.9;
}

#embed-preview-container input:hover {
    border-color: #1a73e8;
}

/* View type kartları hover efekti */
label:has(input[name="embed-view-type"]) div:hover {
    border-color: #1a73e8 !important;
    background: #f8fbff !important;
}

/* Pozisyon radio butonları */
input[type="radio"][name="embed-position"] {
    accent-color: #1a73e8;
}

/* Toast Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Unsaved bar pulse effect */
#widget-unsaved-bar {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    50% {
        box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
    }
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ============================================
   SUBSCRIPTION & BILLING STYLES
   ============================================ */

/* Plan Badge */
.plan-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.free { background: #e0e0e0; color: #666; }
.plan-badge.standard { background: #e3f2fd; color: #1976d2; }
.plan-badge.pro { background: #e8eef7; color: #1557b0; }
.plan-badge.custom { background: #f0f4f9; color: #0f172a; }

/* Plan Cards */
.plan-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
}

.plan-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}

.plan-card.current {
    border-color: #1a73e8;
    background: #f0f7ff;
}

.plan-card.current::before {
    content: '✓ Current Plan';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1a73e8;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

/* Add-on Cards */
.addon-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-card.active {
    border-color: #1a73e8;
    background: #f0f7ff;
}

/* Usage Cards */
.usage-card {
    background: #f8fafb;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.usage-card .usage-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.usage-card .usage-value {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

/* Payment Method Cards */
.payment-method-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-method-card.default {
    border-color: #1a73e8;
    background: #f0f7ff;
}

/* Transaction List */
.transaction-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-status.completed { background: #e8f5e9; color: #2e7d32; }
.transaction-status.pending { background: #fff3e0; color: #e65100; }
.transaction-status.failed { background: #ffebee; color: #c62828; }

/* Premium Badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

