/**
 * Membership Custom Styles
 */

/*  Title */
.elementor-heading-title.elementor-size-default {
  font-size: 2.0rem !important;
  font-weight: 600;
}

/* Colors for status badges */
.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

.badge.bg-secondary {
    background-color: #166534 !important;
}

/* Member profile section styling */
.member-profile {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
    padding: 1.25rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

/* Tab styling */
#memberDetailsTabs .nav-link {
    color: #495057;
    font-weight: 500;
}

#memberDetailsTabs .nav-link.active {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

#memberDetailsTabs .nav-link:hover:not(.active) {
    background-color: rgba(13, 110, 253, 0.05);
    border-color: #e9ecef #e9ecef #dee2e6;
}

.row.mb-4 {
  margin-bottom: 2em !important;
}

.card.border-0.shadow-sm.mb-4 {
  margin-bottom: 2em !important;
}

.btn.btn-primary.btn-sm.add-member-btn {
  background-color: gold !important;
  color: black;
}

/* Card styling */
.card.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    background-color: #f7f3df;
}

div.border-0:nth-child(2) > div:nth-child(2) {
  background-color: #f7f3df !important;
}

.elementor-shortcode > div:nth-child(1) > div:nth-child(2) {
    background-color: #f7f3df !important;
}

.card-header.bg-white.d-flex.justify-content-between.align-items-center.py-3 {
  background-color: #166534 !important;
}

.card-title.mb-0 {
  color: white;
}

.card-header {
  background-color: #166534 !important;
}

.card-body {
  padding:
2em !important;
}

#add-member-form-page > div {
  margin-bottom: 2em;
}

.mb-0 {
  color: white;
  font-size: 1.2rem !important;
}

#add-member-form-page > div:nth-child(1) > div > div > div:nth-child(2), #add-member-form-page > div:nth-child(2) > div > div:nth-child(1) > div:nth-child(2), div.card:nth-child(2) > div:nth-child(2) {
  background-color: #e8e6e6;
}

.card-header.bg-light {
    background-color: #334038 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Table styling */
#members-table thead th {
    font-weight: 600;
    white-space: nowrap;
}

#potongan-table th {
    font-weight: 600;
    white-space: nowrap;
}

/* Highlight for numbers in red if negative */
.text-danger {
    color: #dc3545 !important;
}

/* Right-align number columns in potongan table */
#potongan-table td:nth-child(2),
#potongan-table td:nth-child(3),
#potongan-table td:nth-child(4),
#potongan-table td:nth-child(5),
#potongan-table td:nth-child(6),
#potongan-table td:nth-child(7),
#potongan-table td:nth-child(8) {
    text-align: right;
}

/* Dashboard stat cards */
.bg-primary-100 {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-success-100 {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-warning-100 {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-info-100 {
    background-color: rgba(13, 202, 240, 0.1);
}

.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.pagination {
  margin: 20px 0 !important;
}

#members-table_length {
  margin: 20px 0;
}

#members-table_filter {
  margin:
20px 0;
}

/* Members stat cards */
div.col-xl-3:nth-child(1) > div:nth-child(1), div.col-xl-3:nth-child(2) > div:nth-child(1), div.col-xl-3:nth-child(3) > div:nth-child(1), div.col-xl-3:nth-child(4) > div:nth-child(1) {
  background-color: #000;
  background-image: linear-gradient(155deg,#3a3c2d 0%,#357717 100%);
}

.text-muted.mb-0.text-center {
  color: white !important;
}

.mt-3.text-center {
  color: gold;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    #memberDetailsTabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .modal-xl {
        margin: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    #potongan-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Button hover effects */
.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

/* Modal styling */
.modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  background-color: #166534 !important;
  padding: 1rem 1.5rem;
}

#editMemberModalLabel {
  margin:
0;
  font-size: 1.5rem !important;
  font-weight: 600;
  color: #fff;
}

#edit-member-form {
  background-color: #f7f3df;
}

.btn.btn-primary, .btn.btn-secondary {
  background-color: #166534 !important;
  color: white;
}

.mt-4.mb-3.border-bottom.pb-2 {
  border-bottom:
2px solid #166534 !important;
}

.form-label {
  font-weight: 700;
  color: #374151;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* Form styling */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Adding a subtle hover highlight for table rows */
#members-table tbody tr:hover,
#potongan-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Loading spinner */
.spinner-border.text-primary {
    color: #0d6efd !important;
}

/* Helper classes */
.fw-semibold {
    font-weight: 600 !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.fs-6 {
    font-size: 1rem !important;
}

.fw-bold {
    font-weight: 700 !important;
}