/*your custom css goes here*/

/* ========================================
   UNIVERSAL BADGE FIX - HIGHEST PRIORITY
   ======================================== */

/* Force all badges to use flex layout */
span.badge,
.badge,
a.badge,
span[class*="badge"],
.badge-warning,
.badge-success,
.badge-danger,
.badge-info,
.badge-primary,
.badge-secondary,
.badge-light,
.badge-dark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.35em 0.65em !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    border-radius: 0.25rem !important;
}

/* Badge colors with maximum specificity */
span.badge.badge-warning,
.badge.badge-warning,
span.badge-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
    border: none !important;
}

span.badge.badge-success,
.badge.badge-success,
span.badge-success {
    background-color: #28a745 !important;
    color: #ffffff !important;
    border: none !important;
}

span.badge.badge-danger,
.badge.badge-danger,
span.badge-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    border: none !important;
}

span.badge.badge-info,
.badge.badge-info,
span.badge-info {
    background-color: #17a2b8 !important;
    color: #ffffff !important;
    border: none !important;
}

span.badge.badge-primary,
.badge.badge-primary,
span.badge-primary {
    background-color: #007bff !important;
    color: #ffffff !important;
    border: none !important;
}

span.badge.badge-secondary,
.badge.badge-secondary,
span.badge-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border: none !important;
}

span.badge.badge-light,
.badge.badge-light,
span.badge-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}

span.badge.badge-dark,
.badge.badge-dark,
span.badge-dark {
    background-color: #343a40 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Icons inside badges */
.badge i,
.badge .las,
.badge .la,
.badge .fa,
.badge svg {
    color: inherit !important;
    margin-right: 0.25rem !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.badge i:last-child,
.badge .las:last-child,
.badge .la:last-child {
    margin-right: 0 !important;
}

/* Badge inline variant */
.badge-inline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.4em 0.75em !important;
    font-size: 0.875rem !important;
}

/* Badge sizes */
.badge-sm,
.badge.badge-sm {
    padding: 0.25em 0.5em !important;
    font-size: 0.75rem !important;
}

.badge-lg,
.badge.badge-lg,
.kyc-badge-lg {
    padding: 0.5em 1em !important;
    font-size: 1rem !important;
}

/* ========================================
   KYC PAGE SPECIFIC STYLES
   ======================================== */

/* Header badges container */
.kyc-header-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
}

@media (min-width: 768px) {
    .kyc-header-badges {
        justify-content: flex-end !important;
    }
}

/* User avatar */
.kyc-user-avatar {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
}

/* User info section */
.kyc-user-info {
    margin-bottom: 1rem !important;
}

.kyc-info-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.kyc-info-row:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.kyc-info-label {
    font-size: 14px !important;
    color: #6c757d !important;
    display: flex !important;
    align-items: center !important;
}

.kyc-info-label i {
    margin-right: 5px !important;
}

.kyc-info-value {
    font-size: 13px !important;
}

/* Document cards */
.kyc-document-card {
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    padding: 1rem !important;
    height: 100% !important;
    background: #f8f9fa !important;
}

.kyc-document-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 0.5rem !important;
}

.kyc-document-title {
    flex: 1 1 auto !important;
    margin-right: 0.5rem !important;
    min-width: 0 !important;
}

.kyc-document-title h6 {
    font-size: 15px !important;
    margin-bottom: 0.25rem !important;
}

.kyc-document-title small {
    font-size: 12px !important;
}

.kyc-document-badge {
    flex: 0 0 auto !important;
}

/* Empty states */
.kyc-empty-state {
    text-align: center !important;
    padding: 3rem 1rem !important;
}

.kyc-empty-state i {
    font-size: 48px !important;
    color: #ccc !important;
}

.kyc-empty-state-large {
    text-align: center !important;
    padding: 5rem 1rem !important;
}

.kyc-empty-state-large i {
    font-size: 64px !important;
    color: #ccc !important;
}

/* ========================================
   BUTTON FIXES
   ======================================== */

.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
    border-radius: 0.25rem !important;
    transition: all 0.2s ease !important;
}

.btn i,
.btn .las,
.btn .la {
    margin-right: 0.25rem !important;
}

.btn i:last-child,
.btn .las:last-child,
.btn .la:last-child {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

/* Button colors */
.btn-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: #218838 !important;
    border-color: #218838 !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

.btn-warning:hover {
    background-color: #e0a800 !important;
    border-color: #e0a800 !important;
}

.btn-soft-primary {
    background-color: rgba(0, 123, 255, 0.1) !important;
    color: #007bff !important;
    border: 1px solid rgba(0, 123, 255, 0.2) !important;
}

.btn-soft-primary:hover {
    background-color: rgba(0, 123, 255, 0.2) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 767px) {
    .kyc-badge-lg,
    .badge-lg {
        padding: 0.35em 0.75em !important;
        font-size: 0.875rem !important;
    }

    .kyc-user-avatar {
        width: 80px !important;
        height: 80px !important;
    }

    .kyc-info-label,
    .kyc-info-value {
        font-size: 12px !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.flex-grow-1 {
    flex: 1 1 auto !important;
}

.flex-shrink-0 {
    flex: 0 0 auto !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}


/* ========================================
   NOTIFICATION BADGE FIX
   ======================================== */

/* Notification count badge */
.badge-circle {
    min-width: 18px !important;
    min-height: 18px !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
}

/* Single digit - make it circular */
.badge-circle:not(:empty) {
    min-width: 18px !important;
}

/* Two or more digits - make it pill-shaped */
.badge-circle:not(:empty):not([data-count="1"]):not([data-count="2"]):not([data-count="3"]):not([data-count="4"]):not([data-count="5"]):not([data-count="6"]):not([data-count="7"]):not([data-count="8"]):not([data-count="9"]) {
    border-radius: 10px !important;
    padding: 2px 6px !important;
}

/* Position for notification badge */
.position-absolute.absolute-top-right {
    top: -6px !important;
    right: -6px !important;
    z-index: 10 !important;
}

/* Notification icon container */
.position-relative {
    position: relative !important;
}

/* Ensure notification badge is always visible */
.badge-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Make sure text is visible in notification badge */
.badge-circle.badge-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3) !important;
}


/* ========================================
   PROFILE DROPDOWN FIX
   ======================================== */

/* Ensure profile dropdown is visible */
.hover-user-top-menu {
    display: none !important;
    z-index: 9999 !important;
    pointer-events: none !important;
}

.hover-user-top-menu.active {
    display: block !important;
    pointer-events: auto !important;
}

/* Make sure the dropdown menu itself is clickable */
.aiz-user-top-menu {
    pointer-events: auto !important;
    z-index: 10000 !important;
}

/* Ensure nav-user-info is clickable */
#nav-user-info {
    cursor: pointer !important;
    position: relative !important;
    z-index: 1000 !important;
}

/* Fix positioning */
.hover-user-top-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
}
