/* Müşteri Takip Sistemi - Ana CSS Dosyası */

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #374151;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: 100vh;
    background: white;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.5rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
    padding: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav a:hover {
    background: #f8fafc;
    color: #374151;
    border-left-color: #d1d5db;
}

.sidebar-nav li.active a {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-left-color: white;
}

.sidebar-nav a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-nav a span {
    font-size: 0.95rem;
}

/* Sidebar responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Main content adjustment */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: #f8fafc;
    transition: margin-left 0.3s ease;
    padding: 2rem;
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* İstatistik Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    position: relative; /* Added for stat badge positioning */
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6b7280;
    font-weight: 500;
}


/* Stat Badge */
.stat-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fatura-odenen-badge {
    background: transparent;
    color: inherit;
    padding: 0;
    display: flex;
    align-items: center;
}

/* İçerik Bölümleri */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

/* Tablolar */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    line-height: 1.4;
}

/* Tablo hücrelerinin özel hizalaması */
.table th:nth-child(1), /* İkon sütunu başlığı */
.table td:nth-child(1), /* İkon sütunu */
.table th:nth-child(3), /* Tür sütunu başlığı */
.table td:nth-child(3), /* Tür sütunu */
.table th:nth-child(4), /* Tarih & Saat sütunu başlığı */
.table td:nth-child(4), /* Tarih & Saat sütunu */
.table th:nth-child(5), /* Durum sütunu başlığı */
.table td:nth-child(5), /* Durum sütunu */
.table th:nth-child(6), /* Erteleme sütunu başlığı */
.table td:nth-child(6), /* Erteleme sütunu */
.table th:nth-child(7), /* İşlemler sütunu başlığı */
.table td:nth-child(7) { /* İşlemler sütunu */
    text-align: center;
}

/* Hizmetler tablosu için özel hizalamalar */
.table th:first-child, /* Hizmet Adı başlığı */
.table td:first-child { /* Hizmet Adı hücresi */
    text-align: left !important;
}

/* Empty state için özel hizalama */
.empty-state {
    text-align: center !important;
}

.empty-state i {
    text-align: center !important;
    display: block;
    margin: 0 auto;
}

/* İlk sütun genişliği - tüm tablolar için */
.table th:first-child,
.table td:first-child {
    min-width: 120px;
    width: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Hatırlatma sütunu sola hizalı */
.table th:nth-child(2),
.table td:nth-child(2) {
    text-align: left;
}

/* Hatırlatmalar sayfası için özel tablo düzenlemesi */
.hatirlatmalar-table .table th:first-child,
.hatirlatmalar-table .table td:first-child {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    padding: 0.5rem 0.25rem;
    text-align: center;
}

.hatirlatmalar-table .table th:nth-child(2),
.hatirlatmalar-table .table td:nth-child(2) {
    padding-left: 0.5rem;
}

.hatirlatmalar-table .hatirlatma-icon-small {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
}

.table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Status Badge'leri */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
}

.status-aktif {
    background-color: #d1fae5;
    color: #065f46;
}

.status-beklemede {
    background-color: #fef3c7;
    color: #92400e;
}

.status-askida {
    background-color: #fce7f3;
    color: #be185d;
}

