/* Başlangıçta hem ödeme hem de borç geçmişi gizlenecek */
.dsc-debt-history.dsc-hidden, .dsc-payment-history.dsc-hidden {
    display: none;
}

/* Toggle butonunun stili */
.dsc-toggle-btn-debt, .dsc-toggle-btn-payment {
    background-color: #0073aa; /* Mavi buton */
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dsc-toggle-btn-debt:hover, .dsc-toggle-btn-payment:hover {
    background-color: #005f8d; /* Hoverda koyu mavi */
}

/* Tablo stili */
.dsc-debt-history table, .dsc-payment-history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.dsc-debt-history th, .dsc-payment-history th, .dsc-debt-history td, .dsc-payment-history td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.dsc-debt-history th, .dsc-payment-history th {
    background-color: #f4f4f4;
}

.dsc-modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
}

/* Modal (Açılır pencere) */
.dsc-modal {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Yarı saydam siyah arka plan */
    animation: fadeIn 0.4s ease-out;
}

/* Modal içeriği */
.dsc-modal-content {
    background-color: #fff;
    border-radius: 12px; /* Yuvarlatılmış köşeler */
    padding: 30px;
    width: 100%;
    max-width: 450px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Hafif gölgeleme */
    animation: slideIn 0.5s ease-out;
}

/* Kapatma butonu */
.dsc-close-btn {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: all 0.3s ease;
}

/* Kapatma butonunun hover efekti */
.dsc-close-btn:hover {
    color: #f44336; /* Kırmızı renk */
    transform: scale(1.2);
}

/* Fade-in animasyonu */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Slide-in animasyonu */
@keyframes slideIn {
    0% {
        transform: translate(-50%, -60%);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

/* Modal içerik metni */
.dsc-modal-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

/* Yavaşça kapanacak animasyon */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.dsc-modal {
    /* Modal'ın genel görünümü */
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 100px;
    text-align: center;
}

.dsc-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.alert-icon {
    font-size: 50px;
    color: red;
    font-weight: bold;
    background-color: #fff5f0;
    border-radius: 50%;
    padding: 10px;
}
/* Badge styles */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25em;
}

.badge-success {
    background-color: #28a745 !important; /* Green */
    color: #fff !important; /* White text */
}

.badge-success:hover {
    background-color: #218838 !important; /* Darker green on hover */
    color: #fff !important; /* White text on hover */
    text-decoration: none;
}

.badge-warning {
    background-color: #ffc107 !important; /* Yellow */
    color: #212529 !important; /* Black text */
}

.badge-warning:hover {
    background-color: #e0e800 !important; /* Darker yellow */
    color: #212529 !important;
}

.badge-danger {
    background-color: #dc3545 !important; /* Red */
    color: #fff !important; /* White text */
}

.badge-danger:hover {
    background-color: #c82333 !important; /* Darker red */
    color: #fff !important;
}

.badge-secondary {
    background-color: #6c757d !important; /* Grey */
    color: #fff !important;
}

.badge-secondary:hover {
    background-color: #5a6268 !important; /* Darker grey */
    color: #fff !important;
}
/* Fazla Ödeme */
.badge-info {
    background-color: #17a2b8;
    color: #fff;
	padding: 5px 10px;
    border-radius: 3px;
}
/* Table styling */
.dsc-device-info table, .dsc-payment-history table, .dsc-debt-history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.dsc-device-info table th, td, .dsc-payment-history table th, td, .dsc-debt-history table th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.dsc-device-info table th, .dsc-payment-history table th, .dsc-debt-history table th {
    background-color: #f2f2f2;
}

/* Pagination */
.pagination {
    margin-top: 10px;
}

.pagination a {
    margin: 0 5px;
    text-decoration: none;
}