/* Custom styles for Khatabook-like experience */

.customer-list-item.active {
    background-color: #f0f7ff;
    border-left: 4px solid #0d6efd;
}

.details-panel {
    border-left: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.btn-report {
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-weight: 500;
}

.btn-settings {
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.reminder-btn {
    border: 1px solid #e5e7eb;
    background-color: white;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s;
}

.reminder-btn:hover {
    background-color: #f3f4f6;
}

.transaction-row {
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.you-gave-text {
    color: #ef4444;
}

.you-got-text {
    color: #10b981;
}

.bottom-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px;
    border-top: 1px solid #e5e7eb;
}

.drawer {
    width: 400px;
}

.dataTables_wrapper .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar styles are scoped inside sidebar.php component */

.main-content {
    padding: 20px;
}

.you-gave {
    color: #dc3545;
}

.you-got {
    color: #198754;
}

/* Badges for pills like SALE, ONLINE, CASH */
.badge-sale {
    background-color: #f3e8ff;
    color: #9333ea;
}

.badge-sale-return {
    background-color: #ffe4e6;
    color: #e11d48;
}

.badge-payment-in {
    background-color: #dcfce7;
    color: #16a34a;
}

.badge-online {
    background-color: #f1f5f9;
    color: #64748b;
}

.badge-cash {
    background-color: #fef3c7;
    color: #d97706;
}

/* Profile Completion & Modal Styling */
.profile-completion-card {
    transition: all 0.2s ease;
}

.profile-completion-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

#profileModal .modal-content {
    border-radius: 20px;
}

#profileModal .form-label {
    font-size: 0.85rem;
    font-weight: 600;
}

#profileModal .form-control,
#profileModal .form-select {
    border-color: #e5e7eb;
    background-color: #f9fafb;
    padding: 0.6rem 1rem;
}

#profileModal .form-control:focus,
#profileModal .form-select:focus {
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

#profileModal .form-check-input {
    cursor: pointer;
}

#profileModal .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#profileModal .btn-danger {
    transition: all 0.2s;
}

#profileModal .btn-danger:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Modern Input Styling */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.08);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #e5e7eb;
}

.x-small {
    font-size: 0.75rem;
}

.uppercase {
    text-transform: uppercase;
}

.party-profile-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.party-profile-item i {
    color: #9ca3af;
    margin-right: 15px;
    margin-top: 3px;
}

.party-profile-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 2px;
}

.party-profile-value {
    font-weight: 500;
    color: #111827;
}