/* Tüm sayfa ayarları */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-image: url('ekran-tasarimi.png'); /* Arkaplan olarak yüklediğiniz resim */
    background-position: top;
	background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: baseline;
    

}

.container {
	width: 50%;
	margin: 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8); /* Hafif saydam beyaz arka plan */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 150px; /* Logonun boyutu */
}

h1 {
    font-size: 36px;
    color: #3C64C9;
    
}

hr {
    border: 0;
    height: 2px;
    background: #3C64C9;
    margin: 20px 0;
}

h2 {
    font-size: 24px;
    color: #333;
}

h2 span {
    color: #3C64C9; /* Kullanıcı adı rengini mavi yaptık */
    font-weight: bold;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.button {
    display: inline-block;
    padding: 12px 20px;
    font-size: 18px;
    color: #333;
    background-color: white;
    border: 2px solid #3C64C9;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
	width:300px;
	margin: 10px;
}

.button:hover {
    background-color: #3C64C9;
    color: white;
    cursor: pointer;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    .button {
        font-size: 16px;
        padding: 10px 15px;
    }
}

/* Sözleşme başarı ekranı için özel stil */
.contract-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.8); /* Hafif saydam beyaz arka plan */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
	margin-top: 100px;
}

.contract-header h1 {
    color: #3C64C9;
    font-size: 28px;
}

.contract-header h3 {
    color: #333;
    font-size: 18px;
    margin-top: 10px;
}

.contract-success-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contract-button {
    display: block;
    padding: 12px 20px;
    font-size: 18px;
    color: #333;
    background-color: white;
    border: 2px solid #3C64C9;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contract-button:hover {
    background-color: #3C64C9;
    color: white;
    cursor: pointer;
}