.status-tamamlandi {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-iptal {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-tahsilat {
    background-color: #d1fae5;
    color: #065f46;
}

.status-iade {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #0DAF7A;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0b9d6e;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #4f46e5;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border: 2px solid #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.08);
    background-color: white;
}



.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Tarih seçimi için özel düzenleme */
.filter-form .form-row {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
}

/* Checkbox Stilleri */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0;
    padding: 12px 16px;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.checkbox-label:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    background: white;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #10b981;
    border-color: #10b981;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:checked ~ i {
    color: #10b981;
}

.checkbox-label i {
    margin-right: 8px;
    color: #6b7280;
    transition: color 0.2s ease;
}

/* Checkbox seçili durumda border rengi */
.checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Kısmi ödeme alanı */
.kismi-odeme-alani {
    margin-top: 10px;
    padding: 15px;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
}

/* Bootstrap Form Switch Stilleri */
.form-switch {
    padding-left: 2.5em;
    display: flex;
    align-items: center;
    min-height: 1.5em;
}

.form-switch .form-check-input {
    width: 2em;
    height: 1em;
    margin-left: -2.5em;
    margin-top: 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position .15s ease-in-out;
    flex-shrink: 0;
}

.form-switch .form-check-input:focus {
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-label {
    margin-bottom: 0;
    margin-left: 0.5em;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

/* Toggle buton stili */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.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: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #10b981;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Info Card */
.info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-card h3 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.info-item strong {
    color: #374151;
    margin-right: 0.5rem;
}

/* Yatay Müşteri Bilgileri */
.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.customer-info-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.customer-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.customer-info-item i {
    color: #667eea;
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.customer-label {
    font-weight: 600;
    color: #6b7280;
}

.customer-value {
    font-weight: 500;
    color: #1f2937;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Badge */
.badge {
    padding: 0.1rem 0.6rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

/* Fatura türü stilleri */
.fatura-turu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fatura-turu i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Fatura Grid ve Kartları */
.fatura-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.fatura-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.fatura-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fatura-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.fatura-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #f8fafc;
}

.fatura-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.fatura-form .form-group {
    margin-bottom: 1rem;
}

.fatura-form .btn-block {
    margin-top: 1rem;
}

/* Hızlı Fatura Girişi */
.hizli-fatura-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.hizli-fatura-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.hizli-fatura-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fatura-baslik {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.fatura-baslik .fatura-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #f8fafc;
}

.fatura-baslik h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.fatura-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tutar-input {
    position: relative;
    flex: 1;
    min-width: 120px;
}

.tutar-input input {
    padding-right: 2rem;
}

.input-suffix {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-weight: 500;
    pointer-events: none;
}

.odendi-checkbox {
    flex-shrink: 0;
}

.odendi-checkbox .checkbox-label {
    padding: 0.5rem 0.75rem;
    margin: 0;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
}

.odendi-checkbox .checkbox-label:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.odendi-checkbox .checkmark {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

.odendi-checkbox i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.hizli-fatura-form .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Responsive hızlı fatura grid */
@media (max-width: 1200px) {
    .hizli-fatura-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hizli-fatura-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .hizli-fatura-card {
        padding: 0.75rem;
    }
    
    .fatura-inputs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .tutar-input {
        min-width: auto;
    }
    
    .odendi-checkbox {
        align-self: flex-start;
    }
    
    .hizli-fatura-form .btn {
        align-self: stretch;
    }
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding-right: 2.5rem;
}

.search-box i {
    position: absolute;
    right: 0.75rem;
    color: #6b7280;
    pointer-events: none;
}

/* Filter Form */
.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
}

.filter-form select {
    min-width: 150px;
    flex: 1;
}

.filter-form .btn {
    flex-shrink: 0;
}

/* Mobilde filtreleme formu için özel düzenleme */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .filter-form select {
        min-width: auto;
        width: 100%;
    }
    
    .filter-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobilde section header'ı düzelt */
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .section-header h2 {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    /* Mobilde tablo container'ı düzelt */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobilde tablo genişliğini sınırla */
    .table {
        min-width: 600px;
    }
    
    /* Mobilde tablo hücrelerini küçült */
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Mobilde önemli sütunları göster, diğerlerini gizle */
    .table th:nth-child(4), /* Fiyat sütunu */
    .table td:nth-child(4),
    .table th:nth-child(6), /* Başlama Tarihi */
    .table td:nth-child(6),
    .table th:nth-child(7), /* Bitiş Tarihi */
    .table td:nth-child(7),
    .table th:nth-child(8) { /* Ödeme Türü */
        display: none;
    }
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Content Actions */
.content-actions {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

/* Hatırlatmalar sayfası için özel header actions */
.hatirlatmalar-page .header-actions {
    position: static !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

/* Hatırlatmalar sayfasında header'ı düzelt */
.hatirlatmalar-page .header {
    position: relative !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.hatirlatmalar-page .header h1 {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.hatirlatmalar-page .header-actions {
    order: 2 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

.hatirlatmalar-page .header-actions .btn {
    width: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Kasa sayfası için özel header actions */
.kasa-page .header-actions {
    position: static !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

/* Kasa sayfasında header'ı düzelt */
.kasa-page .header {
    position: relative !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.kasa-page .header h1 {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.kasa-page .header-actions {
    order: 2 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

.kasa-page .header-actions .btn {
    width: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Projeler sayfası için özel header actions */
.projeler-page .header-actions {
    position: static !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

/* Projeler sayfasında header'ı düzelt */
.projeler-page .header {
    position: relative !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.projeler-page .header h1 {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.projeler-page .header-actions {
    order: 2 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

.projeler-page .header-actions .btn {
    width: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Alert Mesajları */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Login Sayfası */
.login-page {
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 380px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.login-header p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.login-form label i {
    font-size: 0.9rem;
    color: #667eea;
    width: 14px;
    text-align: center;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #374151;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form input::placeholder {
    color: #9ca3af;
}

.btn-block {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.3);
}

/* Takvim Stilleri */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

#calendar {
    width: 100%;

}

.fc-event {
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.85rem;
}

.fc-event-title {
    font-weight: 500;
}

.fc-daygrid-day {
    cursor: pointer;
}

.fc-daygrid-day:hover {
    background-color: #f3f4f6;
}

/* Takvim Modal Stilleri */
.calendar-modal .modal-content {
    max-width: 600px;
}

.calendar-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-form .form-group.full-width {
    grid-column: 1 / -1;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        overflow: hidden;
        width: 100%;
    }
    
    /* Mobilde card alanlarında kaymayı önle */
    .stat-card {
        min-width: 0;
        overflow: hidden;
        word-wrap: break-word;
        flex-shrink: 1;
        max-width: 100%;
    }
    
    .stat-content {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
        word-break: break-word;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .stat-content p {
        font-size: 0.875rem;
        word-break: break-word;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .section-header {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
    }
    
    .section-header h2 {
        margin: 0;
        font-size: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    /* Mobilde fiyat sütununu gizle */
    .table th:nth-child(3),
    .table td:nth-child(3) {
        display: none;
    }
    
    /* Mobil için yatay müşteri bilgileri */
    .customer-info-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .customer-info-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-content h2 {
        font-size: 1.25rem;
    }
    
    /* Mobil için content actions */
    .content-actions {
        position: static;
        margin-top: 1rem;
        display: flex;
        justify-content: flex-end;
    }
    
    /* Mobilde hatırlatmalar sayfası için özel düzenleme */
    .hatirlatmalar-page .header-actions {
        position: static !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        justify-content: flex-end !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }
    
    .hatirlatmalar-page .header {
        flex-direction: row !important;
        gap: 1rem !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .hatirlatmalar-page .header-actions .btn {
        width: auto !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    /* Mobilde kasa sayfası için özel düzenleme */
    .kasa-page .header-actions {
        position: static !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        justify-content: flex-end !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }
    
    .kasa-page .header {
        flex-direction: row !important;
        gap: 1rem !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .kasa-page .header-actions .btn {
        width: auto !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    /* Mobilde projeler sayfası için özel düzenleme */
    .projeler-page .header-actions {
        position: static !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        justify-content: flex-end !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }
    
    .projeler-page .header {
        flex-direction: row !important;
        gap: 1rem !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .projeler-page .header-actions .btn {
        width: auto !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    .customer-info-horizontal {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .customer-info-item {
        font-size: 0.8rem;
    }
    
    .customer-info-item i {
        font-size: 0.8rem;
        width: 14px;
    }
    
    /* Çok küçük ekranlarda filtreleme formu */
    .filter-form {
        gap: 0.5rem;
    }
    
    .filter-form select,
    .filter-form .btn {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    /* Çok küçük ekranlarda tablo */
    .table {
        min-width: 500px;
    }
    
    .table th,
    .table td {
        padding: 0.25rem 0.125rem;
        font-size: 0.75rem;
    }
    
    /* Çok küçük ekranlarda card alanları */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .stat-card {
        padding: 1rem;
        min-height: auto;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-content h3 {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .stat-content p {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Mobilde fatura ödendi badge'ini gizle */
    .fatura-odenen-badge {
        display: none !important;
    }
}

/* 480px altı için de gizle */
@media (max-width: 480px) {
    .fatura-odenen-badge {
        display: none !important;
    }
    
    .dashboard-grid-three {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .notlar-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Çok küçük ekranlar için ek düzenlemeler */
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0 0.25rem;
    }
    
    .stat-card {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-content h3 {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .stat-content p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.3s ease;
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Modal stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    animation: modalFadeIn 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3::before {
    content: '⚙️';
    font-size: 1.1rem;
}

.close {
    color: #6b7280;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #1f2937;
    background-color: #f3f4f6;
    transform: scale(1.1);
}

/* Modal form stilleri */
.modal .form {
    padding: 1.5rem;
}

.modal .form-group {
    margin-bottom: 1.5rem;
}

.modal .form-actions {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Modal animasyonu */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chart container */
.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}



/* Tips stilleri */
.tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.tip-item i {
    color: #667eea;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.tip-item h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1rem;
}

.tip-item p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Text utilities */
.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-muted {
    color: #6b7280 !important;
}

/* Responsive fatura grid */
@media (max-width: 768px) {
    .fatura-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .fatura-card {
        padding: 1rem;
    }
    
    .fatura-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .fatura-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Drag Handle */
.drag-handle {
    cursor: grab;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.drag-handle:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Sortable Animasyonları */
.sortable-ghost {
    opacity: 0.5;
    background: #f3f4f6 !important;
    border: 2px dashed #d1d5db !important;
}

.sortable-chosen {
    transform: rotate(2deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.sortable-drag {
    transform: rotate(5deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2) !important;
}

/* Sıralama modu aktif olduğunda form stilleri */
.hizli-fatura-form.sorting-disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Notification animasyonu */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive header actions */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hatırlatma Kartları */
.hatirlatma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.hatirlatma-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    position: relative;
}

.hatirlatma-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hatirlatma-card.geciken {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.hatirlatma-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hatirlatma-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hatirlatma-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
}

.hatirlatma-info h3,
.hatirlatma-info p {
    text-align: left !important;
    width: 100%;
}

.hatirlatma-info h3 {
    margin: 0 0 0.1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    display: block;
}

.hatirlatma-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
}


 .hatirlatma-info p {
     margin: -10px 0 0 0;
     color: #6b7280;
     font-size: 0.9rem;
     line-height: 1.4;
 }
 

 


.hatirlatma-time {
    text-align: right;
}

.time-badge {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.time-badge.yaklasan {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.time-badge.geciken {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.hatirlatma-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Tablo Hatırlatma Bilgileri */
.hatirlatma-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Tablo için özel hatırlatma bilgileri */
.table .hatirlatma-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    margin: 0;
    padding: 0;
}

.table .hatirlatma-info strong {
    display: block;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

.table .hatirlatma-info small {
    display: block;
    line-height: 1.2;
    margin: 0;
    font-size: 0.8rem;
}

.hatirlatma-icon-small {
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.datetime-info {
    text-align: center;
}

.table .datetime-info {
    text-align: center;
    margin: 0;
    padding: 0;
}

.table .datetime-info div {
    font-weight: 500;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

.table .datetime-info small {
    color: #6b7280;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.2;
}

.geciken-row {
    background: linear-gradient(135deg, #fef2f2, #ffffff);
    border-left: 3px solid #ef4444;
}

/* İkon Seçimi */
.icon-selection {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.5rem;
    color: #667eea;
    transition: all 0.2s ease;
}

.selected-icon:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.color-picker {
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
}

.color-picker:hover {
    border-color: #667eea;
}

/* İkon Grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.icon-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.icon-option i {
    font-size: 1.5rem;
    color: #667eea;
}

.icon-option span {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Badge Renkleri */
.badge-toplanti {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-telefon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.badge-odeme {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-teslimat {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.badge-kargo {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-fatura {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-genel {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.table .action-buttons {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Dashboard 3'lü Grid */
.dashboard-grid-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Sağ Sütun - Müşteriler ve Ödemeler */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Müşteriler Listesi */
.musteriler-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.musteri-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.musteri-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.musteri-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.musteri-info p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.musteri-info small {
    font-size: 0.75rem;
}

.musteri-info .proje-adi {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #059669;
    font-weight: 500;
}

.musteri-info .proje-adi i {
    color: #059669;
    margin-right: 0.25rem;
}

.musteri-info .proje-yok {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

.musteri-info .proje-yok i {
    color: #6b7280;
    margin-right: 0.25rem;
}

.musteri-actions {
    display: flex;
    gap: 0.5rem;
}

/* Ödemeler Listesi */
.odemeler-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.odeme-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.odeme-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.odeme-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #059669;
}

.odeme-info p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #374151;
}

.odeme-info small {
    font-size: 0.75rem;
}

.odeme-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.odeme-meta small {
    font-size: 0.75rem;
}

/* Notlar Listesi */
.notlar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.not-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.not-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.not-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    margin-right: -1.5rem;
    padding-right: 1.5rem;
}

.not-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.not-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.not-item p {
    margin: 0 0 0.75rem 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.not-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

/* Notlar Grid (notlar.php sayfası için) */
.notlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.not-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

.not-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.not-card .not-header {
    margin-bottom: 1rem;
}

.not-card .not-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.not-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: 0;
    padding-right: 0;
    max-width: 100%;
    overflow: hidden;
}

.not-content {
    margin-bottom: 1rem;
}

.not-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

    .not-meta {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

.not-card .not-actions {
    display: flex;
    gap: 0.25rem;
}

/* Modal Body ve Footer */
.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-grid-three {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .notlar-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .right-column {
        gap: 1.5rem;
    }
    
    .musteri-item,
    .odeme-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .musteri-actions,
    .odeme-meta {
        align-self: flex-end;
    }
    
    .hatirlatma-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hatirlatma-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .hatirlatma-time {
        text-align: left;
        width: 100%;
    }
    
    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .icon-selection {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .not-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        margin-right: -1.5rem;
        padding-right: 1.5rem;
    }
    
    .not-header h3 {
        flex: 1;
        margin: 0;
    }
    
    .not-badges {
        flex-shrink: 0;
        margin-left: auto;
        margin-right: -1.5rem;
        padding-right: 1rem;
    }
    
    .not-actions {
        align-self: flex-end;
    }
    
    .not-meta {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .not-meta small {
        white-space: nowrap;
        font-size: 0.8rem;
    }
    
    .not-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Takvim ve Son Projeler Container */
.calendar-projects-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Takvim Stilleri */
#calendar {
    min-height: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

/* Responsive düzenleme */
@media (max-width: 1024px) {
    .calendar-projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #calendar {
        margin-bottom: 0;
    }
}

/* Mobil responsive düzenleme */
@media (max-width: 768px) {
    .index-page .main-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .index-page .dashboard-grid {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .index-page .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .index-page .content-section {
        overflow-x: visible;
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .index-page .table {
        min-width: auto !important;
        width: 100% !important;
    }
    
    .index-page .container {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .calendar-projects-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #calendar {
        min-height: 300px;
        margin: 0;
        border-radius: 0;
    }
    
    .content-section {
        overflow-x: auto;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    /* Basit takvim mobil düzenleme */
    .simple-calendar {
        -webkit-overflow-scrolling: touch;
        margin: 0;
        border-radius: 0;
        padding: 0.75rem;
    }
    
    .calendar-grid {
        min-width: 300px;
    }
    
    .calendar-day {
        min-height: 40px;
        font-size: 0.875rem;
    }
    
    .day-number {
        font-size: 0.75rem;
    }
    
    .event-dot {
        width: 6px;
        height: 6px;
    }
}

.fc-event {
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 12px;
}

.fc-event-title {
    font-weight: 500;
}

.fc-daygrid-day {
    cursor: pointer;
}

.fc-daygrid-day:hover {
    background-color: #f8f9fa;
}

/* FullCalendar genel stilleri */
.fc {
    font-family: 'Inter', sans-serif;
}

.fc-toolbar {
    margin-bottom: 1rem;
}

.fc-button {
    background-color: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
}

.fc-button:hover {
    background-color: #5a67d8 !important;
    border-color: #5a67d8 !important;
}

.fc-button-active {
    background-color: #4c51bf !important;
    border-color: #4c51bf !important;
}

.fc-daygrid-day-number {
    font-weight: 500;
    color: #374151;
}

.fc-col-header-cell {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* Basit Takvim Stilleri */
.simple-calendar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    padding: 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-header h3 {
    margin: 0;
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
}

.calendar-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
}

.calendar-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 0.5rem;
}

.calendar-weekdays div {
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
    background: #f9fafb;
    border-radius: 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    min-height: 60px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: white;
}

.calendar-day:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.calendar-day.today {
    background: #eff6ff;
    border-color: #3b82f6;
}

.calendar-day.today .day-number {
    color: #1d4ed8;
    font-weight: 600;
}

.calendar-day.empty {
    background: #f9fafb;
    cursor: default;
    border-color: transparent;
}

.day-number {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.event-dot:hover {
    transform: scale(1.2);
}

/* Mobil Sabit Alt Menü */
.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.mobile-menu-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 60px;
}

.mobile-menu-item:hover {
    color: #3b82f6;
    background: #f3f4f6;
}

.mobile-menu-item.active {
    color: #3b82f6;
    background: #eff6ff;
}

.mobile-menu-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-menu-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mobil menü için body padding ekle */
@media (max-width: 768px) {
    .mobile-bottom-menu {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
    
    .main-content {
        padding-bottom: 2rem;
    }
    
    /* Projeler sayfası mobil düzenleme */
    .projeler-page .table th:nth-child(2),
    .projeler-page .table td:nth-child(2) {
        display: none; /* Müşteri sütunu gizle */
    }
    
    .projeler-page .table th:nth-child(3),
    .projeler-page .table td:nth-child(3) {
        display: none; /* Hizmet sütunu gizle */
    }
    
    .projeler-page .table th:nth-child(4),
    .projeler-page .table td:nth-child(4) {
        display: none; /* Fiyat sütunu gizle */
    }
    
    .projeler-page .table th:nth-child(5),
    .projeler-page .table td:nth-child(5) {
        display: none; /* Durum sütunu gizle */
    }
    
    .projeler-page .table th:nth-child(6),
    .projeler-page .table td:nth-child(6) {
        display: none; /* Başlama Tarihi sütunu gizle */
    }
    
    .projeler-page .table th:nth-child(7),
    .projeler-page .table td:nth-child(7) {
        display: none; /* Bitiş Tarihi sütunu gizle */
    }
    
    .projeler-page .table th:nth-child(8),
    .projeler-page .table td:nth-child(8) {
        display: none; /* Ödeme Türü sütunu gizle */
    }
    
    /* Sadece Proje Adı ve İşlemler sütunları görünür */
    .projeler-page .table th:nth-child(1),
    .projeler-page .table td:nth-child(1) {
        width: 55%; /* Proje Adı - daha geniş */
        font-size: 1rem; /* Proje adı yazısını büyüt */
        line-height: 1.4;
    }
    
    .projeler-page .table th:nth-child(9),
    .projeler-page .table td:nth-child(9) {
        width: 45%; /* İşlemler - butonlar için */
        text-align: center;
    }
    
    /* Tablo genişliğini ayarla */
    .projeler-page .table {
        min-width: 350px;
    }
    
    /* İşlem butonlarını mobilde biraz büyüt - 4 tanesi yan yana */
    .projeler-page .table .btn {
        padding: 0.35rem;
        margin: 0.15rem;
        font-size: 0.8rem;
        min-width: 32px;
        height: 32px;
        display: inline-block;
    }
    
    /* Butonları daha kompakt yap */
    .projeler-page .table .btn i {
        font-size: 0.8rem;
    }
    
    /* Proje adı altındaki URL'yi de büyüt */
    .projeler-page .table td:nth-child(1) small {
        font-size: 0.85rem;
    }
    
    /* Mobil geri dön butonu - sağ tarafta */
    .mobile-back-btn {
        display: inline-block !important;
        margin: 0;
        width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Mobilde header-actions'ı göster */
    .header-actions {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        width: auto;
    }
    
    /* Header'ı flex yap - sol title, sağ buton */
    .header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-direction: row !important;
    }
    
    /* Title'ı sol tarafa sabitle */
    .header h1 {
        margin: 0;
        flex: 1;
    }
}

/* Desktop'ta geri dön butonunu göster */
@media (min-width: 769px) {
    .header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .mobile-back-btn {
        display: none !important;
    }
}

/* Proje Detay Sayfası Özel Düzenleme */
.proje-detay-page .header {
    display: block !important;
}

.proje-detay-page .header h1 {
    margin-bottom: 1rem;
    flex: none;
}

.proje-detay-page .header-actions {
    display: none !important;
}

.proje-detay-page .header-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Mobilde proje detay butonları */
@media (max-width: 768px) {
    .proje-detay-page .header-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.25rem;
        justify-content: flex-start !important;
        width: 100% !important;
        margin-top: 0.5rem;
    }
    
    .proje-detay-page .header-actions .btn {
        flex: 1;
        min-width: 60px;
        font-size: 0.7rem;
        padding: 0.4rem 0.3rem;
    }
    
    .proje-detay-page .header-actions .btn i {
        display: block;
        margin-bottom: 0.1rem;
        font-size: 0.8rem;
    }
    
    .proje-detay-page .header-actions .btn span {
        display: none;
    }
    
    /* Proje güncellemeleri tablosu mobil düzenleme */
    .proje-detay-page .table th:nth-child(3),
    .proje-detay-page .table td:nth-child(3) {
        display: none; /* Açıklama sütunu gizle */
    }
    
    .proje-detay-page .table th:nth-child(4),
    .proje-detay-page .table td:nth-child(4) {
        display: none; /* Tür sütunu gizle */
    }
    
    /* Sadece Tarih ve Başlık sütunları görünür */
    .proje-detay-page .table th:nth-child(1),
    .proje-detay-page .table td:nth-child(1) {
        width: 30%; /* Tarih sütunu */
        font-size: 0.875rem;
    }
    
    .proje-detay-page .table th:nth-child(2),
    .proje-detay-page .table td:nth-child(2) {
        width: 70%; /* Başlık sütunu */
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Tablo genişliğini ayarla */
    .proje-detay-page .table {
        min-width: 300px;
    }
    
    /* Ödemeler tablosu mobil düzenleme */
    .proje-detay-page .table th:nth-child(3),
    .proje-detay-page .table td:nth-child(3) {
        display: none; /* Tür sütunu gizle */
    }
    
    .proje-detay-page .table th:nth-child(4),
    .proje-detay-page .table td:nth-child(4) {
        display: none; /* Yöntem sütunu gizle */
    }
    
    .proje-detay-page .table th:nth-child(5),
    .proje-detay-page .table td:nth-child(5) {
        display: none; /* Açıklama sütunu gizle */
    }
    
    .proje-detay-page .table th:nth-child(6),
    .proje-detay-page .table td:nth-child(6) {
        display: none; /* İşlemler sütunu gizle */
    }
    
    /* Sadece Tarih ve Miktar sütunları görünür */
    .proje-detay-page .table th:nth-child(1),
    .proje-detay-page .table td:nth-child(1) {
        width: 40%; /* Tarih sütunu */
        font-size: 0.875rem;
    }
    
    .proje-detay-page .table th:nth-child(2),
    .proje-detay-page .table td:nth-child(2) {
        width: 60%; /* Miktar sütunu */
        font-size: 0.9rem;
        font-weight: 600;
        color: #10b981;
    }
    
    /* Müşteriler sayfası mobil düzenleme */
    .musteriler-page .table th:nth-child(2),
    .musteriler-page .table td:nth-child(2) {
        display: none; /* Firma sütunu gizle */
    }
    
    .musteriler-page .table th:nth-child(3),
    .musteriler-page .table td:nth-child(3) {
        display: none; /* İletişim sütunu gizle */
    }
    
    .musteriler-page .table th:nth-child(4),
    .musteriler-page .table td:nth-child(4) {
        display: none; /* Proje Sayısı sütunu gizle */
    }
    
    .musteriler-page .table th:nth-child(5),
    .musteriler-page .table td:nth-child(5) {
        display: none; /* Toplam Proje Değeri sütunu gizle */
    }
    
    .musteriler-page .table th:nth-child(6),
    .musteriler-page .table td:nth-child(6) {
        display: none; /* Toplam Ödeme sütunu gizle */
    }
    
    .musteriler-page .table th:nth-child(7),
    .musteriler-page .table td:nth-child(7) {
        display: none; /* Bekleyen Ödeme sütunu gizle */
    }
    
    .musteriler-page .table th:nth-child(8),
    .musteriler-page .table td:nth-child(8) {
        display: none; /* Kayıt Tarihi sütunu gizle */
    }
    
    /* Sadece Müşteri Adı ve İşlemler sütunları görünür */
    .musteriler-page .table th:nth-child(1),
    .musteriler-page .table td:nth-child(1) {
        width: 60%; /* Müşteri Adı - daha geniş */
        font-size: 1rem; /* Müşteri adı yazısını büyüt */
        line-height: 1.4;
    }
    
    .musteriler-page .table th:nth-child(9),
    .musteriler-page .table td:nth-child(9) {
        width: 40%; /* İşlemler - butonlar için */
        text-align: center;
    }
    
    /* Tablo genişliğini ayarla */
    .musteriler-page .table {
        min-width: 350px;
    }
    
    /* İşlem butonlarını mobilde optimize et - yan yana */
    .musteriler-page .table .btn {
        padding: 0.35rem;
        margin: 0.1rem;
        font-size: 0.8rem;
        min-width: 28px;
        height: 28px;
        display: inline-block;
        float: left;
    }
    
    /* Butonları daha kompakt yap */
    .musteriler-page .table .btn i {
        font-size: 0.8rem;
    }
    
    /* Buton container'ını temizle */
    .musteriler-page .table td:nth-child(9) {
        white-space: nowrap;
        overflow: hidden;
    }
    
    /* Müşteri adı altındaki VKN'yi de büyüt */
    .musteriler-page .table td:nth-child(1) small {
        font-size: 0.85rem;
    }
    
    /* Kasa sayfası tabloları mobil düzenleme */
    .kasa-page .table th:nth-child(2),
    .kasa-page .table td:nth-child(2) {
        display: none; /* Müşteri sütunu gizle */
    }
    
    .kasa-page .table th:nth-child(3),
    .kasa-page .table td:nth-child(3) {
        display: none; /* Proje Fiyatı/Ödeme Türü sütunu gizle */
    }
    
    .kasa-page .table th:nth-child(4),
    .kasa-page .table td:nth-child(4) {
        display: none; /* Ödenen Miktar/Ödeme Yöntemi sütunu gizle */
    }
    
    .kasa-page .table th:nth-child(6),
    .kasa-page .table td:nth-child(6) {
        display: none; /* Ödeme Oranı sütunu gizle */
    }
    
    .kasa-page .table th:nth-child(7),
    .kasa-page .table td:nth-child(7) {
        display: none; /* İşlemler sütunu gizle */
    }
    
    /* Bekleyen ödemeler tablosu - Proje Adı ve Bekleyen Miktar görünür */
    .kasa-page .table th:nth-child(1),
    .kasa-page .table td:nth-child(1) {
        width: 60%; /* Proje Adı */
        font-size: 0.95rem;
        padding: 8px 6px; /* Sütunları yaklaştır */
    }
    
    .kasa-page .table th:nth-child(5),
    .kasa-page .table td:nth-child(5) {
        width: 40%; /* Bekleyen Miktar */
        font-size: 0.9rem;
        padding: 8px 6px; /* Sütunları yaklaştır */
        text-align: right;
    }
    
    /* Son ödemeler tablosu - Proje, Tarih ve Miktar görünür */
    .kasa-page .table th:nth-child(1),
    .kasa-page .table td:nth-child(1) {
        width: 50%; /* Proje */
        font-size: 0.95rem;
        padding: 8px 6px; /* Sütunları yaklaştır */
    }
    
    .kasa-page .table th:nth-child(5),
    .kasa-page .table td:nth-child(5) {
        width: 25%; /* Tarih */
        font-size: 0.85rem;
        padding: 8px 4px; /* Sütunları yaklaştır */
        text-align: center;
    }
    
    .kasa-page .table th:nth-child(3),
    .kasa-page .table td:nth-child(3) {
        width: 25%; /* Miktar */
        font-size: 0.9rem;
        padding: 8px 4px; /* Sütunları yaklaştır */
        text-align: right;
        display: table-cell !important; /* Son ödemelerde miktar sütununu göster */
    }
    
    /* Tablo genişliğini ayarla */
    .kasa-page .table {
        min-width: 320px;
    }
    
    /* Teklifler sayfası kart düzenleme - notlar sayfası ile aynı stil kullanılıyor */
    
    /* Index sayfası son projeler tablosu mobil düzenleme */
    .index-page .table th:nth-child(3),
    .index-page .table td:nth-child(3) {
        display: none; /* Fiyat sütunu gizle */
    }
    
    .index-page .table th:nth-child(4),
    .index-page .table td:nth-child(4) {
        display: none; /* Durum sütunu gizle */
    }
    
    /* Sadece Proje Adı, Müşteri ve İşlemler sütunları görünür */
    .index-page .table th:nth-child(1),
    .index-page .table td:nth-child(1) {
        width: 50%; /* Proje Adı */
        font-size: 0.95rem;
        padding: 8px 6px;
    }
    
    .index-page .table th:nth-child(2),
    .index-page .table td:nth-child(2) {
        width: 30%; /* Müşteri */
        font-size: 0.9rem;
        padding: 8px 6px;
    }
    
    .index-page .table th:nth-child(5),
    .index-page .table td:nth-child(5) {
        width: 20%; /* İşlemler */
        padding: 8px 4px;
        white-space: nowrap;
        overflow: hidden;
    }
    
    /* Butonları küçült */
    .index-page .table .btn {
        padding: 4px 6px;
        font-size: 0.75rem;
        margin: 1px;
        min-width: auto;
        height: auto;
        float: left;
    }
    
    /* Tablo genişliğini ayarla */
    .index-page .table {
        min-width: 300px;
    }
}

/* Proje detay sayfası özel stilleri */
.alan-adi-button {
    color: #2563eb;
    background: #e0e7ff;
    text-decoration: none;
    margin-left: 8px;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.alan-adi-button:hover {
    color: #1d4ed8;
    background: #c7d2fe;
    text-decoration: none;
    transform: translateY(-1px);
}

.odeme-turu-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    margin: 0;
    font-size: 0.9rem;
}

.whatsapp-link {
    color: #25d366;
    text-decoration: none;
    margin-left: 8px;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.whatsapp-link:hover {
    color: #128c7e;
    text-decoration: none;
    transform: scale(1.1);
}

/* Müşteriler sayfası iletişim ikonları */
.musteriler-page .table td:nth-child(3) {
    vertical-align: middle;
    text-align: center;
}

.iletisim-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

/* Müşteriler sayfası proje sayısı badge */
.musteriler-page .table td:nth-child(4) .badge {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #374151;
    border: 1px solid #d1d5db;
}

.email-copy {
    color: #6b7280;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.email-copy:hover {
    color: #374151;
    text-decoration: none;
    transform: scale(1.1);
}
