/* === GENEL AYARLAR === */
body {
    font-family: 'Inter', sans-serif;
    background: #f7f8fa;
    color: #333;
    margin: 0;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    margin-bottom: 25px;
}

/* === GENEL BUTONLAR === */
.btn {
    background: #0078ff;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-right: 10px;
    display: inline-block;
    transition: 0.2s;
}

.btn:hover {
    background: #005fcc;
}

.btn-danger {
    background: #e74c3c;
}

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

/* === TABLO TASARIMI === */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    font-size: 15px;
}

thead {
    background: #f1f3f6;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #e3e6ea;
}

td {
    border-bottom: 1px solid #f0f2f5;
}

tr:last-child td {
    border-bottom: none;
}

/* === DURUM RENKLERİ === */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
}

.badge.görüşüldü {
    background: #27ae60;
}

.badge.görüşülecek {
    background: #f1c40f;
    color: #000;
}

.badge.beklemede {
    background: #e67e22;
}

/* === LİNKLER VE İKONLAR === */
a {
    text-decoration: none;
    color: inherit;
}

td a {
    margin-right: 8px;
    font-size: 18px;
}

td a:hover {
    opacity: 0.7;
}

/* === GİRİŞ SAYFASI === */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #eef2f3;
}

.login-box {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 360px;
}

input, select, textarea, button {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

button {
    background: #0078ff;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

button:hover {
    background: #005fcc;
}

/* === FORM TASARIMI (Yeni Müşteri Ekle / Düzenle) === */

.form-container {
    width: 420px;
    margin: 50px auto;
    background: #fff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.form-container:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.form-container h2 {
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

/* Giriş alanları */
.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafafa;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #0078ff;
    box-shadow: 0 0 0 3px rgba(0,120,255,0.1);
    background-color: #fff;
}

/* Tarih seçici için */
input[type="date"] {
    color: #333;
    font-family: inherit;
}

/* Placeholder renkleri */
::placeholder {
    color: #aaa;
}

/* Kaydet butonu */
.form-container button {
    width: 100%;
    background: #0078ff;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.form-container button:hover {
    background: #005fcc;
    transform: translateY(-1px);
}

.form-container button:active {
    transform: translateY(0);
}

/* Textarea boyutu */
.form-container textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
}

/* Küçük ekranlar */
@media (max-width: 480px) {
    .form-container {
        width: 90%;
        padding: 25px;
    }
}
/* === FORM BUTONLARI === */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.form-buttons button {
    flex: 1;
}

.btn-cancel {
    flex: 1;
    /* background: #f2f2f2; */
    color: #333;
    text-align: center;
    padding: 25px 0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s
    ease, color 0.2s
    ease;
}

.btn-cancel:hover {
    background: #e5e5e5;
    color: #000;
}


.error {
    color: red;
    font-size: 14px;
}

/* === DATATABLES TASARIMI === */
div.dt-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 30px;
    margin-top: 23px;
}

.dt-buttons .dt-button {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #0078ff !important;
    font-size: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
}

.dt-buttons .dt-button:hover {
    color: #005fcc !important;
    transform: scale(1.15);
}

.dt-buttons .dt-button:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.dt-buttons .dt-button span {
    line-height: 1;
}

/* Arama ve sayfa seçenekleri hizalama */
.dataTables_filter {
    float: right;
    margin-bottom: 10px;
}
.dataTables_filter input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 13px;
}

.dataTables_length {
    float: left;
    margin-bottom: 10px;
}
.dataTables_length select {
    border-radius: 5px;
    padding: 4px;
    font-size: 13px;
}

/* Alt bilgi ve responsive */
.dataTables_wrapper {
    margin-top: 10px;
}
.dataTables_info,
.dataTables_paginate {
    font-size: 13px;
}

/* Tablodaki buton ve arama barı hizalama */
div.dataTables_wrapper div.dataTables_filter,
div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dt-buttons {
    display: inline-block;
    vertical-align: middle;
}


