/* Genel stil ayarları */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* Başlık stilleri */
h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

h2 {
    font-size: 18px;
    margin-top: 20px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Buton stilleri */
.submit-button {
    background-color: #fd4056;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top:0.6rem;
}

.submit-button:hover {
    background-color: #e63946;
}

/* Tablo stilleri */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.user-table th {
    background-color: #f2f2f2;
}

/* Back link stilleri */
.back-link {
    margin-top: 20px;
}

.back-link a {
    color: #fd4056;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Mobil uyumluluk */
@media (max-width: 600px) {
    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }

    .submit-button {
        width: 100%;
        font-size: 14px;
    }

    .user-table th,
    .user-table td {
        font-size: 14px;
    }
}

.user-table {
    width: 100%; /* Tablo genişliğini %100 yaparak tüm alanı kaplamasını sağlar */
}

.user-table td {
    text-align: center; /* Tüm hücrelerin içeriğini ortalar */
    vertical-align: middle; /* Dikey ortalama sağlar */
}

.status-circle {
    display: inline-block; /* Eş zamanlı olarak boyutlandırmak için */
    width: 20px; /* Daire boyutu */
    height: 20px; /* Daire boyutu */
    border-radius: 50%; /* Daire şeklini vermek için */
}
button {
    background-color: #fd4056; /* Buton rengi */
    color: white; /* Yazı rengi */
    border: none; /* Kenarlık kaldır */
    border-radius: 5px; /* Köşe yuvarlama */
    padding: 10px 15px; /* İç boşluk */
    cursor: pointer; /* Fareyle üzerine gelince göster */
    transition: background-color 0.3s, transform 0.3s; /* Geçiş efekti */
    font-size: 12px; /* Yazı boyutu */
}
.btnEdit{
        background-color: #007bff; /* Üzerine gelince renk değişimi */
}

button:hover {
    background-color: #e63946; /* Üzerine gelince renk değişimi */
    transform: scale(1.05); /* Üzerine gelince büyüme efekti */
}
.btnEdit:hover{
        background-color: #0066d3; /* Üzerine gelince renk değişimi */
}


button:active {
    transform: scale(0.95); /* Tıklanınca küçülme efekti */
}

.button-container {
    display: flex; /* Butonları yan yana dizmek için */
    gap: 10px; /* Butonlar arasındaki boşluk */
}


#mainButton{
     position: fixed;
    top: 10px;
    left: 10px;
    background: #007bff!important;

}


    select {
        padding: 10px;
        font-size: 1em;
        border-radius: 5px;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        color: #333;
        transition: border-color 0.3s ease;
    }

    select:focus {
        border-color: #007bff;
        outline: none;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);}

.user-table {
    width: 100%; /* Tablonun genişliği tam olsun */
    border-collapse: collapse;
    table-layout: fixed; /* Sabit genişlik ayarı */
}

.user-table th, .user-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap; /* Sütunlar birbirine girmesin */
    overflow: hidden;
    text-overflow: ellipsis; /* Uzun metinleri "..." şeklinde göster */
}

/* Kolon genişlikleri için özel ayarlamalar */
.user-table th:nth-child(1),
.user-table td:nth-child(1) {
    width: 50px; /* ID kolonuna sabit genişlik */
}

.user-table th:nth-child(2),
.user-table td:nth-child(2) {
    width: 50px; /* Durum kolonu */
}

.user-table th:nth-child(4),
.user-table td:nth-child(4) {
    width: 50px; /* Şifre kolonu */
}
.user-table th:nth-child(8),
.user-table td:nth-child(8){
    width:100px;

}

.user-table th:nth-child(10),
.user-table td:nth-child(10){
    width:100px;
}
.user-table th:nth-child(11),
.user-table td:nth-child(11),
.user-table th:nth-child(12),
.user-table td:nth-child(12) {
    width: 300px;
}




/* Sütun kenarlarına genişletme çubuğu ekleyin */
.user-table th {
    position: relative;
}

.user-table th .resizer {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px; /* Sürükleme çubuğunun genişliği */
    cursor: col-resize;
    user-select: none;
    height: 100%;
    background-color: #ccc;
}
.purchase-table th:nth-child(5),
.purchase-table td:nth-child(5),
.purchase-table th:nth-child(6),
.purchase-table td:nth-child(6) {
    width: 15px;
}
