﻿/* ========================================
   SERVISCRM - OPTIMIZED STYLES
   Modern, Responsive, Production-Ready
   Version: 2.0.0 - Optimized
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
    /* Primary Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-500: #5a67d8;
    --primary-600: #4c51bf;
    --primary-700: #434190;
    /* Status Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #065f46;
    --error: #ef4444;
    --error-light: #fee2e2;
    --error-dark: #991b1b;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #92400e;
    --info: #3b82f6;
    --info-light: #dbeafe;
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Border Radius */
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    /* Z-Index */
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--gray-900);
    background-color: var(--gray-50);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--gray-900);
    margin-bottom: var(--spacing-4);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--spacing-4);
    color: var(--gray-700);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

    a:hover {
        color: var(--primary-700);
    }

/* === UTILITY CLASSES === */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-error {
    color: var(--error);
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: var(--spacing-3);
}

.mb-4 {
    margin-bottom: var(--spacing-4);
}

.mb-6 {
    margin-bottom: var(--spacing-6);
}

.font-semibold {
    font-weight: var(--font-semibold);
}

.font-bold {
    font-weight: var(--font-bold);
}

/* === CONTAINER === */
.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-4);
}

/* === CARD === */
.main-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-6);
    margin-bottom: var(--spacing-6);
    border: 1px solid var(--gray-200);
}

/* === PAGE HEADER === */
.page-header {
    padding-bottom: var(--spacing-4);
    margin-bottom: var(--spacing-6);
    border-bottom: 2px solid var(--gray-200);
}

    .page-header h3 {
        font-size: var(--text-3xl);
        font-weight: var(--font-bold);
        margin: 0;
        display: flex;
        align-items: center;
        gap: var(--spacing-3);
    }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: 0.625rem 1.25rem;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    font-family: inherit;
    line-height: var(--leading-tight);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

    .btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        color: var(--white);
        text-decoration: none;
    }

.btn-secondary {
    background: var(--gray-600);
    color: var(--white);
}

    .btn-secondary:hover:not(:disabled) {
        background: var(--gray-700);
        color: var(--white);
        text-decoration: none;
    }

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: var(--white);
}

    .btn-success:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(56, 239, 125, 0.4);
        color: var(--white);
        text-decoration: none;
    }

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
}

    .btn-danger:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
        color: var(--white);
        text-decoration: none;
    }

.btn-warning {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: var(--white);
}

    .btn-warning:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 167, 38, 0.4);
        color: var(--white);
        text-decoration: none;
    }

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--white);
}

    .btn-info:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
        color: var(--white);
        text-decoration: none;
    }

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: var(--text-sm);
    min-width: 38px;
    min-height: 38px;
}

.btn-block {
    display: flex;
    width: 100%;
}
/* Login Sayfası Özel Stiller */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 3rem 2.5rem;
    animation: slideIn 0.5s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

    .logo svg {
        color: var(--white);
        width: 35px;
        height: 35px;
    }

.login-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: var(--text-base);
    color: var(--gray-600);
}

/* === FORMS === */
.form-group {
    margin-bottom: var(--spacing-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    margin-bottom: var(--spacing-2);
}

    .form-label.required::after {
        content: " *";
        color: var(--error);
    }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--gray-900);
    background-color: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    outline: none;
}

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-input:disabled,
    .form-select:disabled,
    .form-textarea:disabled {
        background-color: var(--gray-100);
        cursor: not-allowed;
        opacity: 0.6;
    }

    .form-input.is-invalid {
        border-color: var(--error);
    }

    .form-input.is-valid {
        border-color: var(--success);
    }

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-checkbox,
.form-radio {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: var(--spacing-2);
    cursor: pointer;
}

.form-help {
    display: block;
    margin-top: var(--spacing-1);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.form-error {
    display: block;
    margin-top: var(--spacing-1);
    font-size: var(--text-sm);
    color: var(--error);
}

/* === INPUT GROUP === */
.search-wrapper {
    width: 100%;
    max-width: 100%;
}

.input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
}
.eventlog-search-group {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom:2rem;
}

.eventlog-search-group .form-control {
    border-right: none;
    font-size: 14px;
}

.eventlog-search-group .input-group-append {
    display: flex;
}

.eventlog-search-group .btn-sm {
    font-weight: 500;
}

.input-group-prepend,
.input-group-append {
    display: flex;
    flex-shrink: 0;
}

.input-group-text {
    background: var(--gray-100);
    border: 1px solid #ddd;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.input-group-prepend .input-group-text {
    border-right: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group .form-control {
    flex: 1;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 0;
    min-width: 0;
}

.input-group-append .btn {
    border-radius: 0;
    margin: 0 !important;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-left: none;
}

    .input-group-append .btn:last-child {
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    }

/* === BADGE === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
}

.badge-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--white);
}

.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-danger {
    background: var(--error);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: var(--white);
}

.badge-info {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
}

/* === TABLE === */
.table-responsive {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-4);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    margin-bottom: 0;
}

    /* Table Header - Turuncu Gradient */
    .table thead th {
        background: linear-gradient(135deg, #ff6b35 0%, #f05423 100%);
        color: var(--white);
        font-weight: var(--font-bold);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: var(--text-xs);
        padding: 1rem;
        border: none;
        text-align: left;
        position: relative;
        transition: none !important;
    }

        /* Header'a hover yok */
        .table thead tr:hover,
        .table thead th:hover {
            background: inherit !important;
            cursor: default !important;
        }

    /* Table Body - Hover Efekti */
    .table tbody tr {
        transition: all 0.2s ease;
        position: relative;
    }

        /* Hover animasyonu */
        .table tbody tr:hover {
            background: linear-gradient(90deg, #fff5f2 0%, #ffe8df 50%, #fff5f2 100%);
            box-shadow: -4px 0 0 0 #ff6b35, 0 2px 8px rgba(255, 107, 53, 0.15);
        }

    .table tbody td {
        vertical-align: middle;
        border-bottom: 1px solid var(--gray-200);
        font-size: var(--text-sm);
        transition: all 0.2s ease;
        text-align:left;
    }

    .table tbody tr:last-child td {
        border-bottom: none;
    }

    /* Hover'da butonlar belirginleşsin */
    .table tbody tr:hover .btn {
        transform: scale(1.05);
    }

    .table tbody tr:hover .btn-info {
        box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
    }

    .table tbody tr:hover .btn-warning {
        box-shadow: 0 4px 12px rgba(255, 167, 38, 0.4);
    }

    .table tbody tr:hover .btn-danger {
        box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
    }
/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: var(--radius-xl);
    animation: fadeIn 0.5s ease-out;
}

.empty-state-icon {
    margin-bottom: 1.5rem;
    opacity: 0.5;
    color: var(--gray-400);
}

.empty-state-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.empty-state-text {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.6;
}

/* === MODAL SYSTEM === */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    display: none;
}

    .modal-backdrop.show {
        display: block;
        animation: fadeIn 0.3s;
    }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    display: none;
    overflow: auto;
}

    .modal.show {
        display: block;
        animation: fadeIn 0.3s;
    }