.users-container {
    width: 80%;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* 1. Başlık Div'i */
.users-header h1 {
    font-size: 28px;
    color: #333;
}

.users-header hr {
    border: 1px solid #ddd;
    margin-top: 10px;
}

/* 2. Tablo Div'i */
.users-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.users-table th {
    background-color: #f8f8f8;
    color: #333;
    font-weight: bold;
}

.users-table tr:hover {
    background-color: #f1f1f1;
}

.users-table a {
    color: #3C64C9;
    text-decoration: none;
}

.users-table a:hover {
    text-decoration: underline;
}

/* 3. Butonlar Div'i */
.users-button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.users-button {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    color: black;
    background-color: white;
    border: 2px solid #3C64C9;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.users-button:hover {
    background-color: #3C64C9;
    color: white;
    cursor: pointer;
}

/* edit user */
.users-container {
    width: 80%;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
	margin-top: 100px;
}

/* Başlık Div'i */
.users-header h1 {
    font-size: 28px;
    color: #333;
}

.users-header hr {
    border: 1px solid #ddd;
    margin-top: 10px;
}

/* Form Div'i */
.users-form {
    margin-top: 20px;
}

.users-form label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.users-form input[type="text"], 
.users-form input[type="email"], 
.users-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.users-form input[type="text"]:focus, 
.users-form input[type="email"]:focus, 
.users-form select:focus {
    border-color: #3C64C9;
    outline: none;
}

/* Butonlar */
.users-button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.users-button {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    color: black;
    background-color: white;
    border: 2px solid #3C64C9;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.users-button:hover {
    background-color: #3C64C9;
    color: white;
    cursor: pointer;
}

/* Sağ tarafta yer alan buton */
.users-button-right {
    margin-left: auto;
}
/* Başarı ve Hata Mesajları */
.success {
    color: green;
    font-size: 16px;
    margin-top: 10px;
}

.error {
    color: red;
    font-size: 16px;
    margin-top: 10px;
}
/* edit user */

/* sozlesmeler */
/* Konteyner */
.contracts-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Sayfa Başlığı */
.page-header h1 {
    text-align: left;
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.page-header hr {
    width: 100%;
    margin: 10px auto;
}

/* Arama Formu */
.filter-section {
    margin: 20px 0;
    text-align: center;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.search-form input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-search {
    padding: 8px 15px;
    background-color: #3C64C9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-search:hover {
    background-color: #294c99;
}

/* Tablo Stili */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.styled-table thead tr {
    background-color: #3C64C9;
    color: white;
    text-align: left;
    font-weight: bold;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.styled-table tbody tr {
    background-color: #f9f9f9;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

/* Tablo düğmesi */
.btn-view {
    background-color: #5cb85c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.btn-view:hover {
    background-color: #4cae4c;
}

/* Sayfalama */
.pagination {
    text-align: center;
    margin-bottom: 20px;
}

.btn-pagination {
    margin: 0 10px;
    padding: 8px 15px;
    background-color: #3C64C9;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.btn-pagination:hover {
    background-color: #294c99;
}

/* Ana Sayfa Butonu */
.button-container {
    text-align: center;
    margin-top: 20px;
}

.btn-home {
    padding: 10px 20px;
    background-color: #f0ad4e;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.btn-home:hover {
    background-color: #ec971f;
}

/* sozlesmeler */
/* Login ana kapsayıcı */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
	margin-top: 100px;
}

/* Login box (form ve resim kutusu) */
.login-box {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

/* Resim alanı */
.login-image {
    flex: 1;
    background-color: #d8eaff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
	padding: 50px;
}

/* Form alanı */
.login-form {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.login-form label {
    font-size: 14px;
    margin-bottom: 8px;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.login-button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #218838;
}

/* Hata mesajı */
.login-error {
    color: red;
    margin-bottom: 20px;
}

/* Mobil uyum */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        max-width: 400px;
    }

    .login-image {
        height: 200px;
    }
}
.form-container {
max-width: 60%;
    margin: 0 auto;
    background-color: white;
    padding: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
	margin-bottom: 30px;
    border-radius: 15px;
}

.form-header-image {
    width: 100%;
    height: auto;
}

.form-section {
    margin-bottom: 20px;
}

.form-section h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #333;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

label {
    display: inline-block;
    margin-bottom: 5px;
}

input[type="text"], input[type="number"], textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"], button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover, button:hover {
    background-color: #218838;
}

#form-products-table {
    width: 100%;
    border-collapse: collapse;
}

#form-products-table th, #form-products-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

#form-products-table th {
    background-color: #f2f2f2;
}

.form-total-price {
    background-color: #e9ecef;
    border: none;
    padding: 8px;
    text-align: right;
}

.form-terms {
    list-style-type: decimal;
    padding-left: 20px;
}

.form-terms li {
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}
.form-btn-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.form-btn-save {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-btn-save:hover {
    background-color: #218838;
}

.form-btn-homepage {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-btn-homepage:hover {
    background-color: #0069d9;
}
/* Form yatay düzen */
.search-form-horizontal {
    display: flex;
    align-items: center;
    gap: 10px; /* Aralarındaki boşluk */
}

.search-form-horizontal label {
    margin-right: 10px;
}

.search-form-horizontal input {
    padding: 5px;
    width: 200px; /* Giriş alanının genişliği */
}

.search-form-horizontal .btn-search {
    padding: 5px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-form-horizontal .btn-search:hover {
    background-color: #0056b3;
}
/* Sayfa başlığı ve buton */
.page-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header-title h1 {
    margin: 0;
    font-size: 24px;
    text-align: left; /* Başlığı sağa hizala */
    flex-grow: 1;
}

.page-header-title .btn-home {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-left: 20px; /* Buton ile başlık arasında boşluk */
}

.page-header-title .btn-home:hover {
    background-color: #0056b3;
}

.page-header-title hr {
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
    margin-top: 10px;
}
.admin-container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
}

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

.admin-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th, .admin-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.admin-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.admin-button, .admin-button-delete {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.admin-button-delete {
    background-color: #e74c3c;
}

.admin-button:hover, .admin-button-delete:hover {
    opacity: 0.8;
}
.contracts-filter-form {
    margin-bottom: 20px;
}

.contracts-filter-form label {
    margin-right: 10px;
}

.contracts-filter-form input {
    padding: 5px;
    margin-right: 10px;
    width: 200px;
}

.contracts-filter-form button {
    padding: 6px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}
.view-contract-container {
    width: 60%;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
	margin-top: 30px;
}

/* Filtreleme Formu */
.view-contract-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.view-contract-filter-form label {
    font-size: 16px;
    color: #333;
	margin-top: 10px;
}

.view-contract-filter-form input {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.view-contract-filter-form button {
    padding: 10px 20px;
    background-color: #3C64C9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.view-contract-filter-form button:hover {
    background-color: #2b4fa3;
}

/* Tablo Stili */
.view-contract-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.view-contract-table th, .view-contract-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.view-contract-table th {
    background-color: #f8f8f8;
    color: #333;
    font-weight: bold;
}

.view-contract-table tr:hover {
    background-color: #f1f1f1;
}

.view-contract-table a {
    color: #3C64C9;
    text-decoration: none;
}

.view-contract-table a:hover {
    text-decoration: underline;
}
.sozlesme-olustur {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Sipariş Özeti ve Tahsilat Detayı için düzen */
.sozlesme-olustur .form-sections {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.sozlesme-olustur .form-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 98%;
}

.sozlesme-olustur h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #444;
}

.sozlesme-olustur table {
    width: 100%;
    border-collapse: collapse;
}

.sozlesme-olustur table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.sozlesme-olustur table td:first-child {
    font-weight: bold;
    color: #555;
}

.sozlesme-olustur input[type="number"],
.sozlesme-olustur input[type="date"],
.sozlesme-olustur select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    margin-top: 5px;
}

.sozlesme-olustur input[type="number"]:focus,
.sozlesme-olustur input[type="date"]:focus,
.sozlesme-olustur select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.sozlesme-olustur table th {
    text-align: left;
    font-weight: bold;
    padding: 10px;
    background-color: #007bff;
    color: white;
}

.sozlesme-olustur table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Taksitlendirme bölümü için tam genişlik */
.sozlesme-olustur #installment-section {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sozlesme-olustur #installment-table {
    margin-top: 15px;
    width: 100%;
}

.sozlesme-olustur #installment-table th,
.sozlesme-olustur #installment-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#payment-warning {
    font-size: 0.9em;
    color: red;
    text-align: center;
    margin-top: 10px;
}

/* Mobil görünüm için duyarlılık */
@media (max-width: 768px) {
    .sozlesme-olustur .form-sections {
        flex-direction: column;
    }

    .sozlesme-olustur .form-section {
        width: 100%;
    }
}
.edit-contract .form-sections {
    display: flex;
    gap: 20px; /* İki bölüm arasındaki boşluk */
}

.edit-contract .form-section {
    width: 50%;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.edit-contract h2 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}
 /* Ana menü stili */
        .sidebar {
            height: 100vh;
            width: 250px;
            position: fixed;
            top: 0;
            left: 0;
           background-color: rgb(115 162 175 / 95%);
            padding-top: 60px; /* Menü içeriğine üstten boşluk */
            overflow-y: auto;
            transition: all 0.3s ease;
            transform: translateX(-100%);
            z-index: 1000;
        }
        .sidebar.show {
            transform: translateX(0);
        }
        .sidebar a {
            padding: 10px 20px;
            text-decoration: none;
            font-size: 18px;
            color: white;
            display: block;
        }
        .sidebar a:hover {
            background-color: #575757;
        }
        /* Menü ve geri düğmeleri */
        .menu-bar {
            position: fixed;
            top: 15px;
            left: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1100;
        }
        .menu-bar .menu-btn,
        .menu-bar .back-btn {
            font-size: 24px;
            color: #333;
            background: none;
            border: none;
            cursor: pointer;
			
        }
		.menu-bar .back-btn {
    font-size: 24px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}
        .menu-bar .back-btn {
 
            color: #333;
        }
        /* Mobil gizleme */
        @media (max-width: 768px) {
            .sidebar {
                width: 200px;
            }
        }
		
  /* Lightbox stilleri */
        .lightbox-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none; align-items: center; justify-content: center;
            z-index: 1000;
        }
        .lightbox-content {
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            width: 600px;
            position: relative;
        }
        .close-btn {
            position: absolute;
            top: 10px; right: 10px;
            font-size: 24px;
            cursor: pointer;
        }
		
		

        .search-form {
            margin-bottom: 20px;
            text-align: center;
        }

        .search-form label {
            font-weight: bold;
        }

        .search-form input {
            padding: 8px;
            width: 200px;
            margin-right: 10px;
        }

        .contract-container {
            display: block;
            
            max-width: 800px;
            margin: 20px auto; /* Alt alta sıralamak için her div'in altında boşluk bırakır */
            padding: 20px;
            background-color: #fff;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
        }

        .contract-header {
            font-weight: bold;
            font-size: 18px;
            color: #4CAF50;
            margin-bottom: 10px;
            text-align: center;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

        th, td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: left;
        }

        th {
            background-color: #f2f2f2;
            font-weight: bold;
        }

        .btn-primary {
            background-color: #007bff;
            color: white;
            padding: 5px 10px;
            text-decoration: none;
            border-radius: 3px;
        }

        .btn-primary:hover {
            background-color: #45a049;
        }

        .alert {
            color: red;
            text-align: center;
            margin-top: 20px;
            font-weight: bold;
        }