@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Üstten başlasın */
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 960px; /* Geniş ekranlar için max genişlik */
    margin-top: 20px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

h1, h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-3xl {
    font-size: 2.25rem; /* 36px */
    line-height: 2.5rem; /* 40px */
}

.text-2xl {
    font-size: 1.5rem; /* 24px */
    line-height: 2rem; /* 32px */
}

.text-lg {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem; /* 28px */
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.mt-6 {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Padding ve border genişliğe dahil */
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6; /* Tailwind blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-primary {
    background-color: #3b82f6; /* Tailwind blue-500 */
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2563eb; /* Tailwind blue-600 */
    transform: translateY(-1px);
}

.btn-success {
    background-color: #22c55e; /* Tailwind green-500 */
    color: #ffffff;
}

.btn-success:hover {
    background-color: #16a34a; /* Tailwind green-600 */
    transform: translateY(-1px);
}

.btn-warning {
    background-color: #f59e0b; /* Tailwind amber-500 */
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #d97706; /* Tailwind amber-600 */
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #ef4444; /* Tailwind red-500 */
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626; /* Tailwind red-600 */
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6b7280; /* Tailwind gray-500 */
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #4b5563; /* Tailwind gray-600 */
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 0.8rem;
    font-size: 0.875rem; /* 14px */
    border-radius: 6px;
}

.w-full {
    width: 100%;
}

.error-message {
    background-color: #fee2e2; /* Tailwind red-100 */
    color: #ef4444; /* Tailwind red-500 */
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    text-align: center;
    border: 1px solid #fca5a5; /* Tailwind red-300 */
}

.success-message {
    background-color: #dcfce7; /* Tailwind green-100 */
    color: #22c55e; /* Tailwind green-500 */
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    text-align: center;
    border: 1px solid #86efac; /* Tailwind green-300 */
}

/* Table styles */
.table-responsive {
    overflow-x: auto; /* Küçük ekranlarda yatay kaydırma */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb; /* Tailwind gray-200 */
}

table th {
    background-color: #f9fafb; /* Tailwind gray-50 */
    font-weight: 600;
    color: #374151; /* Tailwind gray-700 */
    text-transform: uppercase;
    font-size: 0.875rem;
}

table tbody tr:hover {
    background-color: #f3f4f6; /* Tailwind gray-100 */
}

.odendi-satir {
    background-color: #eff6ff; /* Tailwind blue-50 */
    color: #6b7280; /* Tailwind gray-500 */
}

.odendi-satir td {
    text-decoration: line-through;
}

.actions {
    display: flex;
    gap: 8px; /* Butonlar arası boşluk */
    flex-wrap: wrap; /* Küçük ekranlarda alt alta geçsin */
}

.text-red-500 {
    color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
    }
    .container {
        padding: 20px;
        margin-top: 10px;
    }
    h1 {
        font-size: 1.75rem; /* 28px */
    }
    h2 {
        font-size: 1.25rem; /* 20px */
    }
    table th, table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .actions {
        flex-direction: column; /* Küçük ekranlarda butonları alt alta yığ */
        gap: 5px;
    }
    .btn-sm {
        width: 100%; /* Küçük butonlar tam genişlikte olsun */
    }
}

@media (max-width: 480px) {
    .container {
        border-radius: 0; /* Çok küçük ekranlarda köşeleri kaldırma */
        padding: 15px;
    }
}

/* Borçlu listesindeki linklerin stilini sıfırlamak için */
#debt-list-body a {
    color: inherit; /* Rengi, bulunduğu hücrenin normal yazı rengiyle aynı yapar */
    text-decoration: none; /* Altındaki çizgiyi kaldırır */
}

/* Fare üzerine gelince altını çizerek link olduğunu belli et */
#debt-list-body a:hover {
    text-decoration: underline;
}