.modal-dialog {
    margin: 30px auto;
    max-width: 900px;
    position: relative;
}

.modal-dialog-sm {
    max-width: 500px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    animation: slideDown 0.3s;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

    .modal-header h5 {
        margin: 0;
        font-size: var(--text-xl);
        font-weight: var(--font-semibold);
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--white) !important;
    }

    .modal-header .close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
        border-radius: var(--radius-full);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition-base);
    }

        .modal-header .close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

.modal-header-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.modal-header-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.modal-body {
    padding: 30px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: var(--gray-50);
}

body.modal-open {
    overflow: hidden;
}

/* Detail Sections */
.detail-section {
    margin-bottom: 25px;
}

    .detail-section:last-child {
        margin-bottom: 0;
    }

.detail-section-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--primary-600);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

    .detail-row:last-child {
        border-bottom: none;
    }

    .detail-row:hover {
        background-color: var(--gray-50);
    }

.detail-label {
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    min-width: 180px;
    font-size: var(--text-sm);
}

.detail-value {
    color: var(--gray-900);
    flex: 1;
}

/* Confirm Modal */
.confirm-icon {
    text-align: center;
    margin: 20px 0;
}

    .confirm-icon svg {
        color: var(--error);
        animation: pulse 2s infinite;
    }

.confirm-title {
    text-align: center;
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-bottom: 15px;
}

.confirm-message {
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.6;
}

    .confirm-message strong {
        color: var(--error);
    }

.confirm-warning {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .confirm-warning svg {
        flex-shrink: 0;
        color: var(--warning);
        margin-top: 2px;
    }

/* Message Modal */
.message-icon {
    text-align: center;
    margin: 20px 0;
}

    .message-icon svg {
        width: 64px;
        height: 64px;
    }

    .message-icon.success svg {
        color: var(--success);
    }

    .message-icon.error svg {
        color: var(--error);
    }

    .message-icon.warning svg {
        color: var(--warning);
    }

    .message-icon.info svg {
        color: var(--info);
    }

.message-content {
    text-align: center;
    color: var(--gray-700);
    font-size: var(--text-lg);
    line-height: 1.6;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .page-header .row {
        flex-direction: column;
    }

    .page-header .col-md-6 {
        width: 100%;
        text-align: center !important;
        margin-bottom: 15px;
    }

    .page-header h3 {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-card {
        padding: 15px;
    }

    .modal-dialog {
        margin: 15px;
        max-width: calc(100% - 30px);
    }

    .modal-body {
        padding: 20px;
    }

    .page-header h3 {
        font-size: var(--text-xl);
    }

    .btn {
        padding: 8px 12px;
        font-size: var(--text-sm);
    }

    .btn-sm {
        padding: 6px 8px;
        min-width: 32px;
        min-height: 32px;
    }

        .btn-sm svg {
            width: 14px;
            height: 14px;
        }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 900px;
    }

        /* Mobile Card View for Tables */
        .table thead {
            display: none;
        }

        .table tbody tr {
            display: block;
            margin-bottom: 15px;
            border: 1px solid var(--gray-200);
            border-radius: var(--radius-lg);
            padding: 15px;
            box-shadow: var(--shadow-sm);
        }

        .table tbody td {
            display: block;
            text-align: left !important;
            padding: 10px 0;
            border: none;
            border-bottom: 1px solid var(--gray-100);
        }

            .table tbody td:last-child {
                border-bottom: none;
                padding-top: 15px;
                border-top: 2px solid var(--gray-200);
                margin-top: 10px;
            }

            .table tbody td:before {
                content: attr(data-label);
                font-weight: var(--font-semibold);
                color: var(--primary-600);
                display: inline-block;
                min-width: 120px;
                margin-right: 10px;
            }

            .table tbody td:last-child {
                display: flex;
                flex-wrap: wrap;
                gap: 5px;
            }

                .table tbody td:last-child:before {
                    content: "İşlemler: ";
                    width: 100%;
                    margin-bottom: 10px;
                }
}

@media (max-width: 576px) {
    .input-group .form-control {
        font-size: var(--text-sm);
    }

    .input-group-text {
        padding: 8px 10px;
    }

        .input-group-text svg {
            width: 16px;
            height: 16px;
        }

    .input-group-append .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .badge-info {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
    }
}

/* === PRINT STYLES === */
@media print {
    body {
        background: var(--white);
    }

    .btn,
    .modal,
    .modal-backdrop {
        display: none !important;
    }
}
/* ========================================
   DOKÜMAN YÖNETİMİ STYLES
   ======================================== */

/* File Upload Wrapper */
.file-upload-wrapper {
    position: relative;
    margin-top: 10px;
}

.file-upload-label {
    display: block;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

    .file-upload-label:hover {
        background: linear-gradient(135deg, #fff5f2 0%, #ffe8df 100%);
        border-color: #ff6b35;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    }

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: #9ca3af;
}

.file-upload-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.file-upload-hint {
    color: #9ca3af;
    font-size: 12px;
}

/* File Info */
.file-info {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

    .file-info svg {
        color: #10b981;
        flex-shrink: 0;
        width: 20px;
        height: 20px;
    }

    .file-info span {
        color: #065f46;
        font-size: 14px;
        font-weight: 500;
    }

/* Download Link */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .download-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
        color: white;
        text-decoration: none;
    }

    .download-link svg {
        width: 18px;
        height: 18px;
    }

/* Detail File Info */
.detail-file-info {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

    .detail-file-info .file-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 15px;
        color: #ff6b35;
    }

    .detail-file-info .file-name {
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 15px;
        word-break: break-word;
    }

.file-input-modern {
    padding: 12px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .file-input-modern:hover {
        border-color: #ff6b35;
        background: linear-gradient(135deg, #fff5f2 0%, #ffe8df 100%);
        transform: translateY(-1px);
    }

    .file-input-modern:focus {
        outline: none;
        border-color: #ff6b35;
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    }

.modal-header-warning {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}
/* ========================================
   HAREKETLER (EVENT LOG) STYLES
   ======================================== */

/* Hareket Badge */
.badge-toplam-hareket {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* İstatistik Kartları Container - KÜÇÜLTÜLDÜ */
.hareket-stat-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

/* İstatistik Kartı - KÜÇÜLTÜLDÜ */
.hareket-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .hareket-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
    }

.hareket-stat-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.hareket-stat-content h5 {
    font-size: 10px;
    margin: 0 0 3px 0;
    opacity: 0.9;
    font-weight: 500;
    color: white;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.hareket-stat-value {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color:white;
}

.hareket-stat-value-small {
    font-size: 16px;
    color: white;
    margin: 0;
}

/* Filtre Container */
.hareket-filtre-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

/* Hareket Açıklama */
.hareket-aciklama {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hareket-aciklama-detay {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    padding: 14px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* Hareket Tarih */
.hareket-tarih {
    font-size: 13px;
}

    .hareket-tarih small {
        display: block;
        font-size: 11px;
        margin-top: 2px;
    }

/* Detay Grid */
.hareket-detay-grid {
    display: flex;
    flex-direction: column;
}

.detay-row-full {
    grid-template-columns: 1fr;
}

    .detay-row-full .detay-label {
        margin-bottom: 8px;
    }

/* ⭐ SADECE EVENTLOG TABLOSUNDA KULLANILACAK BADGE'LER - KÜÇÜK */
.gridview-hareket .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    font-size: 10px;
    font-weight: 600;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gridview-hareket .badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.gridview-hareket .badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.gridview-hareket .badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.gridview-hareket .badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.gridview-hareket .badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gridview-hareket .badge-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

/* Badge Renkleri - Genel (Diğer sayfalarda kullanılacak) */
.badge-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

/* Pagination Stili */
.pagination-ys {
    text-align: center;
    padding: 16px 0;
}

    .pagination-ys table {
        margin: 0 auto;
    }

    .pagination-ys td {
        padding: 6px 10px;
    }

    .pagination-ys a {
        display: inline-block;
        padding: 6px 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
        font-size: 13px;
        transition: all 0.3s;
    }

        .pagination-ys a:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

    .pagination-ys span {
        display: inline-block;
        padding: 6px 12px;
        background: #FFA500;
        color: white;
        border-radius: 6px;
        font-weight: 600;
        font-size: 13px;
    }

/* Responsive - Hareketler Sayfası */
@media (max-width: 992px) {
    .hareket-stat-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hareket-stat-container {
        grid-template-columns: 1fr;
    }

    .hareket-stat-card {
        padding: 12px 14px;
    }

    .hareket-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hareket-stat-value {
        font-size: 18px;
    }

    .hareket-stat-value-small {
        font-size: 10px;
    }

    .hareket-filtre-container {
        padding: 16px;
    }

    .badge-toplam-hareket {
        font-size: 12px;
        padding: 8px 16px;
    }

    .hareket-aciklama {
        max-width: 200px;
    }

    .gridview-hareket .badge {
        font-size: 9px;
        padding: 0.25rem 0.55rem;
    }
}
/* ========================================
   DASHBOARD STYLES - FINAL
   ======================================== */

/* Genel Sayfa Stili */
.dashboard-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 25px;
    background-color: #f4f7fa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Hoşgeldin Başlığı */
.welcome-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

    .welcome-header h1 {
        color: #333;
        margin: 0;
        font-weight: 600;
    }

    .welcome-header p {
        color: #777;
        margin-top: 5px;
        font-size: 1.1em;
    }

/* Bilgi Çubuğu (Tarih ve Saat) */
.info-bar {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-left: 5px solid #007bff;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    font-size: 1em;
    color: #555;
}

/* Widget Kartları */
.dashboard-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.widget {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 25px;
    flex-basis: 250px;
    flex-grow: 1;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-decoration: none;
    color: inherit;
}

    .widget:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    }

    .widget .icon {
        font-size: 3em;
        margin-bottom: 15px;
    }

    .widget .icon-users {
        color: #17a2b8;
    }

    .widget .icon-orders {
        color: #28a745;
    }

    .widget .icon-messages {
        color: #ffc107;
    }

    .widget .icon-settings {
        color: #6c757d;
    }

    .widget .title {
        font-size: 1.2em;
        font-weight: 600;
        color: #444;
    }

    .widget .value {
        font-size: 2.2em;
        font-weight: 700;
        color: #333;
        margin: 5px 0;
    }

/* Aktiviteler ve Hızlı Erişim Bölümü */
.dashboard-charts {
    margin-top: 30px;
    margin-bottom: 30px;
}

    .dashboard-charts .row {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .dashboard-charts .col-md-6 {
        flex: 1;
        min-width: 300px;
    }

/* Chart Card */
.chart-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    height: 100%;
}

    .chart-card h3 {
        margin: 0 0 20px 0;
        color: #333;
        border-bottom: 2px solid #007bff;
        padding-bottom: 10px;
        font-size: 1.3em;
    }

/* Aktivite Listesi */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .activity-item:hover {
        background: #e9ecef;
        transform: translateX(5px);
    }

.activity-label {
    font-size: 1em;
    color: #555;
    font-weight: 500;
}

.activity-count {
    font-size: 1.8em;
    font-weight: 700;
    color: #007bff;
}

/* Hızlı Erişim */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-link-item {
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

    .quick-link-item i {
        font-size: 1.2em;
    }

    .quick-link-item:hover {
        background: #007bff;
        color: #fff;
        transform: translateX(5px);
    }

/* Bilgi Kartları */
.dashboard-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 20px;
    flex: 1;
    min-width: 300px;
}

    .info-card h3 {
        margin: 0 0 15px 0;
        color: #333;
        font-size: 1.3em;
        border-bottom: 2px solid #007bff;
        padding-bottom: 10px;
    }

/* Grid Tablo */
.grid-table {
    width: 100%;
    border-collapse: collapse;
}

    .grid-table th {
        background-color: #f8f9fa;
        padding: 12px;
        text-align: left;
        border-bottom: 2px solid #dee2e6;
        font-weight: 600;
        color: #495057;
        font-size: 0.95em;
    }

    .grid-table td {
        padding: 12px;
        border-bottom: 1px solid #dee2e6;
        color: #555;
    }

    .grid-table tr:hover {
        background-color: #f8f9fa;
    }

    .grid-table tr:last-child td {
        border-bottom: none;
    }

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container{
        margin-top:4rem;
    }
    .dashboard-widgets {
        flex-direction: column;
    }

    .widget {
        flex-basis: 100%;
    }

    .dashboard-charts .row {
        flex-direction: column;
    }

    .dashboard-charts .col-md-6 {
        min-width: 100%;
    }
}
/* ========================================
   ASISTAN DETAY SAYFA STİLLERİ
   ======================================== */

/* İstatistik Kutusu - Yükseklik Azaltıldı */
.stat-box {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

    .stat-box h2 {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 0.25rem;
    }

    .stat-box p {
        margin-bottom: 0;
    }

/* Prompt Liste Container - Scroll */
.prompt-list-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

    .prompt-list-container::-webkit-scrollbar {
        width: 8px;
    }

    .prompt-list-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .prompt-list-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

        .prompt-list-container::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

/* Prompt Item */
.prompt-item {
    background: #fff;
    transition: box-shadow 0.3s;
}

    .prompt-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

/* Prompt Content - Max Height ve Scroll */
.prompt-content {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding-right: 5px;
}

    .prompt-content::-webkit-scrollbar {
        width: 6px;
    }

    .prompt-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .prompt-content::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

        .prompt-content::-webkit-scrollbar-thumb:hover {
            background: #999;
        }

/* Card Body Full - Yeni Prompt Ekle */
.card-body-full {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 1.5rem !important;
}

    .card-body-full .form-group {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
    }

        .card-body-full .form-group textarea {
            flex: 1 !important;
            min-height: 250px !important;
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            margin: 0 !important;
            padding: 0.75rem !important;
        }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

    .modal.show {
        display: block;
    }

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 1.75rem auto;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.5rem;
    outline: 0;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

    .modal-header h5 {
        margin: 0;
        line-height: 1.5;
        font-size: 1.25rem;
        font-weight: 600;
        color: white;
    }

    .modal-header .close {
        padding: 0;
        background-color: transparent;
        border: 0;
        font-size: 1.75rem;
        font-weight: 700;
        line-height: 1;
        color: white;
        opacity: .8;
        cursor: pointer;
        transition: opacity 0.3s;
    }

        .modal-header .close:hover {
            opacity: 1;
        }

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

    .modal-body .form-group {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
    }

        .modal-body .form-group label {
            font-weight: 600;
            margin-bottom: 0.75rem;
            display: block;
            flex-shrink: 0;
        }

        .modal-body .form-group textarea {
            flex: 1 !important;
            width: 100% !important;
            max-width: 100% !important;
            min-height: 450px !important;
            height: 450px !important;
            resize: vertical !important;
            box-sizing: border-box !important;
            margin: 0 !important;
            padding: 0.75rem !important;
        }

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.5rem - 1px);
    border-bottom-left-radius: calc(0.5rem - 1px);
    background: #f8f9fa;
}

    .modal-footer > * {
        margin: 0.25rem;
    }

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-modal-backdrop);
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

    .modal-backdrop.show {
        display: block;
        opacity: 0.6;
    }

/* Asistan Bilgileri Tablo */
.table-sm th,
.table-sm td {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.table-sm th {
    font-weight: 600;
    color: #495057;
}

/* Form Control Override */
.card-body-full .form-control,
.modal-body .form-control {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
        max-width: 95%;
        margin: 0.5rem auto;
    }

    .modal-body .form-group textarea {
        min-height: 300px !important;
        height: 300px !important;
    }

    .stat-box h2 {
        font-size: 1.5rem;
    }

    .prompt-content {
        max-height: 150px;
    }
}
/* ========================================
   GÖRÜŞMELER SAYFA STİLLERİ
   ======================================== */

/* Küçük İstatistik Kutuları */
.stat-box-small {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

    .stat-box-small h5 {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 0.25rem;
    }

    .stat-box-small p {
        font-size: 0.75rem;
        color: #6b7280;
        margin-bottom: 0;
    }

    .stat-box-small h5 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

/* Görüşme Liste Container */
.gorusme-list-container {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    margin: -1.5rem;
    padding: 0;
}

    .gorusme-list-container::-webkit-scrollbar {
        width: 6px;
    }

    .gorusme-list-container::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .gorusme-list-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

/* Görüşme Liste Item */
.gorusme-list-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    background: white;
}

    .gorusme-list-item:hover {
        background: #f9fafb;
        text-decoration: none;
        color: inherit;
    }

    .gorusme-list-item.active {
        background: #eff6ff;
        border-left: 3px solid #3b82f6;
    }

.gorusme-list-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .user-avatar-small svg {
        color: white;
    }

.gorusme-list-info {
    flex: 1;
    min-width: 0;
}

    .gorusme-list-info h6 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 600;
        color: #1f2937;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gorusme-list-info small {
        color: #6b7280;
        font-size: 0.75rem;
    }

.gorusme-list-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

    .gorusme-list-time small {
        color: #9ca3af;
        font-size: 0.7rem;
        white-space: nowrap;
    }

.gorusme-list-preview {
    margin-left: 48px;
    color: #6b7280;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info Item */
.info-item {
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

    .info-item strong {
        display: block;
        font-size: 0.75rem;
        color: #6b7280;
        margin-bottom: 0.25rem;
    }

    .info-item p {
        margin: 0;
        font-size: 0.95rem;
        color: #1f2937;
        font-weight: 500;
    }

/* Mesajlar Container */
.mesajlar-container {
    max-height: calc(100vh - 500px);
    overflow-y: auto;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

    .mesajlar-container::-webkit-scrollbar {
        width: 6px;
    }

    .mesajlar-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .mesajlar-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

/* Mesaj Item */
.mesaj-item {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 75%;
}

.mesaj-alici {
    background: #dbeafe;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.mesaj-asistan {
    background: white;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.mesaj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap:1rem;
}

    .mesaj-header strong {
        font-size: 0.875rem;
        color: #1f2937;
    }

    .mesaj-header small {
        font-size: 0.75rem;
        color: #6b7280;
    }

.mesaj-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
    word-wrap: break-word;
}

/* Badge Small */
.badge-sm {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .gorusme-list-container {
        max-height: 400px;
    }

    .mesajlar-container {
        max-height: 500px;
    }
}
/* ========================================
   DASHBOARD RESPONSIVE İYİLEŞTİRMELERİ
   Mevcut Style.css'e EKLENMELİ
   ======================================== */

/* Mevcut 768px responsive'ini güncelle - Satır 1815-1834 arası DEĞİŞTİRİLECEK */

/* === TABLET (998px ve altı) === */
@media (max-width: 998px) {
    .dashboard-container {
        padding: 20px 15px;
    }

    .welcome-header h1 {
        font-size: 1.75rem;
    }

    .welcome-header p {
        font-size: 1rem;
    }

    /* Widget'lar 2'li grid olsun */
    .dashboard-widgets {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .widget {
        flex-basis: auto;
        padding: 20px 15px;
    }

        .widget .icon {
            font-size: 2.5em;
            margin-bottom: 10px;
        }

        .widget .value {
            font-size: 1.8em;
        }

        .widget .title {
            font-size: 1em;
        }

    /* Chart kartları alt alta */
    .dashboard-charts .row {
        flex-direction: column;
        gap: 15px;
    }

    .dashboard-charts .col-md-6 {
        min-width: 100%;
    }

    .chart-card {
        padding: 15px;
    }

        .chart-card h3 {
            font-size: 1.1em;
            margin-bottom: 15px;
        }

    .activity-item {
        padding: 12px 15px;
    }

    .activity-label {
        font-size: 0.9em;
    }

    .activity-count {
        font-size: 1.5em;
    }

    .quick-link-item {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .info-card {
        min-width: 100%;
    }

    /* Grid tablo responsive */
    .grid-table {
        font-size: 0.875rem;
    }

        .grid-table th,
        .grid-table td {
            padding: 10px 8px;
        }
}

/* === MOBİL TELEFON (768px ve altı) === */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px 10px;
        margin-top: 1rem;
    }

    .welcome-header {
        padding-bottom: 12px;
        margin-bottom: 15px;
    }

        .welcome-header h1 {
            font-size: 1.5rem;
            line-height: 1.3;
        }

        .welcome-header p {
            font-size: 0.9rem;
            margin-top: 3px;
        }

    .info-bar {
        padding: 12px;
        font-size: 0.875rem;
        margin-bottom: 20px;
    }

    /* Widget'lar tek sütun */
    .dashboard-widgets {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .widget {
        padding: 18px 15px;
    }

        .widget .icon {
            font-size: 2.2em;
            margin-bottom: 8px;
        }

        .widget .value {
            font-size: 1.6em;
            margin: 3px 0;
        }

        .widget .title {
            font-size: 0.95em;
        }

    /* Chart section */
    .dashboard-charts {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .chart-card {
        padding: 12px;
    }

        .chart-card h3 {
            font-size: 1rem;
            margin-bottom: 12px;
            padding-bottom: 8px;
        }

    .activity-list {
        gap: 10px;
    }

    .activity-item {
        padding: 10px 12px;
        flex-direction: row;
    }

    .activity-label {
        font-size: 0.85em;
    }

    .activity-count {
        font-size: 1.3em;
    }

    .quick-links {
        gap: 8px;
    }

    .quick-link-item {
        padding: 10px 12px;
        font-size: 0.85em;
    }

        .quick-link-item i {
            font-size: 1em;
        }

    /* Info cards */
    .dashboard-info-cards {
        margin-top: 20px;
        gap: 15px;
    }

    .info-card {
        padding: 15px;
        min-width: 100%;
    }

        .info-card h3 {
            font-size: 1.1em;
            margin-bottom: 12px;
            padding-bottom: 8px;
        }

    /* Grid tablo - Scroll yap */
    .info-card {
        overflow-x: auto;
    }

    .grid-table {
        min-width: 500px;
        font-size: 0.8125rem;
    }

        .grid-table th,
        .grid-table td {
            padding: 8px 6px;
            white-space: nowrap;
        }

        .grid-table th {
            font-size: 0.85em;
        }
}

/* === KÜÇÜK MOBİL (576px ve altı) === */
@media (max-width: 576px) {
    .dashboard-container {
        padding: 12px 8px;
    }

    .welcome-header h1 {
        font-size: 1.25rem;
    }

    .welcome-header p {
        font-size: 0.8rem;
    }

    .info-bar {
        padding: 10px;
        font-size: 0.8125rem;
    }

    .widget {
        padding: 15px 12px;
    }

        .widget .icon {
            font-size: 2em;
        }

        .widget .value {
            font-size: 1.4em;
        }

        .widget .title {
            font-size: 0.875em;
        }

    .chart-card {
        padding: 10px;
    }

        .chart-card h3 {
            font-size: 0.95rem;
        }

    .activity-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .activity-label {
        font-size: 0.8em;
    }

    .activity-count {
        font-size: 1.2em;
    }

    .quick-link-item {
        padding: 8px 10px;
        font-size: 0.8em;
        gap: 8px;
    }

    .info-card {
        padding: 12px;
    }

        .info-card h3 {
            font-size: 1rem;
        }

    .grid-table {
        font-size: 0.75rem;
    }

        .grid-table th,
        .grid-table td {
            padding: 6px 4px;
        }
}

/* === LANDSCAPE MOBİL === */
@media (max-width: 768px) and (orientation: landscape) {
    .dashboard-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .widget {
        padding: 12px 10px;
    }

        .widget .icon {
            font-size: 1.8em;
            margin-bottom: 5px;
        }

        .widget .value {
            font-size: 1.3em;
        }

        .widget .title {
            font-size: 0.8em;
        }
}
/* ========================================
   GENEL GRIDVIEW RESPONSIVE SİSTEMİ - GÜNCELLENMİŞ
   Tüm sayfalardaki GridView tablolarını responsive yapar
   Style.css'e EKLENMELİ
   ======================================== */

/* === KÜÇÜK DESKTOP / BÜYÜK TABLET (1168px - 999px arası) === */
@media (max-width: 1168px) and (min-width: 999px) {
    /* Genel padding ve font küçült */
    .main-card {
        padding: 25px;
    }

    .table {
        font-size: 0.9rem;
    }

        .table thead th {
            font-size: 0.8rem;
            padding: 0.75rem 0.6rem;
        }

        .table tbody td {
            padding: 0.75rem 0.6rem;
        }

        /* Butonlar */
        .table .btn-sm {
            padding: 0.4rem 0.6rem;
            font-size: 0.875rem;
        }

        /* Badge */
        .table .badge {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
        }

    /* Header */
    .page-header h3 {
        font-size: 1.75rem;
    }

    .page-header .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.25rem;
    }

    /* Arama ve filtre alanı */
    .input-group {
        width: 100%;
    }

        .input-group .form-control {
            font-size: 0.9rem;
        }

    .badge.badge-info {
        font-size: 0.9rem;
        padding: 0.4rem 0.75rem;
    }
}

/* === TABLET (998px - 769px arası) === */
@media (max-width: 998px) and (min-width: 769px) {
    /* Genel ayarlar */
    .main-card {
        padding: 20px;
    }

    /* Table kaydırılabilir olsun ama card’a dönmesin */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
    }

    .table {
        min-width: 850px;
        font-size: 0.875rem;
    }

        .table thead th {
            font-size: 0.8rem;
            padding: 0.75rem 0.5rem;
            white-space: nowrap;
        }

        .table tbody td {
            padding: 0.75rem 0.5rem;
        }

    /* Butonlar */
    .table .btn-sm {
        padding: 0.4rem 0.5rem;
        min-width: 34px;
        min-height: 34px;
    }

        .table .btn-sm svg {
            width: 16px;
            height: 16px;
        }

    /* Badge */
    .table .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Sayfa başlığı */
    .page-header h3 {
        font-size: 1.5rem;
    }

    .page-header .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Arama alanı */
    .search-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .input-group {
        width: 100%;
    }

    /* Badge */
    .badge.badge-info {
        font-size: 0.875rem;
        padding: 8px 15px;
    }

    /* Pagination */
    .pagination-ys {
        font-size: 0.875rem;
    }

        .pagination-ys td {
            padding: 6px 10px !important;
        }

        .pagination-ys a {
            font-size: 0.875rem !important;
        }
}

/* === MOBİL (768px ve altı) - CARD GÖRÜNÜMÜ === */
@media (max-width: 768px) {
    /* Card padding küçült */
    .main-card {
        padding: 15px;
    }

    /* HEADER GİZLE */
    .table thead {
        display: none;
    }

    /* HOVER KAPALI */
    .table tbody tr:hover {
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

        .table tbody tr:hover .btn {
            transform: none !important;
            box-shadow: none !important;
        }

    /* TABLE CARD YAPISI */
    .table-responsive {
        overflow-x: visible;
        margin: 0;
        padding: 0;
    }

    .table {
        width: 100% !important;
        min-width: 100% !important;
        display: block;
    }

        .table tbody {
            display: block;
            width: 100%;
        }

            .table tbody tr {
                display: block;
                width: 100%;
                margin-bottom: 15px;
                border: 1px solid #e9ecef;
                border-radius: 8px;
                padding: 12px;
                background: white;
                box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            }

            .table tbody td {
                display: block;
                width: 100% !important;
                text-align: left !important;
                padding: 8px 0;
                border: none;
                position: relative;
                padding-left: 45%;
            }

                /* TD LABEL EKLE */
                .table tbody td::before {
                    content: attr(data-label);
                    position: absolute;
                    left: 0;
                    width: 40%;
                    padding-right: 10px;
                    font-weight: 600;
                    color: #495057;
                    text-align: left;
                    font-size: 0.875rem;
                }

                /* İşlemler sütunu özel */
                .table tbody td:last-child {
                    padding-left: 0;
                    text-align: center !important;
                    margin-top: 10px;
                    padding-top: 10px;
                    border-top: 1px solid #e9ecef;
                }

                    .table tbody td:last-child::before {
                        display: none;
                    }

        /* Butonlar */
        .table .btn-sm {
            padding: 0.4rem 0.6rem;
            min-width: 36px;
            min-height: 36px;
            margin: 3px !important;
        }

            .table .btn-sm svg {
                width: 16px;
                height: 16px;
            }

        /* Badge */
        .table .badge {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
        }

    /* Page header */
    .page-header h3 {
        font-size: 1.25rem;
    }

    .page-header .page-icon {
        width: 24px;
        height: 24px;
    }

    /* Input group stack */
    .input-group {
        flex-wrap: wrap;
    }

        .input-group .form-control {
            min-width: 100%;
            border-radius: 8px !important;
            margin-bottom: 10px;
        }

    .input-group-prepend {
        display: none;
    }

    .input-group-append {
        width: 100%;
        display: flex;
        gap: 10px;
        align-items:center;
        justify-content:center;
    }

        .input-group-append .btn {
            flex: 1;
            border-radius: 8px !important;
        }

    /* Badge bilgi */
    .badge.badge-info {
        font-size: 0.875rem;
        padding: 8px 15px;
    }

        .badge.badge-info svg {
            width: 16px;
            height: 16px;
        }

    /* Pagination */
    .pagination-ys {
        font-size: 0.875rem;
    }

        .pagination-ys td {
            padding: 5px 8px !important;
        }

        .pagination-ys a {
            padding: 5px 10px !important;
            font-size: 0.875rem !important;
        }
}

/* === KÜÇÜK MOBİL (576px ve altı) === */
@media (max-width: 576px) {
    /* Card minimal padding */
    .main-card {
        padding: 10px;
    }

    /* Table card daha kompakt */
    .table tbody tr {
        margin-bottom: 12px;
        padding: 10px;
    }

    .table tbody td {
        padding: 6px 0;
        padding-left: 42%;
        font-size: 0.8125rem;
    }

        .table tbody td::before {
            font-size: 0.8125rem;
            width: 38%;
        }

    /* Butonlar ultra kompakt */
    .table .btn-sm {
        padding: 0.35rem 0.5rem;
        min-width: 34px;
        min-height: 34px;
        margin: 2px !important;
    }

        .table .btn-sm svg {
            width: 14px;
            height: 14px;
        }

    /* Badge minimal */
    .table .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    /* Page header */
    .page-header h3 {
        font-size: 1.125rem;
    }

    .page-header .page-icon {
        width: 20px;
        height: 20px;
    }

    .page-header .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    /* Input group */
    .input-group-append {
        flex-direction: column;
        gap: 8px;
    }

        .input-group-append .btn {
            width: 100%;
        }

    /* Badge bilgi */
    .badge.badge-info {
        font-size: 0.8125rem;
        padding: 6px 12px;
    }

        .badge.badge-info svg {
            width: 14px;
            height: 14px;
        }

    /* Pagination */
    .pagination-ys td {
        padding: 4px 6px !important;
    }

    .pagination-ys a {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }
}

/* === MODAL RESPONSIVE (Tüm ekranlar) === */
@media (max-width: 998px) {
    .modal-dialog {
        margin: 15px;
        max-width: calc(100% - 30px);
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px;
    }

    .modal-body .form-group {
        margin-bottom: 1rem;
    }

    .modal-body .row {
        margin-left: 0;
        margin-right: 0;
    }

    .modal-body .col-md-6 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-footer {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }

        .modal-footer .btn {
            width: 100%;
            margin: 0 !important;
        }

    .modal-body .form-label {
        font-size: 0.875rem;
    }

    .modal-body .form-control {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 576px) {
    .modal-header {
        padding: 10px 12px;
    }

    .modal-title {
        font-size: 1.125rem;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 12px;
    }

    .modal-footer {
        padding: 10px 12px;
    }

    .modal-body .form-label {
        font-size: 0.8125rem;
    }

    .modal-body .form-control {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

/* === EMPTY STATE RESPONSIVE === */
@media (max-width: 768px) {
    .empty-state {
        padding: 3rem 1.5rem;
    }

    .empty-state-icon svg {
        width: 48px;
        height: 48px;
    }

    .empty-state-title {
        font-size: 1.25rem;
    }

    .empty-state-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon svg {
        width: 40px;
        height: 40px;
    }

    .empty-state-title {
        font-size: 1.125rem;
    }

    .empty-state-text {
        font-size: 0.8125rem;
    }
}
/* ========================================
   ASİSTAN DETAY SAYFA RESPONSİVE
   Style.css'e EKLENMELİ
   ======================================== */

/* === TABLET (998px ve altı) === */
@media (max-width: 998px) {
    /* İstatistik kutuları */
    .stat-box {
        padding: 12px;
    }

        .stat-box h2 {
            font-size: 1.75rem;
        }

        .stat-box p {
            font-size: 0.875rem;
        }

    /* Asistan bilgileri ve yeni prompt bölümü */
    .col-lg-3,
    .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Prompt input alanı */
    .card-body-full .form-group textarea {
        min-height: 200px !important;
        height: 200px !important;
    }

    /* Prompt liste container */
    .prompt-list-container {
        max-height: 500px;
    }

    .prompt-item {
        padding: 1rem;
    }

    .prompt-content {
        max-height: 120px;
        font-size: 0.875rem;
    }

    /* Butonlar */
    .prompt-item .btn-sm {
        padding: 0.375rem 0.5rem;
    }

        .prompt-item .btn-sm svg {
            width: 14px;
            height: 14px;
        }
}

/* === MOBİL (768px ve altı) === */
@media (max-width: 768px) {
    /* Container padding */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Geri dön butonu */
    .row.mb-3 .btn {
        width: 100%;
        max-width: 200px;
    }

    /* İstatistik satırı - 3 kutu tek sütunda */
    .stat-box {
        padding: 10px;
        margin-bottom: 0;
    }

        .stat-box h2 {
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }

        .stat-box p {
            font-size: 0.8125rem;
            margin-bottom: 0;
        }

    .text-center .col-md-4 {
        margin-bottom: 0.75rem;
    }

        .text-center .col-md-4:last-child {
            margin-bottom: 0;
        }

    /* Card padding küçült */
    .main-card {
        padding: 12px;
        margin-bottom: 1rem;
    }

        .main-card .page-header {
            padding-bottom: 0.75rem;
            margin-bottom: 0.75rem;
        }

            .main-card .page-header h4 {
                font-size: 1.125rem;
            }

            .main-card .page-header svg {
                width: 20px;
                height: 20px;
            }

    /* Asistan bilgileri tablosu */
    .table-borderless th,
    .table-borderless td {
        padding: 0.5rem 0;
        font-size: 0.875rem;
    }

    .table-borderless th {
        width: 40%;
        font-weight: 600;
    }

    /* Yeni prompt ekleme alanı */
    .card-body-full {
        padding: 1rem;
    }

        .card-body-full .form-group {
            margin-bottom: 0.75rem;
        }

            .card-body-full .form-group textarea {
                min-height: 150px !important;
                height: 150px !important;
                font-size: 0.875rem;
                padding: 0.625rem;
            }

        .card-body-full .btn-block {
            padding: 0.625rem;
            font-size: 0.9375rem;
        }

    /* Eklenmiş promptlar bölümü */
    .page-header .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
        margin-bottom: 0.75rem;
    }

        .page-header .col-md-6:last-child {
            margin-bottom: 0;
        }

    .badge.badge-info {
        font-size: 0.875rem;
        padding: 8px 15px;
        display: inline-block;
    }

    /* Prompt liste */
    .prompt-list-container {
        max-height: 400px;
        padding-right: 8px;
    }

    .prompt-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

        /* Prompt item layout - Stack */
        .prompt-item .d-flex {
            flex-direction: column;
            gap: 0.75rem;
        }

    .prompt-content {
        max-height: 100px;
        font-size: 0.8125rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .prompt-item small {
        font-size: 0.75rem;
        display: block;
        margin-bottom: 0.5rem;
    }

    /* Butonlar tam genişlik */
    .prompt-item .ml-3 {
        margin-left: 0 !important;
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }

    .prompt-item .btn-sm {
        flex: 1;
        padding: 0.5rem;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .prompt-item .btn-sm svg {
            width: 16px;
            height: 16px;
        }

    /* Modal responsive */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-header {
        padding: 12px 15px;
    }

        .modal-header h5 {
            font-size: 1.125rem;
        }

    .modal-body {
        padding: 15px;
    }

        .modal-body .form-group label {
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }

        .modal-body .form-control {
            font-size: 0.875rem;
            padding: 0.625rem;
            min-height: 200px !important;
        }

    .modal-footer {
        padding: 12px 15px;
        flex-direction: column;
        gap: 0.5rem;
    }

        .modal-footer .btn {
            width: 100%;
            margin: 0 !important;
            padding: 0.625rem;
        }
}

/* === KÜÇÜK MOBİL (576px ve altı) === */
@media (max-width: 576px) {
    /* Container minimal padding */
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Geri dön butonu */
    .row.mb-3 {
        margin-bottom: 0.75rem !important;
    }

        .row.mb-3 .btn {
            font-size: 0.875rem;
            padding: 0.5rem 1rem;
        }

    /* İstatistikler */
    .row.mb-4 {
        margin-bottom: 1rem !important;
    }

    .stat-box {
        padding: 8px;
    }

        .stat-box h2 {
            font-size: 1.375rem;
        }

        .stat-box p {
            font-size: 0.75rem;
        }

    /* Card minimal padding */
    .main-card {
        padding: 10px;
    }

        .main-card .page-header {
            padding-bottom: 0.5rem;
            margin-bottom: 0.5rem;
        }

            .main-card .page-header h4 {
                font-size: 1rem;
            }

            .main-card .page-header svg {
                width: 18px;
                height: 18px;
                margin-right: 6px !important;
            }

    /* Asistan bilgileri tablosu */
    .table-borderless th,
    .table-borderless td {
        padding: 0.375rem 0;
        font-size: 0.8125rem;
    }

    .table-borderless th {
        width: 38%;
    }

    /* Yeni prompt ekleme */
    .card-body-full {
        padding: 0.75rem;
    }

        .card-body-full .form-group {
            margin-bottom: 0.625rem;
        }

            .card-body-full .form-group textarea {
                min-height: 120px !important;
                height: 120px !important;
                font-size: 0.8125rem;
                padding: 0.5rem;
            }

        .card-body-full .btn-block {
            padding: 0.5rem;
            font-size: 0.875rem;
        }

    /* Badge bilgi */
    .badge.badge-info {
        font-size: 0.8125rem;
        padding: 6px 12px;
    }

    /* Prompt liste */
    .prompt-list-container {
        max-height: 350px;
        padding-right: 6px;
    }

    .prompt-item {
        padding: 0.625rem;
        margin-bottom: 0.625rem;
    }

    .prompt-content {
        max-height: 80px;
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .prompt-item small {
        font-size: 0.7rem;
    }

    .prompt-item .ml-3 {
        gap: 0.375rem;
    }

    .prompt-item .btn-sm {
        padding: 0.4rem;
        min-height: 34px;
        font-size: 0.875rem;
    }

        .prompt-item .btn-sm svg {
            width: 14px;
            height: 14px;
        }

    /* Modal ultra küçük */
    .modal-dialog {
        margin: 8px;
        max-width: calc(100% - 16px);
    }

    .modal-header {
        padding: 10px 12px;
    }

        .modal-header h5 {
            font-size: 1rem;
        }

        .modal-header .close {
            padding: 0.5rem;
            font-size: 1.25rem;
        }

    .modal-body {
        padding: 12px;
    }

        .modal-body .form-group label {
            font-size: 0.8125rem;
        }

        .modal-body .form-control {
            font-size: 0.8125rem;
            padding: 0.5rem;
            min-height: 150px !important;
        }

    .modal-footer {
        padding: 10px 12px;
    }

        .modal-footer .btn {
            padding: 0.5rem;
            font-size: 0.875rem;
        }
}

/* === LANDSCAPE MOBİL === */
@media (max-width: 768px) and (orientation: landscape) {
    /* İstatistikler yatayda 3'lü kalabilir */
    .text-center .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        margin-bottom: 0.5rem;
    }

    .stat-box h2 {
        font-size: 1.25rem;
    }

    .stat-box p {
        font-size: 0.75rem;
    }

    /* Prompt input küçük */
    .card-body-full .form-group textarea {
        min-height: 100px !important;
        height: 100px !important;
    }

    /* Prompt liste daha küçük */
    .prompt-list-container {
        max-height: 250px;
    }

    .prompt-content {
        max-height: 60px;
    }
}

/* === ÇOK KÜÇÜK EKRANLAR (360px ve altı) === */
@media (max-width: 360px) {
    .main-card {
        padding: 8px;
    }

    .stat-box h2 {
        font-size: 1.25rem;
    }

    .stat-box p {
        font-size: 0.7rem;
    }

    .main-card .page-header h4 {
        font-size: 0.9375rem;
    }

    .table-borderless th,
    .table-borderless td {
        font-size: 0.75rem;
        padding: 0.25rem 0;
    }

    .prompt-item {
        padding: 0.5rem;
    }

    .prompt-content {
        font-size: 0.7rem;
        max-height: 70px;
    }

    .prompt-item small {
        font-size: 0.65rem;
    }

    .prompt-item .btn-sm {
        min-height: 32px;
        padding: 0.35rem;
    }
}
/* Card-body taşma önleme - Style.css'e EKLE */

/* Genel card-body taşma kontrolü */
.card-body {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Main-card içindeki card-body özel */
.main-card .card-body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Asistan detay için özel */
.card-body-full {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

    .card-body-full .form-group {
        width: 100%;
        max-width: 100%;
    }

        .card-body-full .form-group textarea {
            width: 100% !important;
            max-width: 100%;
            box-sizing: border-box;
        }

/* Prompt listesi için */
.prompt-list-container {
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.prompt-item {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Prompt content taşma önleme */
.prompt-content {
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

/* Tablo taşma önleme */
.card-body table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

    .card-body table td,
    .card-body table th {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

/* Responsive için ekstra kontrol */
@media (max-width: 998px) {
    .main-card {
        overflow: hidden;
    }

    .card-body,
    .card-body-full {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .card-body,
    .card-body-full {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Prompt item içindeki tüm elementler */
    .prompt-item * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 576px) {
    .card-body,
    .card-body-full {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }
}
/* 1360px'de 5-7 oranı (42% - 58%) */
@media (min-width: 999px) and (max-width: 1524px) {
    .col-lg-3 {
        flex: 0 0 41.667%;
        max-width: 41.667%;
    }

    .col-lg-9 {
        flex: 0 0 58.333%;
        max-width: 58.333%;
    }
}
.confirm-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.confirm-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.confirm-message {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.confirm-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    color: #856404;
    font-weight: 500;
}

    .confirm-warning svg {
        flex-shrink: 0;
    }
/* ========================================
   LOGIN ALERT STYLES
   ======================================== */

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: slideInDown 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

    .login-alert .alert-icon {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }

        .login-alert .alert-icon svg {
            width: 20px;
            height: 20px;
        }

    .login-alert .alert-content {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .login-alert .alert-message {
        font-size: 0.9375rem;
        font-weight: 500;
        line-height: 1.5;
        margin: 0;
    }

    /* Error Alert */
    .login-alert.alert-error {
        background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
        border-left-color: #ef4444;
    }

        .login-alert.alert-error .alert-icon svg {
            color: #dc2626;
        }

        .login-alert.alert-error .alert-message {
            color: #991b1b;
        }

    /* Success Alert */
    .login-alert.alert-success {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        border-left-color: #10b981;
    }

        .login-alert.alert-success .alert-icon svg {
            color: #059669;
        }

        .login-alert.alert-success .alert-message {
            color: #065f46;
        }

    /* Warning Alert */
    .login-alert.alert-warning {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border-left-color: #f59e0b;
    }

        .login-alert.alert-warning .alert-icon svg {
            color: #d97706;
        }

        .login-alert.alert-warning .alert-message {
            color: #92400e;
        }

/* Alert Animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .login-alert {
        padding: 12px 14px;
        gap: 10px;
    }

        .login-alert .alert-message {
            font-size: 0.875rem;
        }

        .login-alert .alert-icon svg {
            width: 18px;
            height: 18px;
        }
}
/* Şifre Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-input-wrapper .form-input {
        padding-right: 45px; /* İkon için sağdan boşluk */
    }

.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s ease;
    height: 100%;
}

    .password-toggle:hover {
        color: #2563eb;
    }

    .password-toggle:focus {
        outline: none;
    }

    .password-toggle svg {
        pointer-events: none;
    }
.mesaj-gonder-panel {
    margin-top: 20px;
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
}

.mesaj-gonder-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mesaj-gonder-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mesaj-textarea {
    width: 100%;
    resize: vertical;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    transition: border-color 0.2s;
    min-width:stretch;
}

    .mesaj-textarea:focus {
        border-color: #4a90e2;
        box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
    }

.mesaj-gonder-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

    .mesaj-gonder-footer .form-group {
        flex: 1;
    }

.btn-gonder {
    white-space: nowrap;
    padding: 8px 24px;
    font-weight: 500;
}

/* Mesajlar container - WhatsApp tarzı */
.mesajlar-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 450px;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .mesaj-gonder-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-gonder {
        width: 100%;
    }
}
/* Mesaj içinde dosya gösterimi */
.mesaj-dosya {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 5px 0;
}

.dosya-icon {
    font-size: 32px;
    line-height: 1;
}

.dosya-bilgi {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dosya-link {
    font-weight: 600;
    color: #2196f3;
    text-decoration: none;
    word-break: break-all;
    font-size: 14px;
}

    .dosya-link:hover {
        text-decoration: underline;
    }

.dosya-indir {
    font-size: 12px;
    color: #757575;
}

