/* CSS extracted from /var/www/html/members/index.php */

/* Utility classes for inline style replacements */
.text-left-important {
    text-align: left !important;
}

.min-width-0 {
    min-width: 0;
}

.progress-thin {
    height: 6px;
}

.icon-small {
    width: 18px;
    height: 18px;
}

.icon-small-text {
    font-size: 8px;
}

.icon-small-cover {
    width: 18px;
    height: 18px;
    object-fit: cover;
}

.text-break-word {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive navbar behavior - only show toggle on larger screens */
@media (max-width: 1199px) {
    .navbar-vertical-toggle {
        display: none !important;
    }
}

/* Profile completion panel responsive fixes */
@media (max-width: 767.98px) {
    /* Ensure profile completion panel stacks properly on mobile */
    .card.bg-primary-subtle .card-body {
        padding: 1rem;
    }
    
    .card.bg-primary-subtle .d-flex {
        flex-wrap: wrap;
    }
    
    /* Make button full width on mobile */
    .card.bg-primary-subtle .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Ensure content doesn't overflow */
    .card.bg-primary-subtle .flex-grow-1 {
        min-width: 0;
        width: 100%;
    }
    
    /* Adjust avatar spacing on mobile */
    .card.bg-primary-subtle .avatar {
        margin-bottom: 1rem;
    }
    
    /* Stack the feature lists on very small screens */
    .card.bg-primary-subtle .row .col-md-6 {
        margin-bottom: 0.5rem;
    }
}

/* Prevent horizontal overflow on all screen sizes */
.card-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Ensure buttons don't overflow on mobile */
@media (max-width: 575.98px) {
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* CSS extracted from /var/www/html/members/account/profile-edit.php */

.profile-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-section {
    background: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
    width: 100%;
}

.form-section-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0.375rem 0.375rem 0 0;
}

.form-section-body {
    padding: 1rem;
}

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

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.form-control {
    border: 1px solid #d1d7e0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
}

.form-control:focus {
    border-color: #5e6ad2;
    box-shadow: 0 0 0 0.2rem rgba(94, 106, 210, 0.25);
}

.form-control:read-only {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #d1d7e0;
    color: #6c757d;
}

.alert {
    border-radius: 0.375rem;
    border: none;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.role-badge.admin {
    background-color: #dc3545;
    color: white;
}

.role-badge.member {
    background-color: #28a745;
    color: white;
}

.role-badge.public {
    background-color: #ffc107;
    color: #212529;
}

.role-badge i {
    margin-right: 0.375rem;
}

.terms-accepted-message {
    color: #28a745;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background-color: #d4edda;
    border-radius: 0.375rem;
    border: 1px solid #c3e6cb;
    font-size: 0.875rem;
}

.validation-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Mobile responsive styles */
.show-desktop {
    display: none;
}

.show-mobile {
    display: block;
}

/* Show desktop table only on larger screens */
@media (min-width: 768px) {
    .show-desktop {
        display: block;
    }
    
    .show-desktop.table-responsive {
        display: block;
    }
    
    .show-mobile {
        display: none !important;
    }
}

/* Credit balance card enhancements */
.credit-balance-card {
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.credit-balance-card:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    transform: translateY(-2px);
}

.credit-balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Compact layout improvements */
.compact-row {
    margin-bottom: 0.5rem;
}

.compact-form-group {
    margin-bottom: 0.75rem;
}

.compact-section {
    margin-bottom: 0.75rem;
}

.compact-header {
    padding: 0.5rem 0.75rem;
}

.compact-body {
    padding: 0.75rem;
}

.compact-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.compact-alert {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 767.98px) {
    /* Mobile-first approach - force mobile cards to show */
    .show-mobile {
        display: block !important;
    }
    
    /* Force desktop table to be hidden on mobile */
    .show-desktop {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-section-body {
        padding: 0.75rem;
    }
    
    .form-section-header {
        padding: 0.5rem 0.75rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.375rem;
    }
    
    /* Exclude top navbar so it stays single line */
    .d-flex.justify-content-between:not(.navbar-top) {
        flex-direction: column;
    }
    
    .d-flex.justify-content-between .btn {
        margin-bottom: 0.375rem;
    }
    
    .d-flex.justify-content-between .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .form-section-body {
        padding: 0.5rem;
    }
    
    .form-section-header {
        padding: 0.375rem 0.5rem;
    }
    
    .form-control {
        padding: 0.375rem 0.5rem;
    }
    
    .compact-body {
        padding: 0.5rem;
    }
    
    .compact-header {
        padding: 0.375rem 0.5rem;
    }
}

/* Postcode Lookup Styles */
#postcode_lookup_btn {
    border-left: none;
    transition: all 0.2s ease;
}

#postcode_lookup_btn:hover:not(:disabled) {
    background-color: #5e6ad2;
    color: white;
    border-color: #5e6ad2;
}

#postcode_lookup_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#postcode_feedback {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

#postcode_feedback.text-success {
    color: #198754 !important;
}

#postcode_feedback.text-danger {
    color: #dc3545 !important;
}

#postcode_feedback.text-info {
    color: #0dcaf0 !important;
}

#postcode_feedback.text-warning {
    color: #ffc107 !important;
}

.input-group .form-control:focus {
    z-index: 3;
}

.input-group .btn {
    z-index: 2;
}

/* Address Autocomplete Styles */
#address_autocomplete_feedback {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

#address_autocomplete_feedback.text-success {
    color: #198754 !important;
}

#address_autocomplete_feedback.text-danger {
    color: #dc3545 !important;
}

#address_autocomplete_feedback.text-info {
    color: #0dcaf0 !important;
}

#address_autocomplete_feedback.text-warning {
    color: #ffc107 !important;
}

/* getAddress.io autocomplete dropdown styling */
.getaddress-autocomplete-suggestions {
    z-index: 1050 !important;
    max-height: 300px;
    overflow-y: auto;
}

.getaddress-autocomplete-suggestion {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
}

.getaddress-autocomplete-suggestion:hover,
.getaddress-autocomplete-suggestion.selected {
    background-color: #f8f9fa;
}

/* CSS extracted from /var/www/html/members/account/activate.php */

.bg-auth-card-shape-image {
    background-image: url(../../assets/img/icons/spot-illustrations/half-circle.png);
}

/* CSS extracted from /var/www/html/members/account/change-password.php */

.password-form {
    max-width: 600px;
    margin: 0 auto;
}

.btn-primary {
    background-color: #5e6ad2;
    border-color: #5e6ad2;
}

.btn-primary:hover {
    background-color: #4f5bb3;
    border-color: #4f5bb3;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.password-strength-meter {
    margin-top: 0.5rem;
}

.progress {
    height: 6px;
    border-radius: 3px;
}

.progress-bar {
    transition: width 0.3s ease;
    width: 0%;
}

/* CSS extracted from /var/www/html/members/account/email-sent-notification.php */

.icon-large {
    font-size: 4rem;
}

/* CSS extracted from /var/www/html/members/account/login.php */

.login-form .input-group-text {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}

.login-form .form-control:focus + .input-group-text {
    border-color: #4e7dd9;
    background-color: rgba(78, 125, 217, 0.05);
}

.version-text {
    color: #fff;
    font-weight: bold;
}

/* CSS extracted from /var/www/html/members/account/logout.php */

.btn-reset-text {
    font-size: 12px;
}

.settings-toggle-icon {
    height: 34px;
    width: 28px;
}

/* CSS extracted from /var/www/html/members/account/my-activity.php */

.activity-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: #fff;
    transition: all 0.2s ease;
}

.activity-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.activity-financial {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.activity-profile {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.activity-registration {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.activity-system {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
}

.activity-other {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    color: #616161;
}

.activity-user-friendly {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 2px solid #4caf50 !important;
}

.activity-user-friendly:hover {
    border-color: #388e3c !important;
    box-shadow: 0 4px 12px rgba(76,175,80,0.2) !important;
}

.activity-description {
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.activity-details {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.3;
}

.activity-details-small {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.activity-timestamp {
    font-size: 0.8rem;
    color: #6c757d;
}

.activity-amount {
    font-weight: 600;
    font-size: 0.9rem;
}

.amount-positive {
    color: #28a745;
}

.amount-negative {
    color: #dc3545;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-processing {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.activity-meta {
    font-size: 0.75rem;
    color: #868e96;
    margin-top: 0.25rem;
}

.activity-grouped {
    border-left: 3px solid #007bff;
    background: linear-gradient(90deg, rgba(0,123,255,0.05) 0%, rgba(255,255,255,1) 100%);
}

.activity-grouped:hover {
    border-left-color: #0056b3;
    background: linear-gradient(90deg, rgba(0,123,255,0.08) 0%, rgba(255,255,255,1) 100%);
}

.grouped-indicator {
    display: inline-block;
    background: #007bff;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
}

/* CSS migrated from /var/www/html/assets/css/login.css */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-card {
    width: 100%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
}

.auth-brand-section {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-form-section {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.brand-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Form styling */
.auth-form-section .form-control {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.auth-form-section .form-control:focus {
    border-color: #4e7dd9;
    box-shadow: 0 0 0 0.2rem rgba(78, 125, 217, 0.15);
}

.auth-form-section .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.95rem;
}

.auth-form-section .btn-primary {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #4e7dd9 0%, #3b82f6 100%);
    border: none;
}

.auth-form-section .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 125, 217, 0.3);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Enhanced decorative elements */
.bg-auth-circle-shape {
    position: absolute;
    top: -50px;
    left: -50px;
    opacity: 0.15;
    z-index: 1;
}

.bg-auth-circle-shape-2 {
    position: absolute;
    bottom: -30px;
    right: -30px;
    opacity: 0.15;
    z-index: 1;
}

/* Alert styling */
.auth-form-section .alert {
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: none;
    font-size: 0.95rem;
}

.auth-form-section .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #842029;
}

/* Form check styling */
.auth-form-section .form-check-input:checked {
    background-color: #4e7dd9;
    border-color: #4e7dd9;
}

.auth-form-section .form-check-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Link styling */
.auth-link {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Text utilities */
.auth-form-section .small {
    font-size: 0.875rem;
}

/* Loading state */
.auth-form-section .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
    .auth-container {
        padding: 0.5rem;
    }
    
    .auth-card {
        border-radius: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .auth-brand-section {
        min-height: 200px;
        padding: 1.5rem;
    }
    
    .auth-form-section {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .brand-logo {
        max-width: 140px;
    }
    
    .bg-auth-circle-shape,
    .bg-auth-circle-shape-2 {
        display: none;
    }
    
    .auth-form-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .auth-form-section .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .auth-form-section .btn-primary {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .auth-form-section .fs-5 {
        font-size: 1.1rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .auth-form-section {
        padding: 2rem;
    }
    
    .brand-logo {
        max-width: 170px;
    }
}

@media (min-width: 992px) {
    .auth-form-section {
        padding: 3rem;
    }
    
    .brand-logo {
        max-width: 200px;
    }
}

/* CSS extracted from /var/www/html/members/account/my-awards.php */

.award-card {
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card {
    border-left: 4px solid;
}

.recipient-badge {
    font-size: 0.75rem;
}

.award-icon-rosette {
    color: #17a2b8;
}

.award-icon-progression {
    color: #28a745;
}

.award-icon-special {
    color: #ffc107;
}

.award-icon-default {
    color: #6c757d;
}

/* CSS extracted from /var/www/html/members/account/my-transactions.php */

.transaction-description {
    font-weight: 500;
    line-height: 1.4;
}

.collapse .card-body {
    font-size: 0.875rem;
}

.collapse .card-body strong {
    color: #495057;
    font-weight: 600;
}

.collapse .card-body code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.collapse .card-body ul {
    padding-left: 1rem;
}

.collapse .card-body ul li {
    margin-bottom: 0.25rem;
}

.transaction-details-link {
    font-size: 0.8rem;
}

.transaction-details-link:hover {
    color: #0d6efd !important;
}

.transaction-details-link i {
    opacity: 0.7;
}

/* Transaction grouping styles */
.transaction-group {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.transaction-group-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.transaction-group-payment {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.transaction-group-credit {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.transaction-group-credit-payment {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-left: 4px solid #4caf50;
}

.transaction-group-voucher-payment {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.transaction-group-refund {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.transaction-group-items {
    background: #fff;
}

.transaction-item {
    padding: 8px 16px;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background-color: #f8f9fa;
}

.transaction-item-icon {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.transaction-item-description {
    flex: 1;
    font-size: 0.9rem;
}

.transaction-item-timestamp {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 12px;
}

.payment-amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.group-summary {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 8px;
}

.standalone-transaction {
    margin-bottom: 0.5rem;
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
}

/* Payment type indicators */
.payment-type-indicator {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.payment-type-credit {
    background-color: #4caf50;
    color: white;
}

.payment-type-voucher {
    background-color: #ff9800;
    color: white;
}

.payment-type-cash {
    background-color: #2196f3;
    color: white;
}

/* CSS extracted from /var/www/html/members/account/password-reset.php */

/* Password match indicator styles */
.password-match-indicator {
    background-color: #f8f9fa;
    border-left: 3px solid #dee2e6;
    transition: all 0.3s ease;
    min-width: 45px;
}

.password-match-indicator.matching {
    background-color: #d4edda;
    border-left-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.password-match-indicator.not-matching {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.password-match-indicator i {
    font-size: 16px;
}

.auth-form-section .form-control.matching {
    border-color: #28a745;
    border-width: 2px;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.3);
}

.auth-form-section .form-control.not-matching {
    border-color: #dc3545;
    border-width: 2px;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.3);
}

.confirm-password-container {
    transition: all 0.3s ease;
    overflow: hidden;
}

.confirm-password-container.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional styles for password reset form */
.password-reset-form .input-group-text {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.password-reset-form .form-control:focus + .input-group-text {
    border-color: #4e7dd9;
    background-color: rgba(78, 125, 217, 0.05);
}

/* Make input boxes smaller */
.password-reset-form .auth-form-section .form-control {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    height: calc(1.5em + 0.75rem + 2px);
}

.password-reset-form .auth-form-section .input-group {
    font-size: 0.875rem;
}

/* Password requirements checklist styles */
.password-requirements {
    background-color: rgba(233, 236, 239, 0.95);
    border: 2px solid rgba(206, 212, 218, 0.8);
    border-radius: 6px;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.password-requirements > small {
    font-size: 11px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
}

.password-requirements-list {
    margin: 0;
    padding: 0;
}

.password-requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 500;
    color: #721c24;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 3px;
    border: 1.5px solid rgba(220, 53, 69, 0.4);
    background-color: rgba(248, 215, 218, 0.5);
}

.password-requirement:last-child {
    margin-bottom: 0;
}

.password-requirement .requirement-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #dc3545;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 10px;
    color: #ffffff;
    border: 1.5px solid #c82333;
}

.password-requirement.valid {
    color: #155724;
    background-color: rgba(212, 237, 218, 0.7);
    border-color: rgba(40, 167, 69, 0.6);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.4);
}

.password-requirement.valid .requirement-icon {
    background-color: #28a745;
    color: #ffffff;
    border-color: #218838;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.4);
    transform: scale(1.05);
    font-size: 11px;
}

.password-requirement:not(.valid) .requirement-icon {
    font-size: 10px;
}

.password-requirement:not(.valid):hover {
    background-color: rgba(245, 198, 203, 0.7);
    border-color: rgba(220, 53, 69, 0.6);
}

/* Make requirements visible on small screens */
@media (max-width: 767.98px) {
    .password-requirements {
        margin-top: 1rem !important;
        margin-bottom: 1rem;
    }
}

/* Align brand section content to top */
.password-reset-page .auth-brand-section {
    justify-content: flex-start !important;
    align-items: center;
    padding-top: 2rem;
}

.password-reset-page .auth-brand-section .position-relative.z-1 {
    width: 100%;
}

/* CSS extracted from /var/www/html/members/account/reset-password.php */

/* Password requirements checklist styles for dark background (auth-brand-section) */
.auth-brand-section .password-requirements {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.auth-brand-section .password-requirements > small {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
}

.auth-brand-section .password-requirements-list {
    margin: 0;
    padding: 0;
}

.auth-brand-section .password-requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 3px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(220, 53, 69, 0.2);
}

.auth-brand-section .password-requirement:last-child {
    margin-bottom: 0;
}

.auth-brand-section .password-requirement .requirement-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #dc3545;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 10px;
    color: #ffffff;
    border: 1.5px solid #c82333;
}

.auth-brand-section .password-requirement.valid {
    color: #ffffff;
    background-color: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.6);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.4);
}

.auth-brand-section .password-requirement.valid .requirement-icon {
    background-color: #28a745;
    color: #ffffff;
    border-color: #218838;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.4);
    transform: scale(1.05);
    font-size: 11px;
}

.auth-brand-section .password-requirement:not(.valid) .requirement-icon {
    font-size: 10px;
}

.auth-brand-section .password-requirement:not(.valid):hover {
    background-color: rgba(220, 53, 69, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Make requirements visible on small screens */
@media (max-width: 767.98px) {
    .auth-brand-section .password-requirements {
        margin-top: 1rem !important;
        margin-bottom: 1rem;
    }
}

/* Form control matching states - scoped to auth-form-section */
.auth-form-section .form-control.matching {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.auth-form-section .form-control.not-matching {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.confirm-password-container {
    transition: all 0.3s ease;
    overflow: hidden;
}

.confirm-password-container.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input group styling for reset password form */
.reset-password-form .input-group-text {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}

.reset-password-form .form-control:focus + .input-group-text {
    border-color: #4e7dd9;
    background-color: rgba(78, 125, 217, 0.05);
}

/* Icon size utilities */
.icon-medium {
    font-size: 3rem;
}

/* CSS extracted from /var/www/html/members/admin/account-add-admin.php */

.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background-color: #dc3545;
    width: 25%;
}

.password-strength.fair {
    background-color: #ffc107;
    width: 50%;
}

.password-strength.good {
    background-color: #17a2b8;
    width: 75%;
}

.password-strength.strong {
    background-color: #28a745;
    width: 100%;
}

/* CSS extracted from /var/www/html/members/admin/account-dashboard-admin.php */

/* Stat card variants with gradient backgrounds */
.stat-card {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.stat-card-secondary {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-card-success {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-card-warning {
    background: linear-gradient(45deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.stat-card-danger {
    background: linear-gradient(45deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.stat-card-info {
    background: linear-gradient(45deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
}

/* Table styling */
.table th {
    white-space: nowrap;
    font-size: 0.875rem;
}

.table td {
    vertical-align: middle;
    font-size: 0.875rem;
}

/* Badge styling */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* CSS extracted from /var/www/html/members/admin/account-delete-admin.php */

/* Impact card variants with gradient backgrounds */
.impact-card {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.impact-card.warning {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    color: #2c3e50;
}

.impact-card.info {
    background: linear-gradient(45deg, #48dbfb, #0abde3);
    color: white;
}

.impact-card.success {
    background: linear-gradient(45deg, #1dd1a1, #10ac84);
    color: white;
}

/* CSS extracted from /var/www/html/members/admin/account-list-admin.php */

/* Account list table styling - more compact than general table styles */
.account-list-table th {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem;
}

.account-list-table td {
    vertical-align: middle;
    font-size: 0.85rem;
    padding: 0.5rem;
}

/* Compact dropdown button */
.account-list-page .dropdown .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* Mobile card improvements */
.account-card {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.account-card-header {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-details-mobile {
    padding: 0.75rem;
}

.account-actions-mobile {
    padding: 0 0.75rem 0.75rem 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.375rem;
    font-size: 0.8rem;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
}

.detail-value {
    color: #495057;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .table-desktop {
        display: none !important;
    }
    
    .cards-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .table-desktop {
        display: block !important;
    }
    
    .cards-mobile {
        display: none !important;
    }
}

/* Ensure action buttons are always visible */
.account-actions-mobile .btn,
.table-desktop .btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure mobile action buttons container is always visible */
.cards-mobile .account-actions-mobile {
    display: block !important;
    visibility: visible !important;
}

/* Action buttons - account list specific */
.account-list-page .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Table layout */
.table-desktop .table {
    width: 100%;
    margin-bottom: 0;
}

/* Keep action buttons on one line */
.account-list-table td:last-child {
    white-space: nowrap;
}

/* Content area spacing */
.account-list-page .card.mb-4,
.account-list-page .card-body,
.account-list-page .content {
    overflow: visible !important;
}

/* Mobile card elements */
.account-title-mobile {
    font-size: 1rem;
    font-weight: 600;
}

.account-name-mobile {
    font-size: 0.85rem;
    color: #6c757d;
}

.account-email-mobile {
    font-size: 0.75rem;
}

/* Status badge in mobile */
.status-badge {
    font-size: 0.8rem;
}

/* Status classes */
.status-active {
    background-color: #198754 !important;
    color: white !important;
}

.status-inactive {
    background-color: #6c757d !important;
    color: white !important;
}

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

/* Modal styles to ensure proper display */
.account-list-page .modal {
    z-index: 1055 !important;
}

.account-list-page .modal-backdrop {
    z-index: 1050 !important;
}

.account-list-page .modal-dialog {
    z-index: 1056 !important;
}

/* Ensure modal is visible */
.account-list-page .modal.show {
    display: block !important;
    opacity: 1 !important;
}

/* Ensure backdrop is visible */
.account-list-page .modal-backdrop.show {
    opacity: 0.5 !important;
}

/* Column width utilities */
.col-width-90 {
    width: 90px;
}

.col-min-width-140 {
    min-width: 140px;
}

/* Form inline display */
.form-inline {
    display: inline;
}

/* Toast notification positioning - extracted from JavaScript inline styles */
.toast-notification {
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

/* CSS extracted from /var/www/html/members/admin/admin-basketitems.php */

/* Basket item card styles */
.basket-item-card {
    transition: all 0.2s;
    border-left: 4px solid #ddd;
}

.basket-item-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.basket-item-card.handler {
    border-left-color: #28a745;
}

.basket-item-card.dog {
    border-left-color: #17a2b8;
}

.basket-item-card.class {
    border-left-color: #ffc107;
}

.item-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Table column width utilities */
.col-width-5 {
    width: 5%;
}

.col-width-10 {
    width: 10%;
}

.col-width-15 {
    width: 15%;
}

.col-width-25 {
    width: 25%;
}

/* CSS extracted from /var/www/html/members/admin/admin-dashboard.php */

/* Dashboard card styles */
.dashboard-card {
    transition: all 0.2s ease;
    border: 1px solid #e3e6f0;
    height: 100%;
    cursor: pointer;
    background: white;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.15rem 0.35rem rgba(0,0,0,0.1);
    border-color: #2c7be5;
}

.dashboard-card .card-body {
    padding: 0.4rem 0.5rem;
}

.dashboard-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-right: 0.4rem;
}

.dashboard-card h5 {
    font-size: 0.75rem;
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: 600;
}

.stat-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
    margin-left: 0.25rem;
}

.section-title {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e3e6f0;
}

/* Dashboard page specific overrides */
.admin-dashboard-page .content {
    padding-top: 0.5rem !important;
}

.admin-dashboard-page .card-body {
    padding: 0.75rem !important;
}

.section-column {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
}

.section-column-1 {
    background: #f0f4ff;
}

.section-column-2 {
    background: #f0fff4;
}

.section-column-3 {
    background: #fffbf0;
}

.section-column-4 {
    background: #f8f0ff;
}

/* CSS extracted from /var/www/html/members/admin/admin-dog-events.php */

/* Level badge colors for progression levels */
.level-badge-fledgling {
    background-color: #4e9af1 !important;
    color: white;
}

.level-badge-rookie {
    background-color: #28a745 !important;
    color: white;
}

.level-badge-novice {
    background-color: #ffc107 !important;
    color: #000;
}

.level-badge-senior {
    background-color: #fd7e14 !important;
    color: white;
}

.level-badge-champion {
    background-color: #6f42c1 !important;
    color: white;
}

.level-badge-master {
    background-color: #ffd700 !important;
    color: #000;
}

/* Level badge large variant */
.level-badge-lg {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* Level preview container */
.level-preview {
    color: white;
}

.level-preview-fledgling {
    background-color: #4e9af1;
    color: white;
}

.level-preview-rookie {
    background-color: #28a745;
    color: white;
}

.level-preview-novice {
    background-color: #ffc107;
    color: #000;
}

.level-preview-senior {
    background-color: #fd7e14;
    color: white;
}

.level-preview-champion {
    background-color: #6f42c1;
    color: white;
}

.level-preview-master {
    background-color: #ffd700;
    color: #000;
}

/* CSS extracted from /var/www/html/members/admin/admin-dog-progression-details.php */

/* Compact table styles */
.compact-table {
    font-size: 0.875rem;
}

.compact-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.compact-table td {
    padding: 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.compact-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Event type badges */
.event-type-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.event-type-regular {
    background-color: #e3f2fd;
    color: #1976d2;
}

.event-type-override {
    background-color: #fff3cd;
    color: #856404;
}

.event-type-adjustment {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Points badge styles */
.points-badge {
    font-weight: 600;
    font-size: 0.85rem;
}

.points-positive {
    color: #28a745;
}

.points-negative {
    color: #dc3545;
}

/* Level change indicator */
.level-change-indicator {
    color: #28a745;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Summary row */
.summary-row {
    background-color: #f8f9fa;
    font-weight: 600;
}

.summary-row td {
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
}

/* Comparison table */
.comparison-table {
    font-size: 0.85rem;
}

.comparison-table th {
    font-size: 0.75rem;
    padding: 0.4rem;
}

.comparison-table td {
    padding: 0.4rem;
}

.changed-value {
    background-color: #fff3cd;
    font-weight: 600;
}

/* Additional column width utilities */
.col-width-50 {
    width: 50px;
}

.col-width-80 {
    width: 80px;
}

.col-width-100 {
    width: 100px;
}

.col-width-120 {
    width: 120px;
}

.col-width-200 {
    width: 200px;
}

/* CSS extracted from /var/www/html/members/admin/admin-dog-progression.php */

/* Level card styles */
.level-card {
    border-left: 4px solid;
    transition: transform 0.2s;
}

.level-card:hover {
    transform: translateX(5px);
}

/* Level header background colors */
.level-header-fledgling {
    background-color: #4e9af1 !important;
    color: white;
}

.level-header-rookie {
    background-color: #28a745 !important;
    color: white;
}

.level-header-novice {
    background-color: #ffc107 !important;
    color: #000;
}

.level-header-senior {
    background-color: #fd7e14 !important;
    color: white;
}

.level-header-champion {
    background-color: #6f42c1 !important;
    color: white;
}

.level-header-master {
    background-color: #ffd700 !important;
    color: #000;
}

/* Progress bar level colors */
.progress-bar-level-fledgling {
    background-color: #4e9af1 !important;
}

.progress-bar-level-rookie {
    background-color: #28a745 !important;
}

.progress-bar-level-novice {
    background-color: #ffc107 !important;
}

.progress-bar-level-senior {
    background-color: #fd7e14 !important;
}

.progress-bar-level-champion {
    background-color: #6f42c1 !important;
}

.progress-bar-level-master {
    background-color: #ffd700 !important;
}

/* Progress bar sizing utility */
.progress-sm {
    height: 20px;
    min-width: 100px;
}

/* CSS extracted from /var/www/html/members/admin/admin-event-scoring-mobile.php */

:root {
    --primary-color: #2c7be5;
    --success-color: #00d97e;
    --warning-color: #f6c343;
    --danger-color: #e63757;
    --dark-color: #344050;
}

/* Mobile framework – design tokens (used in @media blocks below) */
:root {
    --mobile-content-padding: 0.75rem;
    --mobile-content-padding-xs: 0.5rem;
    --mobile-content-padding-full: 0.25rem; /* minimal horizontal padding for full-width on small phones */
    --mobile-card-padding: 1rem;
    --mobile-card-padding-xs: 0.875rem;
    --mobile-gap-sm: 0.5rem;
    --mobile-gap-md: 0.75rem;
    --mobile-font-body: 0.875rem;
    --mobile-font-label: 0.8rem;
    --mobile-font-title: 1.05rem;
    --mobile-font-caption: 0.75rem;
    --mobile-touch-min-height: 2.5rem;
    --mobile-radius-card: 0.375rem;
    --mobile-border-width: 1px;
}

/* Mobile scoring page body styles */
.mobile-scoring-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f9fafd;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

/* Mobile-optimized header */
.mobile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5bb8 100%);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-header h1 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.mobile-header .subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Large touch-friendly buttons */
.btn-touch {
    min-height: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    touch-action: manipulation;
}

/* Competitor cards */
.competitor-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s;
    overflow: hidden;
}

.competitor-card.expanded {
    padding: 1.5rem;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(44, 123, 229, 0.15);
}

.competitor-card.collapsed {
    padding: 0;
}

.competitor-card.completed {
    background: white;
    border-left: 4px solid var(--success-color);
}

.competitor-card.completed.expanded {
    border-color: var(--success-color);
    border-left-width: 2px;
    background: linear-gradient(to right, #f0fdf7 0%, white 100%);
}

.competitor-card.pending {
    border-color: #dee2e6;
    background: white;
}

.competitor-card.pending.collapsed {
    border-left: 4px solid #ffc107;
}

.competitor-card.pending.expanded {
    border-color: var(--primary-color);
    border-left-width: 2px;
}

.competitor-card.expanded .competitor-card-header {
    margin-bottom: 1rem;
    padding: 0 0 1rem 0;
    border-bottom: 2px solid #f1f3f9;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.competitor-card.expanded .competitor-card-header:active {
    opacity: 0.9;
}

.competitor-card.collapsed .competitor-card-header {
    margin-bottom: 0;
    padding: 1rem 1.25rem;
    margin: 0;
    border-bottom: none;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
}

.competitor-card.collapsed .competitor-card-header:active {
    background: rgba(44, 123, 229, 0.05);
}

.competitor-card.collapsed .dog-name {
    font-size: 1.1rem;
}

.competitor-card.collapsed .handler-name {
    font-size: 0.875rem;
}

.competitor-card.collapsed .scoring-form {
    display: none;
}

.competitor-card.collapsed .score-summary {
    display: flex !important;
}

.competitor-card.collapsed .expand-indicator {
    display: none !important;
}

.competitor-card.expanded .expand-indicator {
    display: none !important;
}

.competitor-card.collapsed .expand-btn {
    display: none !important;
}

.score-summary {
    display: none;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.score-badge {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.score-badge i {
    font-size: 0.75rem;
}

.score-badge-danger {
    background: #ffe5e9;
    color: var(--danger-color);
}

.score-badge-primary {
    background: #e7f3ff;
    color: var(--primary-color);
    font-weight: 700;
}

.expand-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.expand-btn:active {
    opacity: 0.7;
}

.expand-indicator {
    display: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.expand-indicator i {
    margin-right: 0.25rem;
}

.chevron-indicator {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: transform 0.3s;
    margin-left: 0.5rem;
    min-width: 28px;
    text-align: center;
}

.competitor-card.expanded .chevron-indicator {
    transform: rotate(180deg);
}

.competitor-card.collapsed .chevron-indicator {
    transform: rotate(0deg);
    color: #6c757d;
}

.tap-hint {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.competitor-card.expanded .tap-hint {
    display: none;
}

.collapse-section {
    margin-top: 2rem;
    padding-top: 1rem;
}

.competitor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f9;
    min-height: 60px;
}

.dog-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.handler-name {
    font-size: 1rem;
    color: #6c757d;
    margin: 0.25rem 0 0 0;
}

.dog-name-small {
    font-weight: 400;
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Time input - large and clear */
.time-input-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.time-input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-input {
    width: 100%;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: white;
    font-family: 'Courier New', monospace;
}

.time-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
    outline: none;
}

/* Number pad style for faults */
.faults-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.faults-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    touch-action: manipulation;
}

.faults-btn:active {
    background: var(--primary-color);
    color: white;
}

.faults-display {
    font-size: 2.5rem;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
    color: var(--dark-color);
}

/* Toggle switches */
.option-toggle {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.option-toggle.active {
    background: #e7f3ff;
    border-color: var(--primary-color);
}

.option-toggle.danger.active {
    background: #ffe5e9;
    border-color: var(--danger-color);
}

.option-toggle label {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    width: 60px;
    height: 32px;
    position: relative;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 32px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

/* Action buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-save {
    background: var(--success-color);
    color: white;
    border: none;
    grid-column: 1 / -1;
}

.btn-save:hover, .btn-save:active {
    background: #00b368;
    color: white;
}

/* Selection screens */
.selection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selection-item {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.selection-item:active {
    transform: scale(0.98);
    border-color: var(--primary-color);
}

.selection-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--dark-color);
}

.selection-item-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.selection-item-arrow {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Progress indicator */
.progress-header {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.progress-bar-custom {
    height: 12px;
    border-radius: 6px;
    background: #e9ecef;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color) 0%, #00a863 100%);
    transition: width 0.3s;
    border-radius: 6px;
}

.progress-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.progress-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

/* Back button */
.btn-back {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-back-small {
    font-size: 0.875rem;
}

/* Course time indicator */
.course-time-info {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Keyboard helper */
.keyboard-helper {
    background: #e7f3ff;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #004085;
    text-align: center;
}

/* Alert messages */
.alert-mobile {
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.empty-state-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Section header styles */
.section-header {
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header-title-success {
    color: var(--success-color);
}

.btn-collapse-all {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Success message card */
.success-message-card {
    background: linear-gradient(135deg, var(--success-color) 0%, #00b368 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,217,126,0.2);
    text-align: center;
    color: white;
}

.success-message-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.success-message-title {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.success-message-text {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Competitor card content utilities */
.competitor-content-flex {
    flex: 1;
}

.competitor-status-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

/* CSS extracted from /var/www/html/members/admin/admin-event-scoring.php */

.competitor-card {
    transition: all 0.2s;
    border-left: 4px solid #ddd;
}

.competitor-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.competitor-card.scored {
    border-left-color: #28a745;
    background-color: #f8fff9;
}

.score-row {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.score-row:hover {
    background-color: #f8f9fa;
}

.time-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.time-input::placeholder {
    color: #adb5bd;
    font-size: 0.85em;
}

/* Eliminated row styling */
.competitor-row.eliminated-row {
    opacity: 0.6;
    background-color: #e9ecef !important;
}

.competitor-row.eliminated-row td {
    color: #6c757d;
}

.competitor-row.eliminated-row input:not([type="checkbox"]),
.competitor-row.eliminated-row select {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.competitor-row.eliminated-row input[type="checkbox"] {
    opacity: 0.7;
}

/* Custom badge colors */
.badge.bg-orange {
    background-color: #fd7e14 !important;
    color: #fff;
}

/* Bonus columns grouping */
.bonus-group-start {
    border-left: 2px solid #c9cace !important;
}

.bonus-group-end {
    border-right: 2px solid #c9cace !important;
}

th.table-info, td.bonus-cell {
    background-color: rgba(187, 189, 190, 0.1) !important;
}

/* Header row bottom border */
#competitors-table thead tr {
    border-bottom: 1px solid #2c2d2e !important;
}

#competitors-table thead th {
    border-bottom: 1px solid #2c2d2e !important;
}

/* Force table to use fixed layout for column widths */
#competitors-table {
    table-layout: fixed;
    width: 100%;
}

/* Compact design improvements */
.event-scoring-page .card-body {
    padding: 0.75rem !important;
}

.event-scoring-page .card-header {
    padding: 0.5rem 0.75rem !important;
}

.event-scoring-page .card-header h5, 
.event-scoring-page .card-header h6 {
    margin-bottom: 0;
    font-size: 1rem;
}

.event-scoring-page .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.event-scoring-page .form-select, 
.event-scoring-page .form-control {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

.event-scoring-page .table-sm td, 
.event-scoring-page .table-sm th {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
}

.event-scoring-page .alert {
    margin-bottom: 0.75rem;
}

.event-scoring-page .mb-3 {
    margin-bottom: 0.75rem !important;
}

.event-scoring-page .mb-4 {
    margin-bottom: 1rem !important;
}

.event-scoring-page .card {
    margin-bottom: 0.75rem;
}

.event-scoring-page .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.event-scoring-page .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

.event-scoring-page .progress {
    height: 1.25rem;
}

/* Progress bar height utility */
.progress-height-20 {
    height: 20px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Compact table styling */
#competitors-table tbody tr {
    transition: background-color 0.15s ease;
}

#competitors-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Table column width utilities - percentage based */
.col-width-2 {
    width: 2%;
}

.col-width-3 {
    width: 3%;
}

.col-width-4 {
    width: 4%;
}

.col-width-5 {
    width: 5%;
}

.col-width-8 {
    width: 8%;
}

.col-width-14 {
    width: 14%;
}

.col-min-width-50 {
    min-width: 50px;
}

/* CSS extracted from /var/www/html/members/admin/admin-points-dashboard.php */

.form-label-sm {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.compact-form .form-control-sm,
.compact-form .form-select-sm {
    font-size: 0.875rem;
}

.nav-tabs-sm .nav-link {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
}

.points-dashboard-page .card-header h6 {
    font-size: 0.95rem;
}

/* Transaction list scrollable container */
.transaction-list-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Transaction item text sizes */
.transaction-dog-name {
    font-size: 0.85rem;
}

.transaction-badge-sm {
    font-size: 0.7rem;
}

.transaction-text {
    font-size: 0.75rem;
}

.transaction-badge-xs {
    font-size: 0.65rem;
}

.transaction-notes {
    font-size: 0.7rem;
    color: #6c757d;
}

.transaction-timestamp {
    font-size: 0.7rem;
    min-width: 60px;
}

/* CSS extracted from /var/www/html/members/admin/audit-bulk-delete.php */

.risk-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.risk-low {
    background-color: #d4edda;
    color: #155724;
}

.risk-medium {
    background-color: #fff3cd;
    color: #856404;
}

.risk-high {
    background-color: #f8d7da;
    color: #721c24;
}

/* Status badge styles for audit records */
.audit-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.audit-status-success {
    background-color: #d4edda;
    color: #155724;
}

.audit-status-failure {
    background-color: #f8d7da;
    color: #721c24;
}

.audit-status-error {
    background-color: #f8d7da;
    color: #721c24;
}

.audit-status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.audit-status-pending {
    background-color: #d1ecf1;
    color: #0c5460;
}

.confirmation-input {
    border: 2px solid #dc3545;
}

.confirmation-input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.records-table {
    max-height: 400px;
    overflow-y: auto;
}

/* CSS extracted from /var/www/html/members/admin/audit-dashboard.php */

.audit-dashboard {
    padding: 20px;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-card h3 {
    margin: 0;
    font-size: 2.5rem;
}

.stats-card p {
    margin: 0;
    opacity: 0.8;
}

/* Risk badge styles for audit dashboard (different colors from audit-bulk-delete) */
.audit-dashboard .risk-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.audit-dashboard .risk-low {
    background-color: #28a745;
    color: white;
}

.audit-dashboard .risk-medium {
    background-color: #ffc107;
    color: black;
}

.audit-dashboard .risk-high {
    background-color: #dc3545;
    color: white;
}

/* Status badge styles for audit dashboard */
.audit-dashboard .status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.audit-dashboard .status-success {
    background-color: #28a745;
    color: white;
}

.audit-dashboard .status-failure {
    background-color: #dc3545;
    color: white;
}

.audit-dashboard .status-unauthorized {
    background-color: #6c757d;
    color: white;
}

.audit-dashboard .status-error {
    background-color: #dc3545;
    color: white;
}

.filter-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.audit-table {
    font-size: 0.9rem;
}

.audit-table th {
    background-color: #495057;
    color: white;
    border: none;
}

.audit-table td {
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.audit-records-card {
    width: 100%;
}

.audit-records-card .card-body {
    padding: 0;
}

.audit-records-card .table-responsive {
    width: 100%;
    margin: 0;
    padding: 1rem;
}

.audit-records-card .audit-table {
    width: 100%;
    margin: 0;
    table-layout: fixed;
}

.audit-records-card .audit-table th:nth-child(1), 
.audit-records-card .audit-table td:nth-child(1) {
    width: 3%;
}

.audit-records-card .audit-table th:nth-child(2), 
.audit-records-card .audit-table td:nth-child(2) {
    width: 8%;
}

.audit-records-card .audit-table th:nth-child(3), 
.audit-records-card .audit-table td:nth-child(3) {
    width: 12%;
}

.audit-records-card .audit-table th:nth-child(4), 
.audit-records-card .audit-table td:nth-child(4) {
    width: 15%;
}

.audit-records-card .audit-table th:nth-child(5), 
.audit-records-card .audit-table td:nth-child(5) {
    width: 10%;
}

.audit-records-card .audit-table th:nth-child(6), 
.audit-records-card .audit-table td:nth-child(6) {
    width: 8%;
}

.audit-records-card .audit-table th:nth-child(7), 
.audit-records-card .audit-table td:nth-child(7) {
    width: 20%;
}

.audit-records-card .audit-table th:nth-child(8), 
.audit-records-card .audit-table td:nth-child(8) {
    width: 8%;
}

.audit-records-card .audit-table th:nth-child(9), 
.audit-records-card .audit-table td:nth-child(9) {
    width: 6%;
}

.audit-records-card .audit-table th:nth-child(10), 
.audit-records-card .audit-table td:nth-child(10) {
    width: 10%;
}

.audit-records-card .audit-table th:nth-child(11), 
.audit-records-card .audit-table td:nth-child(11) {
    width: 8%;
}

.audit-records-card .audit-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.audit-records-card .audit-table td:nth-child(7) {
    max-width: 250px;
}

.action-details {
    cursor: pointer;
    color: #007bff;
}

.action-details:hover {
    color: #0056b3;
    text-decoration: underline;
}

.alert-card {
    border-left: 4px solid #dc3545;
    margin-bottom: 10px;
}

.alert-card.severity-low {
    border-left-color: #28a745;
}

.alert-card.severity-medium {
    border-left-color: #ffc107;
}

.alert-card.severity-high {
    border-left-color: #fd7e14;
}

.alert-card.severity-critical {
    border-left-color: #dc3545;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 1rem 1rem 1rem;
}

.export-buttons {
    margin-bottom: 20px;
}

.audit-dashboard .modal-body pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.record-checkbox {
    cursor: pointer;
}

.audit-dashboard .btn-group .btn {
    margin-right: 2px;
}

.audit-dashboard .btn-group .btn:last-child {
    margin-right: 0;
}

.bulk-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollable card body */
.card-body-scrollable {
    max-height: 300px;
    overflow-y: auto;
}

/* Responsive navbar behavior - only show toggle on larger screens */
@media (max-width: 1199px) {
    .navbar-vertical-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .audit-table {
        font-size: 0.8rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .filter-section {
        padding: 15px;
    }
    
    .audit-dashboard .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .audit-dashboard .btn-group .btn {
        margin-bottom: 2px;
        margin-right: 0;
    }
}

/* CSS extracted from /var/www/html/members/admin/audit-record-view.php */
/* JSON display for formatted JSON data */
.json-display {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    max-height: 300px;
    overflow-y: auto;
}

/* Detail card styling */
.detail-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.detail-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* CSS extracted from /var/www/html/members/admin/audit-reports.php */
/* Report container */
.report-container {
    padding: 20px;
}

/* Report header with gradient */
.report-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Report filters section */
.report-filters {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Report section styling */
.report-section {
    margin-bottom: 30px;
}

.report-section h3 {
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Stat card for reports (different from general stat-card) */
.audit-reports-page .stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.audit-reports-page .stat-card h4 {
    color: #007bff;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
}

/* Table styling for reports */
.audit-reports-page .table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.audit-reports-page .table th {
    background-color: #495057;
    color: white;
    border: none;
}

/* Chart container for reports (taller than general) */
.audit-reports-page .chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
}

/* Risk badge styles for audit reports (matching audit-dashboard colors) */
.audit-reports-page .risk-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.audit-reports-page .risk-low {
    background-color: #28a745;
    color: white;
}

.audit-reports-page .risk-medium {
    background-color: #ffc107;
    color: black;
}

.audit-reports-page .risk-high {
    background-color: #dc3545;
    color: white;
}

/* Status badge styles for audit reports (matching audit-dashboard colors) */
.audit-reports-page .status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.audit-reports-page .status-success {
    background-color: #28a745;
    color: white;
}

.audit-reports-page .status-failure {
    background-color: #dc3545;
    color: white;
}

.audit-reports-page .status-unauthorized {
    background-color: #6c757d;
    color: white;
}

.audit-reports-page .status-error {
    background-color: #dc3545;
    color: white;
}

/* Responsive adjustments for audit reports */
@media (max-width: 768px) {
    .report-header {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* CSS extracted from /var/www/html/members/admin/delete-audit-logs.php */
/* User card styling */
.user-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Log count display */
.log-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: #dc3545;
}

/* Delete button with gradient */
.delete-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    color: white;
}

/* Search box spacing */
.search-box {
    margin-bottom: 20px;
}

/* Stats summary with gradient */
.stats-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-summary h3 {
    margin: 0;
    font-size: 2.5rem;
}

.stats-summary p {
    margin: 0;
    opacity: 0.8;
}

/* CSS extracted from /var/www/html/members/dogs/dog-select-records.php */

/* Level badge with dynamic background color using CSS custom property */
.level-badge-table {
    background-color: var(--level-color, #6c757d);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
}

.level-badge-table i {
    color: inherit;
}

.level-badge-mobile {
    background-color: var(--level-color, #6c757d);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
}

.level-badge-mobile i {
    color: inherit;
}

/* Progress bar with dynamic width and background color using CSS custom properties */
.dog-progress-bar-fill {
    width: var(--progress-width, 0%);
    background-color: var(--level-color, #6c757d);
}

/* CSS extracted from /var/www/html/members/dogs/dogs-list.php */

/* Dogs list table styles */
.dogs-list-table {
    table-layout: auto;
    width: 100%;
}

.dogs-list-photo-col {
    width: 10%;
}

.dogs-list-actions-col {
    min-width: 140px;
}

/* Make the desktop table dynamic in width and allow horizontal scrolling if needed */
.table-force-desktop {
    width: 100% !important;
    font-size: 0.875rem; /* Smaller font size for table text */
}

.table-force-desktop th,
.table-force-desktop td {
    font-size: 0.875rem; /* Ensure all cells use smaller font */
}

/* Hide ID column */
.table-force-desktop th:first-child,
.table-force-desktop td:first-child {
    display: none;
}

/* Dog records selection table: ensure the Name column (first column) is visible */
.dog-table.table-force-desktop th:first-child,
.dog-table.table-force-desktop td:first-child {
    display: table-cell;
}

.show-desktop.table {
    width: 100%;
    overflow-x: hidden;
    display: block;
}

.table-responsive.scrollbar {
    overflow-x: hidden;
}

@media (max-width: 991px) {
    .show-desktop.table {
        display: none;
    }
}

/* Level badge with dynamic background color - matches btn-sm height */
.level-badge-dynamic {
    background-color: var(--level-color, #6c757d);
    color: white;
    padding: 0.1875rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

/* Status badge styling - matches btn-sm height */
.dogs-list-status-badge {
    padding: 0.1875rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

/* Events badge styling - matches btn-sm height */
.dogs-list-events-badge {
    padding: 0.1875rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

/* Mobile photo styling */
.dogs-list-photo-mobile {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.dogs-list-photo-placeholder-mobile {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

/* Full width detail item for mobile */
.dogs-list-detail-full-width {
    grid-column: 1 / -1;
}

/* CSS extracted from /var/www/html/members/handlers/handlers-list.php */

/* Handlers list table styles */
.handlers-list-table {
    table-layout: auto;
    min-width: 100%;
}

.handlers-list-table-responsive {
    overflow-x: visible;
}

.handlers-list-name-col {
    width: 25%;
}

.handlers-list-email-col {
    width: 25%;
}

.handlers-list-category-col {
    width: 12%;
}

.handlers-list-status-col {
    width: 13%;
}

.handlers-list-actions-col {
    width: 25%;
    min-width: 280px;
}

/* Status badge styling - matches btn-sm height */
.handlers-list-status-badge {
    padding: 0.1875rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

/* Full width detail item for mobile */
.handlers-list-detail-full-width {
    grid-column: 1 / -1;
}

/* -------------------------------------------------------------------------- */
/*                              Text Primary Override                         */
/* -------------------------------------------------------------------------- */

.text-primary {
    --falcon-text-opacity: 1;
    color: rgba(var(--falcon-primary-rgb), var(--falcon-text-opacity)) !important;
    position: relative;
    z-index: 1050;
}

/* Ensure text-primary elements are above navbar glass */
.text-primary,
.text-primary * {
    position: relative;
    z-index: 1050;
}

/* Alternative approach - force text to be visible */
.text-primary {
    --falcon-text-opacity: 1;
    color: rgba(var(--falcon-primary-rgb), var(--falcon-text-opacity)) !important;
    position: relative;
    z-index: 9999;
    mix-blend-mode: normal;
    isolation: isolate;
}

/* Override navbar glass z-index if needed */
.navbar-glass {
    z-index: 1000 !important;
}

/* Ensure text-primary is always on top */
.text-primary {
    z-index: 10000 !important;
}

/* -------------------------------------------------------------------------- */
/*                             Full Screen Layout                             */
/* -------------------------------------------------------------------------- */

/* Override Bootstrap container to use full screen width */
.container[data-layout="container"] {
    max-width: none !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure content area uses full available width */
.content {
    max-width: none !important;
    min-width: 0;
    flex: 1;
}

/* Ensure the main container uses flexbox properly */
.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Fix the layout when sidebar is present */
.main .container[data-layout="container"] {
    display: flex;
    flex-direction: row;
    flex: 1;
    max-width: none;
    padding: 0;
}

/* Sidebar should have fixed width with spacing */
.navbar-vertical {
    flex-shrink: 0;
    width: auto;
    margin-right: 1.5rem;
    padding-left: 1rem;
}

/* Content area should take remaining space */
.content {
    flex: 1;
    min-width: 0;
    padding: 1rem;
}

/* Ensure rows use full width without overflow */
.content .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.content .row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Fix footer row margins to prevent horizontal scrolling */
.footer .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Fix for cards that might be too wide */
.card {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure the step cards in the dashboard don't overflow */
.col-12.col-md-6.col-xl-3 {
    min-width: 0;
    flex: 0 0 auto;
}

/* Add responsive padding for better mobile experience */
@media (max-width: 576px) {
    .container[data-layout="container"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .content {
        padding: 0.5rem;
    }
    
    .content .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .content .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Fix footer row margins on mobile */
    .footer .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Reduce sidebar spacing on mobile */
    .navbar-vertical {
        margin-right: 0.75rem;
        padding-left: 0.5rem;
    }
}

/* Medium screens adjustments */
@media (min-width: 577px) and (max-width: 768px) {
    .navbar-vertical {
        margin-right: 1rem;
        padding-left: 0.75rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                                Mobile Responsive Fixes                    */
/* -------------------------------------------------------------------------- */

/* Prevent horizontal overflow on all screen sizes */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* Ensure container never exceeds viewport width */
.container[data-layout="container"] {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Mobile-first approach - hide desktop table by default */
.show-desktop {
    display: none;
}

/* Show desktop table only on larger screens */
@media (min-width: 768px) {
    .show-desktop {
        display: block;
    }
    
    .show-desktop.table {
        display: table;
    }
    
    .show-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   Mobile framework – base styles
   Breakpoints: xs = 575.98px (phones), sm = 767.98px (large phones / narrow tablets)
   ========================================================================== */

@media (max-width: 767.98px) {
    /* 3.1 Page and content – full width, limited padding for screens < 768px (override theme/container) */
    .main .container[data-layout="container"] {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: var(--mobile-content-padding-full) !important;
        padding-right: var(--mobile-content-padding-full) !important;
    }
    .content,
    .navbar-top + .content,
    .navbar-vertical + .content,
    .navbar-vertical.navbar-expand-xs + .content,
    .navbar-vertical.navbar-expand-sm + .content,
    .navbar-vertical.navbar-expand-md + .content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: var(--mobile-card-padding) var(--mobile-content-padding-full) !important;
        min-width: 0;
        max-width: 100% !important;
    }
    .content .row {
        margin-left: calc(-1 * var(--mobile-content-padding-full));
        margin-right: calc(-1 * var(--mobile-content-padding-full));
    }
    .content .row > * {
        padding-left: var(--mobile-content-padding-full);
        padding-right: var(--mobile-content-padding-full);
    }

    /* 3.2 Cards */
    .card {
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    .card-body {
        padding: var(--mobile-card-padding) var(--mobile-content-padding-full) !important;
    }
    .card-header {
        padding: var(--mobile-card-padding) var(--mobile-content-padding-full) !important;
        display: flex;
        flex-wrap: wrap;
        gap: var(--mobile-gap-md);
        align-items: stretch;
    }

    /* 3.3 Card header: title + actions (row with wrap by default) */
    .card-header.d-flex.flex-between-center,
    .card-header.d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .card-header h5 {
        font-size: var(--mobile-font-title);
        text-align: left;
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    .card-header .d-flex.align-items-center.gap-3,
    .card-header .d-flex.align-items-center.gap-2 {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--mobile-gap-sm);
        flex: 1 1 auto;
        min-width: 0;
    }
    .card-header .d-flex.align-items-center.gap-3 .btn,
    .card-header .d-flex.align-items-center.gap-2 .btn {
        min-height: var(--mobile-touch-min-height);
        font-size: var(--mobile-font-body);
        padding: 0.4rem 0.65rem;
        flex: 0 1 auto;
        width: auto;
        white-space: nowrap;
        margin: 0;
    }

    /* 3.4 Label / value pairs – single line (label left, value right) */
    .detail-item {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: var(--mobile-gap-sm);
        padding: 0.45rem 0;
        border-bottom: 1px solid #e9ecef;
    }
    .detail-item:last-child {
        border-bottom: none;
    }
    /* List item blocks: more spacing on small screens */
    .registration-list-mobile-card .registration-item {
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 1rem;
        padding-top: 1rem;
    }
    .detail-label {
        font-size: var(--mobile-font-label);
        font-weight: 600;
        color: #5a6268;
        min-width: 3.5rem;
        flex-shrink: 0;
    }
    .detail-value {
        font-size: var(--mobile-font-body);
        color: #212529;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: right;
    }

    /* 3.5 Buttons and touch targets */
    .content .btn,
    .card .btn {
        min-height: var(--mobile-touch-min-height);
        padding: 0.4rem 0.75rem;
        font-size: var(--mobile-font-body);
    }
    .card .btn-sm {
        font-size: var(--mobile-font-label);
        padding: 0.35rem 0.6rem;
        min-height: 2rem;
    }

    /* 3.6 Typography */
    .card-body p,
    .card-body .text-muted {
        font-size: var(--mobile-font-body);
    }
    .card-body h4 {
        font-size: var(--mobile-font-title);
    }
    .card-body h5 {
        font-size: var(--mobile-font-body);
        font-weight: 600;
    }
}

@media (max-width: 575.98px) {
    /* Full-width content: minimal horizontal padding to use space effectively */
    .content {
        padding: var(--mobile-content-padding-xs) var(--mobile-content-padding-full);
    }
    .container[data-layout="container"] {
        padding-left: var(--mobile-content-padding-full);
        padding-right: var(--mobile-content-padding-full);
        max-width: 100%;
    }
    .card-body,
    .card-header {
        padding-left: var(--mobile-content-padding-full);
        padding-right: var(--mobile-content-padding-full);
        padding-top: var(--mobile-card-padding-xs);
        padding-bottom: var(--mobile-card-padding-xs);
    }
    .card {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        border-radius: var(--mobile-radius-card);
    }
    .content .row {
        margin-left: calc(-1 * var(--mobile-content-padding-full));
        margin-right: calc(-1 * var(--mobile-content-padding-full));
    }
    .content .row > * {
        padding-left: var(--mobile-content-padding-full);
        padding-right: var(--mobile-content-padding-full);
    }
    /* More visual separation between list/detail items on smallest screens */
    .detail-item {
        padding: 0.5rem 0;
        border-bottom-color: #dee2e6;
    }
    .registration-list-mobile-card .registration-item {
        padding-top: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #dee2e6;
    }
    .registration-list-mobile-card .registration-item:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }
    .handler-card,
    .dog-card {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #dee2e6;
    }
    .handler-card:last-child,
    .dog-card:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }
}

/* 4. Optional utility classes */
@media (max-width: 767.98px) {
    .mobile-header-stack .d-flex.align-items-center.gap-3,
    .mobile-header-stack .d-flex.align-items-center.gap-2,
    .card-header.mobile-header-stack .d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .mobile-header-stack .d-flex .btn,
    .card-header.mobile-header-stack .btn {
        width: 100% !important;
        justify-content: center;
    }
    .mobile-header-actions-row .d-flex {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
}

/* Mobile card layout improvements */
@media (max-width: 767.98px) {
    /* Ensure mobile cards are always visible on mobile */
    .show-mobile {
        display: block !important;
    }
    
    /* Force desktop table to be hidden on mobile */
    .show-desktop {
        display: none !important;
    }
    
    /* Improve mobile card layout */
    .handler-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        background: #fff;
        overflow: hidden;
    }
    
    .handler-card-header {
        padding: 1rem;
        border-bottom: 1px solid #dee2e6;
        background-color: #f8f9fa;
    }
    
    .handler-info-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .handler-name-mobile {
        font-size: 1.1rem;
        font-weight: 600;
        color: #495057;
        margin: 0;
    }
    
    .handler-id-mobile {
        font-size: 0.875rem;
        color: #6c757d;
        margin: 0;
    }
    
    .handler-details-mobile {
        padding: 1rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem 0.5rem;
    }
    
    /* .detail-item, .detail-label, .detail-value: see Mobile framework above */
    
    .handler-actions-mobile {
        padding: 1rem;
        border-top: 1px solid #dee2e6;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn-mobile {
        flex: 1;
        min-width: 0;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Ensure buttons don't get too narrow */
    .btn-mobile:nth-child(n+4) {
        flex-basis: 100%;
    }
    
    /* Card header title + actions: see Mobile framework above (row with wrap by default; use .mobile-header-stack to opt out) */
    
    /* Dogs list: keep header buttons in a compact row on mobile instead of stacked */
    .dog-select-records-header {
        flex-direction: column;
        align-items: stretch;
    }
    .dog-select-records-header h5 {
        text-align: left;
        margin-bottom: 0.5rem;
    }
    .dog-select-records-header .d-flex.flex-wrap {
        flex-direction: row;
        justify-content: flex-start;
    }
    .dog-select-records-header .d-flex.flex-wrap .btn {
        width: auto;
        flex: 0 1 auto;
        font-size: 0.8125rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* .header-actions: use Mobile framework (row wrap) or .mobile-header-stack for column */
    .header-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--mobile-gap-sm);
        align-items: center;
    }
    .header-actions .btn {
        min-height: var(--mobile-touch-min-height);
        font-size: var(--mobile-font-body);
        padding: 0.4rem 0.65rem;
        flex: 0 1 auto;
    }
    
    /* Dashboard mobile improvements */
    .row.g-3 {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }
    
    .row.g-3 > * {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
    
    /* Mobile dashboard cards */
    .mobile-responsive-card {
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    /* Progress bars mobile */
    .progress {
        height: 8px !important;
    }
    
    /* Avatar sizing for mobile */
    .avatar-xl {
        width: 3rem;
        height: 3rem;
    }
    
    .avatar-xl .fs-0 {
        font-size: 1.2rem !important;
    }
    
    /* Card text responsive */
    .card-body p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .card-body h4 {
        font-size: 1.1rem;
    }
    
    .card-body h5 {
        font-size: 1rem;
    }
    
    /* Button responsiveness in cards */
    .card .btn-sm {
        font-size: 0.8rem;
        padding: 0.375rem 0.6rem;
        white-space: nowrap;
    }
}

/* Extra small screens (like iPhone SE and similar 375px wide devices) */
@media (max-width: 375px) {
    .container[data-layout="container"] {
        padding-left: var(--mobile-content-padding-full);
        padding-right: var(--mobile-content-padding-full);
    }
    .content {
        padding-left: var(--mobile-content-padding-full);
        padding-right: var(--mobile-content-padding-full);
    }
    
    .content {
        padding: 0.5rem;
    }
    
    .handler-card {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        border-radius: 0.25rem;
    }
    
    .handler-details-mobile {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .btn-mobile {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .card-header .d-flex.align-items-center.gap-3 .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .handler-card-header {
        padding: 0.75rem;
    }
    
    .handler-actions-mobile {
        padding: 0.75rem;
        flex-direction: column;
    }
    
    .btn-mobile {
        flex: none;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .btn-mobile:last-child {
        margin-bottom: 0;
    }
    
    /* Dashboard cards responsive */
    .row.g-3 {
        gap: 0.5rem !important;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    /* Step cards on mobile */
    .col-sm-6 .card {
        margin-bottom: 0.75rem;
    }
    
    /* Avatar and progress bars on mobile */
    .avatar-xl {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .avatar-xl .avatar-name {
        font-size: 1rem;
    }
    
    /* Button sizing in cards */
    .btn-falcon-primary, 
    .btn-falcon-info, 
    .btn-falcon-success, 
    .btn-falcon-warning,
    .btn-falcon-secondary {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Specific fix for iPhone SE portrait mode (375x812) */
@media (max-width: 375px) and (max-height: 812px) {
    .card-body {
        padding: 0.75rem;
    }
    
    .empty-state {
        padding: 1rem;
    }
    
    .empty-state h5 {
        font-size: 1.1rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
}

/* Ensure table never causes horizontal overflow */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table improvements for larger screens */
@media (min-width: 768px) {
    .table-force-desktop {
        table-layout: fixed;
        width: 100%;
    }
    
    .table-force-desktop th,
    .table-force-desktop td {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ensure action buttons in table don't overflow */
    .table-force-desktop .text-end {
        min-width: 280px;
    }
    
    .table-force-desktop .d-flex.gap-2 {
        flex-wrap: wrap;
        gap: 0.25rem !important;
    }
    
    .table-force-desktop .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
    }
}

/* -------------------------------------------------------------------------- */
/*                                Falcon Button                               */
/* -------------------------------------------------------------------------- */
/* prettier-ignore */
/*# sourceMappingURL=user.css.map */

.btn-pastel-primary {
    background-color: #a7c7e7;
    border-color: #949393;
    color: #343a40;
}

.btn-pastel-primary:hover {
    background-color: #e9d30b;
    border-color: #7f7f7f;
    color: #2c3036;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}


.btn-pastel-warning {
    background-color: #ffddaa;
    border-color: #949393;
    color: #343a40;
}

.btn-pastel-success {
    background-color: #bdeccb;
    border-color: #949393;
    color: #343a40;
}

.btn-pastel-danger {
    background-color: #ffb6b6;
    border-color: #949393;
    color: #454546;
}




.btn-pastel-add-new-event {
    background-color: #6aa5f1;
    border-color: #555353;
    color: #343a40;
    &:hover {
        background-color: #8db7ee;
        border-color: #949393;
        color: #343a40;
    }
}



.btn-pastel-manage-events {
    background-color: #5fac48;
    border-color: #949393;
    color: #343a40;
    &:hover {
        background-color: #69b957;
        border-color: #949393;
        color: #343a40;
    }
}   




.btn-pastel-export-data {
    background-color: #eeaf67;
    border-color: #949393;
    color: #343a40;
    &:hover {
        background-color: #f1ba7b;
        border-color: #949393;
        color: #343a40;
    }
}



.btn-pastel-edit-registration {
    background-color: #e6e362;
    border-color: #555353;
    color: #343a40;
    &:hover {
        background-color: #ecea65;
        border-color: #555353;
        color: #343a40;
    }
}


.btn-edit {
    background-color: #e6e362;
    border-color: #555353;
    color: #343a40;
    border: 1px solid #918e8e;
    border-radius: 0.25rem; /* Similar to header-action-btn */
    }

.btn-edit:hover {
    text-decoration: none;
    border-radius: 0.375rem;
    border: 1px dashed #000000;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px 0 rgba(0,0,0,0.15);
    transition: box-shadow 0.2s ease;
}

.btn-delete {
    background-color: #ff5757;
    border-color: #555353;
    color: #343a40;
    border: 1px solid #918e8e;
    border-radius: 0.25rem; /* Similar to header-action-btn */
    }

.btn-delete:hover {
    text-decoration: none;
    border-radius: 0.375rem;
    border: 1px dashed #000000;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px 0 rgba(0,0,0,0.15);
    transition: box-shadow 0.2s ease;
}

/* -------------------------------------------------------------------------- */
/*                          Header Action Buttons                            */
/* -------------------------------------------------------------------------- */

/* Header action buttons to match view toggle style */
.header-action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.875rem;
}

.header-action-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.header-action-btn.btn-primary-style {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.header-action-btn.btn-primary-style:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}

.header-action-btn.btn-warning-style {
    background: #ffc107;
    color: #000;
    border-color: #ffc107;
}

.header-action-btn.btn-warning-style:hover {
    background: #ffca2c;
    border-color: #ffc720;
    color: #000;
}

/* -------------------------------------------------------------------------- */
/*                          Handler Gallery Styles                           */
/* -------------------------------------------------------------------------- */

/* Enhanced Handler Card Gallery Styles */
.handler-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.handler-card-enhanced {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
}



.handler-avatar-container {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.handler-avatar-enhanced {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



.handler-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}



.handler-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.handler-info-enhanced {
    padding: 1.5rem;
}

.handler-name-enhanced {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
}

.handler-email-enhanced {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
}

.handler-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.handler-stat {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.handler-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.handler-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

.handler-status-enhanced {
    margin-bottom: 1.5rem;
    text-align: center;
}

.status-badge-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-registered-enhanced {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-in-basket-enhanced {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-unpaid-enhanced {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Font size now controlled by .fs-11 utility class in HTML */
}



.handler-actions-enhanced {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-enhanced {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}



/* Address display in cards */
.handler-address-enhanced {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.handler-address-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.handler-address-value {
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.4;
}

/* View toggle styles */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle-btn.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}



/* Use Bootstrap utility classes for font sizing instead of custom values */
/* These rules are now handled by adding .fs-11 class directly to HTML elements */

/* Creative enhancements */
.handler-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}



.handler-avatar-container::after {
    content: '#' attr(data-handler-id);
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}



/* Animations */
.handler-avatar-enhanced {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.status-badge-enhanced {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
.btn-enhanced {
    position: relative;
    overflow: hidden;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}



/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive adjustments */
@media (min-width: 1200px) {
    .handler-gallery {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .handler-gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .handler-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .handler-card-enhanced {
        margin-bottom: 1rem;
    }

    .handler-avatar-container {
        height: 80px;
    }

    .handler-avatar-enhanced,
    .handler-avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .handler-info-enhanced {
        padding: 1rem;
    }

    .handler-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .handler-actions-enhanced {
        flex-direction: column;
    }

    .btn-enhanced {
        min-width: auto;
    }

    .view-toggle {
        display: none;
    }
}

@media (max-width: 576px) {
    .handler-stats-grid {
        grid-template-columns: 1fr;
    }
}



/* -------------------------------------------------------------------------- */
/*                                Navbar Fix                                  */
/* -------------------------------------------------------------------------- */

/* Fix navbar overlap issue - adds top padding to content area */
.navbar-top + .content {
    padding-top: 10px;
    margin-left: 1rem !important;
}

/* Top navbar: single line on all screen sizes (override theme flex-wrap: wrap and any flex-basis: 100%) */
.navbar.navbar-top,
.content .navbar.navbar-top,
nav.navbar.navbar-top,
.navbar-glass.navbar-top,
nav.navbar-top.flex-nowrap {
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 0.5rem;
}
/* Prevent any direct child of top navbar from taking 100% width (theme .navbar-collapse uses flex: 1 0 100%) */
.navbar-top > * {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto !important;
    max-width: none;
}
.navbar-top > .d-flex.align-items-center:first-child {
    min-width: 0;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto !important;
}
.navbar-top .navbar-nav-icons {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    -ms-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
}
/* Allow slight shrink on very small screens so header stays one line */
@media (max-width: 400px) {
    .navbar-top .navbar-brand .fs-6 {
        font-size: 0.9rem !important;
    }
    .navbar-top .navbar-brand .d-flex img {
        width: 32px;
        height: auto;
    }
}

/* Override navbar glass shadow to remove shadow effect */
.navbar-glass-shadow {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

/* -------------------------------------------------------------------------- */
/* Basket dashboard panel (members index) - responsive                         */
/* -------------------------------------------------------------------------- */
.basket-dashboard-panel .basket-panel-inner {
    flex-wrap: wrap;
}
.basket-dashboard-panel .min-width-0 {
    min-width: 0;
}
.basket-dashboard-panel .basket-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding-left: 0;
}
.basket-dashboard-panel .basket-recent-list .list-inline-item {
    display: inline-block;
}
@media (max-width: 767.98px) {
    .basket-dashboard-panel .basket-panel-actions .d-flex {
        width: 100%;
    }
    .basket-dashboard-panel .basket-panel-actions .btn {
        width: 100%;
    }
}

/* Alternative: Remove glass effect for solid background */
/* .navbar-glass {
    background-color: var(--falcon-emphasis-bg) !important;
} */

/* @media (min-width: 1200px) {
  .navbar-vertical.navbar-expand-xl {
    position: absolute;
  }
} */

/* -------------------------------------------------------------------------- */
/*                           Responsive Breakpoints                           */
/* -------------------------------------------------------------------------- */

/* 
 * Custom breakpoints to handle all screen sizes centrally
 * xs: 0-575px (Extra Small - Mobile Portrait)
 * sm: 576-767px (Small - Mobile Landscape) 
 * md: 768-991px (Medium - Tablet)
 * lg: 992-1199px (Large - Small Desktop)
 * xl: 1200-1399px (Extra Large - Desktop)
 * xxl: 1400px+ (Extra Extra Large - Large Desktop/1440p+)
 */

/* -------------------------------------------------------------------------- */
/*                           Display Utilities                                */
/* -------------------------------------------------------------------------- */

/* Tablet Only (768-991px) */
.show-tablet {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .show-tablet {
        display: block !important;
    }
}

/* Desktop Small (992-1199px) */
.show-desktop-sm {
    display: none !important;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .show-desktop-sm {
        display: block !important;
    }
}

/* Desktop Medium (1200-1399px) */
.show-desktop-md {
    display: none !important;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .show-desktop-md {
        display: block !important;
    }
}

/* Desktop Large (1400px+ including 1440px) */
.show-desktop-lg {
    display: none !important;
}

@media (min-width: 1400px) {
    .show-desktop-lg {
        display: block !important;
    }
}

/* Large Desktop and up (1200px+) - includes 1440px */
.show-desktop-up {
    display: none !important;
}

@media (min-width: 1200px) {
    .show-desktop-up {
        display: block !important;
    }
    
    .show-desktop-up.table {
        display: table !important;
    }
    
    .show-desktop-up.flex {
        display: flex !important;
    }
}

/* -------------------------------------------------------------------------- */
/*                        1440px Specific Handling                            */
/* -------------------------------------------------------------------------- */

/* Specific styles for 1440px and similar large desktop screens */
@media (min-width: 1400px) {
    /* Ensure tables are always visible on large screens */
    .table-desktop-1440 {
        display: table !important;
    }
    
    .cards-mobile-1440 {
        display: none !important;
    }
    
    /* Optimize layout for 1440px screens */
    .container-1440 {
        max-width: 1320px;
        margin: 0 auto;
    }
    
    /* Better spacing for large screens */
    .card-body-1440 {
        padding: 2rem;
    }
    
    /* Table improvements for large screens */
    .table-1440 {
        font-size: 0.95rem;
    }
    
    .table-1440 th,
    .table-1440 td {
        padding: 0.875rem;
    }
    
    /* Button sizing for large screens */
    .btn-1440 {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Fix table action buttons being cut off */
    .table-responsive {
        overflow-x: auto !important;
    }
    
    /* Ensure action column has enough width */
    .table th:last-child,
    .table td:last-child {
        min-width: 280px;
        width: 280px;
    }
    
    /* Optimize button spacing in actions column */
    .table .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        margin: 0 0.125rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                        1920x1080 Full HD Handling                         */
/* -------------------------------------------------------------------------- */

/* Specific styles for 1920x1080 and similar Full HD screens */
@media (min-width: 1800px) and (max-width: 2000px) {
    /* Optimize container for Full HD screens */
    .container-1920 {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    /* Enhanced card spacing for Full HD */
    .card-body-1920 {
        padding: 2.5rem;
    }
    
    /* Table optimizations for Full HD */
    .table-1920 {
        font-size: 1rem;
    }
    
    .table-1920 th,
    .table-1920 td {
        padding: 1rem;
    }
    
    /* Better button sizing for Full HD */
    .btn-1920 {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Action column width for Full HD */
    .table th:last-child,
    .table td:last-child {
        min-width: 320px;
        width: 320px;
    }
    
    /* Enhanced gallery grid for Full HD */
    .handler-gallery {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .dog-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    /* Enhanced card dimensions for Full HD */
    .handler-card-enhanced,
    .dog-card-enhanced {
        max-width: 400px;
    }
    
    /* Better avatar sizing for Full HD */
    .handler-avatar-enhanced,
    .handler-avatar-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .dog-photo-container {
        height: 240px;
    }
    
    /* Enhanced text sizing for Full HD */
    .handler-name-enhanced,
    .dog-name-enhanced {
        font-size: 1.4rem;
    }
    
    .handler-email-enhanced,
    .dog-breed-enhanced {
        font-size: 1.05rem;
    }
    
    /* Better spacing for actions */
    .handler-actions-enhanced,
    .dog-actions-enhanced {
        gap: 0.75rem;
    }
    
    /* Enhanced button sizing */
    .btn-enhanced {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Better table photo sizing */
    .dog-photo-table {
        width: 100px;
        height: 100px;
    }
    
    .dog-photo-placeholder-table {
        width: 100px;
        height: 100px;
        font-size: 1.75rem;
    }
}

/* Exact 1920x1080 resolution targeting */
@media (min-width: 1920px) and (max-width: 1920px) and (min-height: 1080px) and (max-height: 1080px) {
    /* Exact Full HD optimizations */
    .container[data-layout="container"] {
        max-width: 1600px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Perfect table layout for 1920x1080 */
    .table-responsive {
        overflow-x: auto !important;
    }
    
    /* Optimized sidebar for Full HD */
    .navbar-vertical {
        margin-right: 2rem;
        padding-left: 1.5rem;
    }
    
    /* Enhanced content area for Full HD */
    .content {
        padding: 1.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                           Mobile Card Styling                              */
/* -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .handler-card {
        border: 1px solid #e3e6f0;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        padding: 1rem;
        background: #fff;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    .handler-card-header {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        gap: 1rem;
    }
    
    .handler-info-mobile {
        flex: 1;
        min-width: 0;
    }
    
    .handler-name-mobile {
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        color: #2c3e50;
    }
    
    .handler-id-mobile {
        color: #6c757d;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .handler-details-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .handler-details-mobile .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .handler-details-mobile .detail-label {
        font-size: 0.8rem;
        color: #6c757d;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }
    
    .handler-details-mobile .detail-value {
        font-weight: 600;
        color: #2c3e50;
        word-break: break-word;
        text-align: right;
    }
    
    .handler-actions-mobile {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .btn-mobile {
        flex: 1;
        min-width: 120px;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Header buttons responsive */
    .header-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .header-actions .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .handler-details-mobile {
        grid-template-columns: 1fr;
    }
    
    .handler-actions-mobile {
        flex-direction: column;
    }
    
    .btn-mobile {
        min-width: auto;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                         Table Responsive Utilities                         */
/* -------------------------------------------------------------------------- */

.table-responsive-custom {
    overflow-x: auto;
}

@media (max-width: 767.98px) {
    .table-responsive-custom {
        overflow-x: auto;
    }
}

/* Fix for action buttons being cut off on desktop */
@media (min-width: 768px) {
    /* Prevent horizontal scrolling on desktop */
    .table-responsive {
        overflow-x: auto !important;
    }
    
    /* Ensure actions column has sufficient width */
    .table thead th:last-child,
    .table tbody td:last-child {
        min-width: 250px;
        white-space: nowrap;
    }
    
    /* Optimize button layout in actions column */
    .table .d-flex.gap-2 {
        gap: 0.375rem !important;
        flex-wrap: nowrap;
    }
    
    /* Smaller button padding for better fit */
    .table .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.775rem;
        white-space: nowrap;
    }
    
    /* Specific button text adjustments */
    .table .btn-sm:contains("More Info") {
        padding: 0.25rem 0.4rem;
    }
}

/* Force table display on desktop screens */
@media (min-width: 768px) {
    .table-force-desktop {
        display: table !important;
        width: 100%;
        table-layout: auto;
    }
    
    /* Extra specificity for 1440px screens */
    .show-desktop.table {
        display: block !important;
    }
    
    .show-desktop .table-force-desktop {
        display: table !important;
    }
}

/* Force card display on mobile screens */
@media (max-width: 767.98px) {
    .cards-force-mobile {
        display: block !important;
    }
    
    .table-force-desktop {
        display: none !important;
    }
    
    .show-desktop {
        display: none !important;
    }
}

/* -------------------------------------------------------------------------- */
/*                        Dog Gallery Styles                                 */
/* -------------------------------------------------------------------------- */

/* Enhanced Dog Photo Gallery Styles */
.dog-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.dog-card-enhanced {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
}



.dog-photo-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dog-photo-enhanced {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}



.dog-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}



.dog-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dog-info-enhanced {
    padding: 1.5rem;
}

.dog-name-enhanced {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dog-breed-enhanced {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.dog-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dog-stat {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.dog-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.dog-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

.dog-status-enhanced {
    margin-bottom: 1.5rem;
}

.status-badge-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-registered-enhanced {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-in-basket-enhanced {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-unpaid-enhanced {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Font size now controlled by .fs-11 utility class in HTML */
}

.dog-actions-enhanced {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-enhanced {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}



/* Enhanced Table Styles */
.dog-photo-table {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}



.dog-photo-placeholder-table {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile-friendly styles */
@media (max-width: 768px) {
    .dog-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dog-card-enhanced {
        margin-bottom: 1rem;
    }

    .dog-photo-container {
        height: 180px;
    }

    .dog-info-enhanced {
        padding: 1rem;
    }

    .dog-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .dog-actions-enhanced {
        flex-direction: column;
    }

    .btn-enhanced {
        min-width: auto;
    }

    .table-responsive {
        overflow-x: auto;
    }
    
    .dog-card {
        border: 1px solid #e3e6f0;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        padding: 1rem;
        background: #fff;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    .dog-card-header {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        gap: 1rem;
    }
    
    .dog-photo-mobile {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 0.375rem;
        flex-shrink: 0;
    }
    
    .dog-info-mobile {
        flex: 1;
        min-width: 0;
    }
    
    .dog-name-mobile {
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        color: #2c3e50;
    }
    
    .dog-breed-mobile {
        color: #6c757d;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .dog-details-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .dog-details-mobile .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .dog-details-mobile .detail-label {
        font-size: 0.8rem;
        color: #6c757d;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }
    
    .dog-details-mobile .detail-value {
        font-weight: 600;
        color: #2c3e50;
        word-break: break-word;
        text-align: right;
    }
    
    .dog-status-mobile {
        margin-bottom: 1rem;
    }
    
    .status-badge {
        display: inline-block;
        padding: 0.375rem 0.75rem;
        border-radius: 0.375rem;
        font-size: 0.875rem;
        font-weight: 500;
        text-align: center;
    }
    
    .status-registered {
        background-color: #d1e7dd;
        color: #0f5132;
    }
    
    .status-in-basket {
        background-color: #cff4fc;
        color: #055160;
    }
    
    .status-unpaid {
        background-color: #f8d7da;
        color: #721c24;
    }
    
    .dog-actions-mobile {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .btn-mobile {
        flex: 1;
        min-width: 120px;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Hide table on mobile */
    .table-desktop {
        display: none;
    }
    
    /* Show cards on mobile */
    .cards-mobile {
        display: block;
    }
}

@media (min-width: 769px) {
    /* Hide cards on desktop */
    .cards-mobile {
        display: none !important;
    }
    
    /* Show gallery view by default on desktop */
    #gallery-view {
        display: block;
    }
    
    #table-view {
        display: none;
    }
    
    /* Ensure table takes full width */
    .table-desktop .table {
        width: 100%;
        margin-bottom: 0;
    }
    
    /* Ensure table cells have proper spacing */
    .table-desktop .table th,
    .table-desktop .table td {
        white-space: nowrap;
        vertical-align: middle;
    }
    
    /* Allow some columns to wrap if needed */
    .table-desktop .table td:nth-child(3), /* Name */
    .table-desktop .table td:nth-child(4) { /* Breed */
        white-space: normal;
        min-width: 120px;
    }
}

/* Ensure proper spacing on all screen sizes */
.card-body {
    padding: 1.5rem;
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
    
    .dog-details-mobile {
        grid-template-columns: 1fr;
    }
    
    .dog-actions-mobile {
        flex-direction: column;
    }
    
    .btn-mobile {
        min-width: auto;
    }
}

/* View toggle styles */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle-btn.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}



/* Additional creative enhancements */
.dog-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}



.dog-photo-container::after {
    content: '#' attr(data-dog-id);
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}



/* Photo loading animation */
.dog-photo-enhanced {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Status badge animations */
.status-badge-enhanced {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced button hover effects */
.btn-enhanced {
    position: relative;
    overflow: hidden;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}



/* Photo modal enhancements */
.photo-modal {
    animation: fadeIn 0.3s ease-out;
}

.photo-modal img {
    animation: zoomIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Empty state enhancements */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive grid adjustments */
@media (min-width: 1200px) {
    .dog-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .dog-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .dog-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading skeleton for photos */
.photo-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Ensure modals and their backdrops are always on top */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

#eventDetailsModal {
    z-index: 1055 !important;
}

#eventDetailsModal + .modal-backdrop {
    z-index: 1050 !important;
}

#createVoucherModal {
    z-index: 1055 !important;
}

#createVoucherModal + .modal-backdrop {
    z-index: 1050 !important;
}

/* Debug: Lower z-index for main containers so modals always appear on top */
.card,
.content,
.container,
.table {
    z-index: 1 !important;
}

/* Ensure modals and backdrops are always interactive */
.modal.show {
    pointer-events: auto !important;
    display: block !important;
}
.modal-backdrop.show {
    pointer-events: auto !important;
}

/* Specific voucher modal fixes */
#createVoucherModal .modal-dialog {
    pointer-events: auto !important;
    z-index: 1056 !important;
}

/* Hard CSS reset for Bootstrap modals and backdrops (debugging)
.modal,
.modal.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
}
.modal-backdrop,
.modal-backdrop.show {
    opacity: 0.5 !important;
    pointer-events: auto !important;
    z-index: 9998 !important;
}
*/

/* CSS extracted from /var/www/html/members/registration/registration-list.php */

/* Registration list responsive design */

/* 1024px and below: show mobile cards, hide table (fixes horizontal scroll and wrapping) */
@media (max-width: 1024px) {
    .registration-list-table-responsive {
        display: none !important;
    }
    .registration-list-mobile-cards {
        display: block !important;
    }
    .registration-list-page .card-header.d-flex.flex-between-center {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .registration-list-page .card-header h5 {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 0;
    }
    .registration-list-page .registration-list-header-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }
    .registration-list-page .registration-list-header-actions .btn {
        min-height: 2.5rem;
        font-size: 0.8125rem;
        padding: 0.4rem 0.65rem;
        flex: 0 1 auto;
    }
    .registration-list-page .registration-list-mobile-card {
        margin-bottom: 1.25rem;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        background: white;
        border: 1px solid #dee2e6;
        overflow: hidden;
    }
    .registration-list-page .registration-list-mobile-card .competition-label {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
        color: #6c757d;
    }
    .registration-list-page .registration-list-mobile-card .competition-header {
        padding: 1rem 1.1rem;
        border-bottom: 2px solid #e9ecef;
        background: #f8f9fa;
    }
    .registration-list-page .registration-list-mobile-card .competition-header .d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .registration-list-page .registration-list-mobile-card .competition-header .competition-title {
        flex-direction: column;
        align-items: flex-start;
        font-size: 1.15rem;
        line-height: 1.35;
    }
    .registration-list-page .registration-list-mobile-card .competition-meta .btn {
        width: 100%;
        justify-content: center;
        min-height: 2.75rem;
    }
    .registration-list-page .registration-list-mobile-card .registration-item {
        padding: 1rem 1.1rem;
        border-bottom: 1px solid #e9ecef;
        background: #fafbfc;
    }
    .registration-list-page .registration-list-mobile-card .registration-item:last-child {
        border-bottom: none;
    }
    .registration-list-page .registration-list-mobile-card .registration-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    .registration-list-page .registration-list-mobile-card .handler-info {
        font-size: 1.05rem;
        font-weight: 700;
        color: #212529;
    }
    .registration-list-page .registration-list-mobile-card .dog-info {
        font-size: 0.95rem;
        color: #495057;
    }
    .registration-list-page .registration-list-mobile-card .registration-details {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .registration-list-page .registration-list-mobile-card .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.2rem 0;
    }
    .registration-list-page .registration-list-mobile-card .detail-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #5a6268;
        min-width: 3.5rem;
    }
    .registration-list-page .registration-list-mobile-card .detail-value {
        font-size: 0.95rem;
        font-weight: 600;
        text-align: right;
    }
    .registration-list-page .registration-list-mobile-card .cost {
        color: #198754;
        font-weight: 700;
    }
    .registration-list-page .registration-list-mobile-card .actions {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #f1f3f4;
    }
    .registration-list-page .registration-list-mobile-card .actions a,
    .registration-list-page .registration-list-mobile-card .actions .btn-edit-icon {
        width: 100%;
        justify-content: center;
        min-height: 2.75rem;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
    }
    .registration-list-page .registration-list-mobile-cards {
        padding: 0 0.25rem;
    }
}

@media (max-width: 768px) {
    /* Make table scrollable horizontally on tablets only when needed */
    .registration-list-table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Keep table readable but compact */
    .registration-list-table {
        font-size: 0.9rem;
        min-width: 600px; /* Ensure minimum width for readability */
    }
    
    /* Adjust column widths for tablets */
    .registration-list-table thead th:nth-child(6),
    .registration-list-table tbody td:nth-child(6) {
        width: 7%;
        min-width: 70px;
        max-width: 90px;
    }
    
    .registration-list-table th, 
    .registration-list-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* Make competition headers more compact */
    .competition-info h6 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .competition-info .small {
        font-size: 0.8rem;
    }
    
    /* Ensure buttons are touch-friendly */
    .registration-list-btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    /* Switch to mobile cards for phones */
    .registration-list-table-responsive {
        display: none;
    }
    
    .registration-list-mobile-cards {
        display: block !important;
    }
    
    /* Simple, clean mobile cards */
    .registration-list-mobile-card {
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        overflow: hidden;
    }
    
    .registration-list-mobile-card .competition-header {
        background: #f8f9fa;
        padding: 1rem;
        border-bottom: 1px solid #dee2e6;
    }
    
    .registration-list-mobile-card .competition-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.5rem;
    }
    
    .registration-list-mobile-card .competition-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.85rem;
        color: #6c757d;
    }
    
    .registration-list-mobile-card .registration-item {
        padding: 1rem;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .registration-list-mobile-card .registration-item:last-child {
        border-bottom: none;
    }
    
    .registration-list-mobile-card .registration-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }
    
    .registration-list-mobile-card .handler-info {
        font-weight: 600;
        color: #212529;
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .registration-list-mobile-card .dog-info {
        color: #6c757d;
        font-size: 0.9rem;
    }
    
    .registration-list-mobile-card .registration-details {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .registration-list-mobile-card .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 0;
    }
    
    .registration-list-mobile-card .detail-label {
        color: #6c757d;
        font-weight: 500;
    }
    
    .registration-list-mobile-card .detail-value {
        color: #212529;
        font-weight: 600;
    }
    
    .registration-list-mobile-card .cost {
        color: #198754;
        font-weight: 700;
    }
    
    .registration-list-mobile-card .status-badge {
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
    }
    
    .registration-list-mobile-card .status-badge.registered {
        background: #a8e6cf !important; /* Pastel green - same as badge-registered */
        border: 1px solid #8dd9b8 !important;
        color: #000000 !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        padding: 6px 12px !important;
        border-radius: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        line-height: 1.5 !important;
    }
    
    /* Add check-circle icon for registered status in mobile view */
    /* Match the icon styling from .badge-registered i */
    .registration-list-mobile-card .status-badge.registered:before {
        content: "\f058"; /* Font Awesome check-circle icon */
        font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome";
        font-weight: 900;
        font-size: 0.875rem !important;
        margin: 0 !important;
        margin-right: 6px !important; /* Match gap: 6px from badge-registered */
        display: inline-block;
        line-height: 1;
        font-style: normal;
        font-variant: normal;
        text-transform: none;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .registration-list-mobile-card .status-badge.pending {
        background: #fff3cd;
        color: #664d03;
    }
    
    .registration-list-mobile-card .status-badge.basket {
        background: #cff4fc;
        color: #055160;
    }
    
    .registration-list-mobile-card .actions {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #f1f3f4;
    }
    
    .registration-list-mobile-card .actions .btn {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Add some breathing room */
    .registration-list-mobile-cards {
        padding: 0 0.5rem;
    }

    /* Touch-friendly action links (Edit) */
    .registration-list-mobile-card .actions a,
    .registration-list-mobile-card .actions .btn-edit-icon {
        min-height: 2.75rem;
        padding: 0.5rem 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .registration-list-mobile-card .competition-header .btn {
        min-height: 2.5rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Hide mobile cards on larger screens */
.registration-list-mobile-cards {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* Registration list page - mobile UX (touch targets, header stack)           */
/* -------------------------------------------------------------------------- */

.registration-list-page {
    overflow-x: hidden;
    min-width: 0;
    max-width: 100%;
}

.registration-list-page .card,
.registration-list-page .row,
.registration-list-page [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .registration-list-page .card-header.d-flex.flex-between-center {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .registration-list-page .card-header h5 {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 0;
    }
    /* Keep header buttons in a compact row on mobile (don't stack) */
    .registration-list-page .registration-list-header-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }
    .registration-list-page .registration-list-header-actions .btn {
        min-height: 2.5rem;
        font-size: 0.8125rem;
        padding: 0.4rem 0.65rem;
        flex: 0 1 auto;
    }
    .registration-list-page .registration-list-empty-state .btn {
        min-height: 2.75rem;
    }
    /* Table competition header: stack title and actions when table is still visible */
    .registration-list-page .registration-list-table .table-primary td .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .registration-list-page .registration-list-table .table-primary .competition-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .registration-list-page .alert .btn-close {
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .registration-list-page .registration-list-header-actions .btn {
        font-size: 0.8125rem;
        padding: 0.4rem 0.65rem;
    }
    /* Mobile cards: clearer hierarchy and touch targets */
    .registration-list-page .registration-list-mobile-card {
        margin-bottom: 1.25rem;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }
    .registration-list-page .registration-list-mobile-card .competition-label {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
        color: #6c757d;
    }
    .registration-list-page .registration-list-mobile-card .competition-header {
        padding: 1rem 1.1rem;
        border-bottom: 2px solid #e9ecef;
    }
    .registration-list-page .registration-list-mobile-card .competition-header .d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .registration-list-page .registration-list-mobile-card .competition-header .competition-title {
        flex-direction: column;
        align-items: flex-start;
        font-size: 1.15rem;
        line-height: 1.35;
    }
    .registration-list-page .registration-list-mobile-card .competition-meta .btn {
        width: 100%;
        justify-content: center;
        min-height: 2.75rem;
    }
    .registration-list-page .registration-list-mobile-card .registration-item {
        padding: 1rem 1.1rem;
        border-bottom: 1px solid #e9ecef;
        background: #fafbfc;
    }
    .registration-list-page .registration-list-mobile-card .registration-item:last-child {
        border-bottom: none;
    }
    .registration-list-page .registration-list-mobile-card .registration-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    .registration-list-page .registration-list-mobile-card .handler-info {
        font-size: 1.05rem;
        font-weight: 700;
        color: #212529;
    }
    .registration-list-page .registration-list-mobile-card .dog-info {
        font-size: 0.95rem;
        color: #495057;
    }
    .registration-list-page .registration-list-mobile-card .detail-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #5a6268;
        min-width: 3.5rem;
    }
    .registration-list-page .registration-list-mobile-card .detail-value {
        font-size: 0.95rem;
        font-weight: 600;
        text-align: right;
    }
    .registration-list-page .registration-list-mobile-card .detail-item {
        padding: 0.2rem 0;
    }
    .registration-list-page .registration-list-mobile-card .status-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
        min-height: 1.75rem;
        display: inline-flex;
        align-items: center;
    }
    .registration-list-page .registration-list-mobile-card .actions {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    .registration-list-page .registration-list-mobile-card .actions a,
    .registration-list-page .registration-list-mobile-card .actions .btn-edit-icon {
        width: 100%;
        justify-content: center;
        min-height: 2.75rem;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    .registration-list-page .registration-list-mobile-cards {
        padding: 0 0.25rem;
    }
}

/* Ensure table is always readable */
/* Table wrapper: contain horizontal scroll so page doesn't overflow (desktop only; hidden at 1024px) */
.registration-list-table-responsive {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Prevent any horizontal overflow */
.registration-list-card-body {
    overflow-x: hidden;
    min-width: 0;
}

/* Registration list: responsive padding and list separation */
@media (max-width: 767.98px) {
    .registration-list-page .card-body.registration-list-card-body {
        padding: var(--mobile-card-padding) var(--mobile-content-padding-full) !important;
    }
    .registration-list-page .card .card-body:not(.registration-list-card-body) {
        padding: var(--mobile-card-padding) var(--mobile-content-padding-full);
    }
    .registration-list-page .registration-list-mobile-card .registration-item-block {
        padding-top: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    .registration-list-page .registration-list-mobile-card .registration-item-block:last-child {
        border-bottom: none;
    }
    .registration-list-page .registration-list-mobile-card .registration-details {
        margin-top: 0.5rem;
    }
    .registration-list-page .registration-list-mobile-card .detail-item {
        padding: 0.45rem 0;
        border-bottom: 1px solid #e9ecef;
    }
    .registration-list-page .registration-list-mobile-card .detail-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 575.98px) {
    .registration-list-page .card-body.registration-list-card-body {
        padding: var(--mobile-content-padding-xs) var(--mobile-content-padding-full) !important;
    }
    .registration-list-page .registration-list-mobile-card .registration-item-block {
        padding-top: 1rem;
        padding-bottom: 1.25rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #dee2e6;
    }
    .registration-list-page .registration-list-mobile-card .registration-item-block:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }
    .registration-list-page .registration-list-mobile-card .detail-item {
        padding: 0.5rem 0;
        border-bottom-color: #dee2e6;
    }
}

/* Fix table width to prevent horizontal scroll - use fixed layout */
.registration-list-table {
    width: 100%;
    table-layout: fixed; /* Fixed layout to enforce column widths */
    margin-bottom: 0;
}

/* Column width constraints - explicit widths */
.registration-list-table thead th:nth-child(1),
.registration-list-table tbody td:nth-child(1) {
    width: 19%; /* Handler */
}

.registration-list-table thead th:nth-child(2),
.registration-list-table tbody td:nth-child(2) {
    width: 16%; /* Dog */
}

.registration-list-table thead th:nth-child(3),
.registration-list-table tbody td:nth-child(3) {
    width: 22%; /* Class */
}

.registration-list-table thead th:nth-child(4),
.registration-list-table tbody td:nth-child(4) {
    width: 13%; /* Registered */
}

.registration-list-table thead th:nth-child(5),
.registration-list-table tbody td:nth-child(5) {
    width: 10%; /* Cost */
}

.registration-list-table thead th:nth-child(6),
.registration-list-table tbody td:nth-child(6) {
    width: 7%; /* Status - much narrower */
}

.registration-list-table thead th:nth-child(7),
.registration-list-table tbody td:nth-child(7) {
    width: 13%; /* Actions */
}

/* Better visual separation */
.registration-list-table tbody tr:not(.table-primary):not(.table-light) {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.registration-list-table tbody tr:not(.table-primary):not(.table-light):hover {
    border-left-color: #4fc3f7;
    background-color: #f8f9fa;
}

/* Improved spacing for registration rows */
.registration-list-table tbody tr:not(.table-primary):not(.table-light) td {
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
}

/* Better alignment for icons and text */
.registration-list-table tbody td .d-flex {
    align-items: center;
}

/* Improved cost display */
.registration-list-table tbody td.text-success {
    font-size: 1.05rem;
    font-weight: 700;
}

/* Empty state styling */
.registration-list-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.registration-list-empty-state-icon {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
}

/* Competition section styling */
.registration-list-competition-section {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.registration-list-competition-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Enhanced competition header row styling */
.registration-list-table-primary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border-bottom: 2px solid #90caf9;
}

.registration-list-table-primary td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.registration-list-competition-info h6 {
    color: #1565c0;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.registration-list-competition-info .text-muted {
    color: #546e7a !important;
    font-weight: 500;
}

/* Match Add Registration button height to badge - ensure exact same height */
.registration-list-competition-actions .btn-primary.btn-sm {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    height: calc(0.875rem * 1.5 + 0.375rem * 2) !important; /* Exact height: font-size * line-height + padding */
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    border-width: 1px !important;
}

/* Ensure competition status badge matches button height exactly */
.registration-list-competition-actions .badge {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    height: calc(0.875rem * 1.5 + 0.375rem * 2) !important; /* Exact same height as button */
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* Improved button styling */
.registration-list-btn-scoring {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(41, 182, 246, 0.3);
    transition: all 0.3s ease;
}

.registration-list-btn-scoring:hover {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
    box-shadow: 0 4px 8px rgba(41, 182, 246, 0.4);
    transform: translateY(-1px);
    color: white;
}

/* Improved table styling */
.registration-list-table {
    border-collapse: separate;
    border-spacing: 0;
}

.registration-list-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 0.875rem 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.registration-list-table tbody tr {
    transition: background-color 0.2s ease;
}

.registration-list-table tbody tr:hover {
    background-color: #f8f9fa;
}

.registration-list-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

/* Prevent text wrapping in specific columns */
.registration-list-table tbody td:nth-child(6) {
    white-space: nowrap;
    text-align: center;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

/* Make status badges match OPEN badge height */
.registration-list-table tbody td:nth-child(6) .badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Ensure table fits container without scrollbar */
@media (min-width: 769px) {
    .registration-list-table-responsive {
        overflow-x: hidden;
    }
}

/* Compact registration list at 1440px so table actions/buttons remain usable */
@media (max-width: 1440px) and (min-width: 769px) {
    .registration-list-page .card-body.registration-list-card-body {
        padding: 0.75rem 1rem !important;
    }
    .registration-list-page .card .card-body:not(.registration-list-card-body) {
        padding: 0.75rem 1rem;
    }
    .registration-list-table thead th {
        padding: 0.5rem 0.5rem;
        font-size: 0.7rem;
    }
    .registration-list-table tbody tr:not(.table-primary):not(.table-light) td {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .registration-list-table tbody td {
        padding: 0.5rem 0.5rem;
        font-size: 0.8125rem;
    }
    .registration-list-table tbody td:nth-child(6) {
        min-width: 5.5rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
    .registration-list-table thead th:nth-child(7),
    .registration-list-table tbody td:nth-child(7) {
        min-width: 5.5rem;
        width: 12%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .registration-list-table thead th:nth-child(1),
    .registration-list-table tbody td:nth-child(1) { width: 16%; }
    .registration-list-table thead th:nth-child(2),
    .registration-list-table tbody td:nth-child(2) { width: 14%; }
    .registration-list-table thead th:nth-child(3),
    .registration-list-table tbody td:nth-child(3) { width: 24%; }
    .registration-list-table thead th:nth-child(4),
    .registration-list-table tbody td:nth-child(4) { width: 12%; }
    .registration-list-table thead th:nth-child(5),
    .registration-list-table tbody td:nth-child(5) { width: 9%; }
    .registration-list-table thead th:nth-child(6),
    .registration-list-table tbody td:nth-child(6) { width: 9%; }
    .registration-list-table tbody td:nth-child(6) .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    .registration-list-table .table-primary td {
        padding: 0.6rem 0.75rem;
    }
    .registration-list-table .table-primary .competition-info h6 {
        font-size: 1rem;
    }
    .registration-list-table .table-primary .competition-info .small {
        font-size: 0.75rem;
    }
    .registration-list-table .table-primary .competition-actions .badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    .registration-list-table .table-primary .competition-actions .btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    .registration-list-table tbody td.text-success {
        font-size: 0.9rem;
    }
    .registration-list-table tbody td .btn-edit-icon.with-text,
    .registration-list-table tbody td a.btn-edit-icon.with-text {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }
    .registration-list-page .registration-list-header-actions .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Allow text wrapping in other columns if needed */
.registration-list-table tbody td:nth-child(3) {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Improved status badge styling */
.registration-list-table tbody .badge {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
}

/* Improved Details button - icon only */
.registration-list-btn-falcon-info {
    border: 1px solid #4fc3f7;
    color: #0288d1;
    background: white;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.375rem 0.5rem;
    width: auto;
    min-width: 2rem;
}

.registration-list-btn-falcon-info:hover {
    background: #e1f5fe;
    border-color: #29b6f6;
    color: #0277bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(41, 182, 246, 0.2);
}

.registration-list-btn-falcon-info i {
    margin: 0;
}

/* Indent registration rows under competition headers - single character indent */
.registration-list-table-primary ~ tr:not(.table-primary):not(.table-light) td:first-child {
    padding-left: 0.6rem;
}

/* Also indent mobile card registration items */
.registration-list-mobile-card .registration-item {
    margin-left: 0.6rem;
}

/* Cost styling */
.registration-list-text-success-fw-bold {
    color: #198754 !important;
    font-size: 1rem;
}

/* Icon styling improvements */
.registration-list-table tbody td .fas {
    width: 18px;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .registration-list-competition-header .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }
    
    .registration-list-competition-actions {
        justify-content: center;
    }
    
    /* Reduce indent on tablets */
    .registration-list-table-primary ~ tr:not(.table-primary):not(.table-light) td:first-child {
        padding-left: 0.6rem;
    }
}

@media (max-width: 480px) {
    .registration-list-competition-info .d-flex {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Reduce indent on mobile */
    .registration-list-table-primary ~ tr:not(.table-primary):not(.table-light) td:first-child {
        padding-left: 0.6rem;
    }
    
    .registration-list-mobile-card .registration-item {
        margin-left: 0.6rem;
    }
}

/* CSS extracted from /var/www/html/members/events/event-list.php */

/* Event list button styles */
/* .register-now-btn {
    background: #28a745 !important;
    border: 1px solid #198754 !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    padding: 6px 6px !important;
    color: #fff !important;
    font-weight: 500 !important;
    transition: background 0.2s !important; 
    border: 0.2s !important;
}

.register-now-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3) !important;
}

.register-now-btn:hover::before {
    left: 100% !important;
}

.details-btn {
    background: #055160 !important;
    border: 1px solid #198754 !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    padding: 6px 6px !important;
    color: #fff !important;
    font-weight: 500 !important;
    transition: background 0.2s !important; 
    border: 0.2s !important;
} */

/* Responsive Design for event list */
@media (max-width: 768px) {
    .register-now-btn, 
    .details-btn {
        font-size: 0.9rem !important;
        padding: 10px 16px !important;
        letter-spacing: 0.3px !important;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table th, 
    .table td {
        padding: 8px 4px !important;
    }
    
    .table th {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .d-flex.gap-2 {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .d-flex.gap-2 .btn {
        width: 100% !important;
        text-align: center !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-header {
        padding: 1rem !important;
    }
    
    .card-header h5 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    .register-now-btn, 
    .details-btn {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }
    
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .table th, 
    .table td {
        padding: 6px 2px !important;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .card-header {
        padding: 0.75rem !important;
    }
    
    .card-header h5 {
        font-size: 1rem !important;
    }
    
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Mobile card layout for very small screens */
@media (max-width: 480px) {
    .table-responsive {
        display: none;
    }
    
    .mobile-cards {
        display: block !important;
    }
    
    .mobile-card {
        background: white;
        border: 1px solid #e3e6f0;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .mobile-card h6 {
        color: #5e72e4;
        font-weight: bold;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    .mobile-card .event-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }
    
    .mobile-card .event-info span {
        font-weight: 600;
    }
    
    .mobile-card .status {
        text-align: center;
        margin-bottom: 1rem;
        padding: 4px 8px;
        border-radius: 4px;
        font-weight: 600;
        font-size: 0.8rem;
    }
    
    .mobile-card .status.registered {
        background: #d1ecf1;
        color: #0c5460;
    }
    
    .mobile-card .status.closed {
        background: #f8d7da;
        color: #721c24;
    }
    
    .mobile-card .status.open {
        background: #d4edda;
        color: #155724;
    }
    
    .mobile-card .actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-card .actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Hide mobile cards on larger screens */
.mobile-cards {
    display: none;
}

/* CSS extracted from /var/www/html/members/basket/basket.php */

.basket-item {
    border: 1px solid #e3e6f0;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.basket-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-type-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-handler {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-dog {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.badge-class {
    background-color: #e8f5e8;
    color: #388e3c;
}

.item-details {
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

.basket-summary {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.empty-basket {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #6c757d;
}

.empty-basket i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.expiration-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.basket-info {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Credit balance card styles */
.credit-balance-card {
    border-left: 4px solid #28a745 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.credit-balance-card:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    transform: translateY(-1px);
}

.credit-balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.border-left-success {
    border-left: 4px solid #28a745 !important;
}

/* New Clean Design Styles */
.basket-container {
    max-width: 1200px;
    margin: 0 auto;
}

.item-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.item-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.item-icon.handler { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.item-icon.dog { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }
.item-icon.class { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; }

.payment-options {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.payment-options.compact-summary {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.payment-options.compact-summary .payment-option {
    padding: 0.4rem 0.5rem;
    margin-bottom: 0.35rem;
}

.payment-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.payment-option:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.payment-option.active {
    border-color: #007bff;
    background: #f8f9ff;
}

.payment-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-option.disabled:hover {
    border-color: #e9ecef;
    box-shadow: none;
}

.summary-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 10px;
}

.total-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 0.75rem;
}

.form-control-clean {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.form-control-clean:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0,123,255,0.25);
}

.btn-clean {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-clean:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.status-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-applied {
    background: #d4edda;
    color: #155724;
}

.status-available {
    background: #d1ecf1;
    color: #0c5460;
}

.status-disabled {
    background: #f8d7da;
    color: #721c24;
}

/* Credit bracket button styles */
.credit-bracket-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-width: 1px;
}

.credit-bracket-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.credit-bracket-btn:active {
    transform: translateY(0);
}

/* Hide increment/decrement buttons on number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Enhanced voucher display styles */
.voucher-pricing {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

.item-card.border-warning {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 0 0 0.15rem rgba(255, 193, 7, 0.25);
}

.voucher-summary-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 3px rgba(255, 193, 7, 0.3); }
    100% { box-shadow: 0 0 10px rgba(255, 193, 7, 0.6); }
}

.savings-highlight {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    border-radius: 4px;
    padding: 0.35rem;
    margin-top: 0.25rem;
}

.price-comparison {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.8rem;
}

.final-price {
    color: #28a745;
    font-weight: bold;
    font-size: 1rem;
}

.savings-amount {
    color: #ffc107;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Ensure voucher remove button is clickable */
.remove-voucher-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10;
    position: relative;
}

.remove-voucher-btn:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.remove-voucher-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* -------------------------------------------------------------------------- */
/* Basket page - full responsivity                                            */
/* -------------------------------------------------------------------------- */

/* Card header: wrap title and actions on small screens */
@media (max-width: 767.98px) {
    .basket-page .card-header.d-flex.flex-between-center,
    .basket-container .card-header.d-flex.flex-between-center {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .basket-page .card-header .d-flex.gap-2,
    .basket-container .card-header .d-flex.gap-2 {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .basket-page .card-header h5,
    .basket-container .card-header h5 {
        font-size: 1rem;
    }
}

/* Item cards: allow content to shrink and stack price/remove on narrow screens */
.basket-page .item-card .flex-grow-1,
.basket-container .item-card .flex-grow-1 {
    min-width: 0;
}
.basket-page .item-card .d-flex.align-items-center,
.basket-container .item-card .d-flex.align-items-center {
    flex-wrap: wrap;
    gap: 0.5rem;
}
.basket-page .item-card .text-end.ms-2,
.basket-container .item-card .text-end.ms-2 {
    min-width: 0;
    margin-left: 0;
}

@media (max-width: 575.98px) {
    .basket-page .item-card .d-flex.align-items-center,
    .basket-container .item-card .d-flex.align-items-center {
        flex-direction: column;
        align-items: stretch;
    }
    .basket-page .item-card .d-flex.align-items-center > .item-icon,
    .basket-container .item-card .d-flex.align-items-center > .item-icon {
        align-self: flex-start;
    }
    .basket-page .item-card .text-end.ms-2,
    .basket-container .item-card .text-end.ms-2 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        border-top: 1px solid #eee;
        padding-top: 0.5rem;
        margin-top: 0.25rem;
    }
    .basket-page .item-card .text-end .btn-sm,
    .basket-container .item-card .text-end .btn-sm {
        min-height: 2.25rem;
    }
}

/* Empty state: wrap buttons and ensure touch targets */
@media (max-width: 767.98px) {
    .basket-page .empty-state .d-flex.gap-2.justify-content-center,
    .basket-container .empty-state .d-flex.gap-2.justify-content-center {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .basket-page .empty-state .btn-clean,
    .basket-container .empty-state .btn-clean {
        min-height: 2.75rem;
    }
}

/* Summary card: reduce sticky on mobile, full width padding */
@media (max-width: 991.98px) {
    .basket-page .summary-card,
    .basket-container .summary-card {
        position: static;
    }
}
@media (max-width: 767.98px) {
    .basket-page .summary-card .p-4,
    .basket-container .summary-card .p-4 {
        padding: 1rem !important;
    }
    .basket-page .payment-options,
    .basket-container .payment-options {
        padding: 0.5rem;
    }
    .basket-page .payment-option,
    .basket-container .payment-option {
        padding: 0.5rem;
    }
}

/* Payment inputs and buttons: touch-friendly and full width where needed */
@media (max-width: 575.98px) {
    .basket-page .input-group.input-group-sm,
    .basket-container .input-group.input-group-sm {
        flex-wrap: wrap;
    }
    .basket-page .input-group .form-control,
    .basket-page .input-group .btn,
    .basket-container .input-group .form-control,
    .basket-container .input-group .btn {
        min-height: 2.5rem;
    }
    .basket-page #voucher-form .input-group,
    .basket-container #voucher-form .input-group {
        flex-direction: column;
    }
    .basket-page #voucher-form .input-group .form-control,
    .basket-page #voucher-form .input-group .btn,
    .basket-container #voucher-form .input-group .form-control,
    .basket-container #voucher-form .input-group .btn {
        width: 100%;
        border-radius: 0.375rem;
    }
    .basket-page #voucher-form .input-group .form-control,
    .basket-container #voucher-form .input-group .form-control {
        border-radius: 0.375rem 0.375rem 0 0;
    }
    .basket-page #voucher-form .input-group .btn,
    .basket-container #voucher-form .input-group .btn {
        border-radius: 0 0 0.375rem 0.375rem;
    }
}

/* Order summary section spacing on small screens */
@media (max-width: 767.98px) {
    .basket-page .col-lg-4,
    .basket-container .col-lg-4 {
        margin-top: 0;
    }
    .basket-page .basket-container .row.g-2,
    .basket-container .row.g-2 {
        gap: 1rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Basket page - mobile UX (touch targets, spacing, hierarchy)                */
/* -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    /* Header: tap-friendly actions */
    .basket-page .basket-header-actions .btn,
    .basket-container .basket-header-actions .btn {
        min-height: 2.75rem;
        padding: 0.5rem 1rem;
    }
    .basket-page .basket-header-actions,
    .basket-container .basket-header-actions {
        gap: 0.5rem;
    }

    /* Item cards: more padding and clearer hierarchy */
    .basket-page .item-card,
    .basket-container .item-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    .basket-page .item-icon,
    .basket-container .item-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .basket-page .item-card .text-end .btn-sm,
    .basket-container .item-card .text-end .btn-sm {
        min-height: 2.75rem;
        padding: 0.5rem 1rem;
    }
    .basket-page .item-card .fw-semibold,
    .basket-container .item-card .fw-semibold {
        font-size: 1rem;
    }

    /* Items section heading */
    .basket-page .basket-items-heading,
    .basket-container .basket-items-heading {
        font-size: 1rem;
        font-weight: 600;
    }
    .basket-page .basket-add-more .btn,
    .basket-container .basket-add-more .btn {
        min-height: 2.75rem;
    }

    /* Summary: prominent total and CTA */
    .basket-page .summary-card .p-4 .h5,
    .basket-page .summary-card .p-4 .h4,
    .basket-container .summary-card .p-4 .h5,
    .basket-container .summary-card .p-4 .h4 {
        font-size: 1.25rem;
    }
    .basket-page .basket-cta-primary,
    .basket-container .basket-cta-primary {
        min-height: 3rem;
        font-size: 1rem;
        font-weight: 600;
        padding: 0.75rem 1rem;
    }
    .basket-page .basket-clear-secondary,
    .basket-container .basket-clear-secondary {
        min-height: 2.75rem;
    }
    .basket-page .basket-summary-actions .d-grid,
    .basket-container .basket-summary-actions .d-grid {
        gap: 0.75rem;
    }

    /* Payment options: touch-friendly inputs and buttons */
    .basket-page .payment-option,
    .basket-container .payment-option {
        padding: 0.75rem;
    }
    .basket-page .credit-bracket-btn,
    .basket-container .credit-bracket-btn {
        min-height: 2.75rem;
    }
    .basket-page .payment-option .btn-sm,
    .basket-container .payment-option .btn-sm {
        min-height: 2.5rem;
        padding: 0.5rem 0.75rem;
    }

    /* Alerts: larger tap target for close */
    .basket-page .alert .btn-close,
    .basket-container .alert .btn-close {
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    /* Empty state: stack buttons full width for easy tap */
    .basket-page .basket-empty-actions,
    .basket-container .basket-empty-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .basket-page .basket-empty-actions .btn,
    .basket-container .basket-empty-actions .btn {
        width: 100%;
        min-height: 2.75rem;
        justify-content: center;
    }
    .basket-page .basket-empty-state .text-center .btn-clean,
    .basket-container .basket-empty-state .text-center .btn-clean {
        min-height: 2.75rem;
        width: 100%;
    }

    /* Header actions: full width when stacked */
    .basket-page .card-header .basket-header-actions,
    .basket-container .card-header .basket-header-actions {
        width: 100%;
    }
    .basket-page .basket-header-actions .btn,
    .basket-container .basket-header-actions .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    /* Item card price/remove row: full width tap area */
    .basket-page .item-card .text-end.ms-2,
    .basket-container .item-card .text-end.ms-2 {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    .basket-page .item-card .text-end .btn-outline-danger,
    .basket-container .item-card .text-end .btn-outline-danger {
        min-height: 2.75rem;
        padding: 0.5rem 1rem;
    }

    /* Voucher pricing block: stack on very small screens */
    .basket-page .voucher-pricing .price-comparison,
    .basket-container .voucher-pricing .price-comparison {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Handlers list page - full responsivity                                     */
/* -------------------------------------------------------------------------- */

/* Page container: prevent horizontal overflow */
.handlers-list-page {
    overflow-x: hidden;
    min-width: 0;
}

/* Card header: stack title and actions on small screens */
@media (max-width: 767.98px) {
    .handlers-list-page .card-header.d-flex.flex-between-center {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .handlers-list-page .handlers-list-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .handlers-list-page .handlers-list-header-actions .btn {
        justify-content: center;
        min-height: 2.5rem;
    }
    .handlers-list-page .card-header h5 {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .handlers-list-page .handlers-list-header-actions .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Desktop table: ensure horizontal scroll when needed */
.handlers-list-page .handlers-list-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.handlers-list-page .handlers-list-table {
    min-width: 0;
}

/* Mobile handler cards: touch-friendly actions and no overflow */
@media (max-width: 767.98px) {
    .handlers-list-page .handler-actions-mobile {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .handlers-list-page .handler-actions-mobile .btn,
    .handlers-list-page .handler-actions-mobile .btn-edit-icon,
    .handlers-list-page .handler-actions-mobile .btn-delete-icon {
        min-height: 2.5rem;
        min-width: 2.5rem;
    }
    .handlers-list-page .handler-actions-mobile .btn-mobile {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .handlers-list-page .handler-details-mobile {
        grid-template-columns: 1fr;
    }
    .handlers-list-page .handler-actions-mobile {
        flex-direction: column;
    }
    .handlers-list-page .handler-actions-mobile .btn,
    .handlers-list-page .handler-actions-mobile .btn-edit-icon,
    .handlers-list-page .handler-actions-mobile .btn-delete-icon {
        width: 100%;
        justify-content: center;
    }
}

/* Empty state: wrap buttons and touch targets */
@media (max-width: 767.98px) {
    .handlers-list-page .empty-state .d-flex.flex-wrap {
        gap: 0.5rem;
    }
    .handlers-list-page .empty-state .btn {
        min-height: 2.5rem;
    }
}

/* CSS extracted from /var/www/html/members/registration/register.php */

/* Email validation indicator styles */
.email-validation-indicator {
  background-color: #f8f9fa;
  border-left: 3px solid #dee2e6;
  transition: all 0.3s ease;
  min-width: 45px;
}

.email-validation-indicator.valid {
  background-color: #d4edda;
  border-left-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.email-validation-indicator.invalid {
  background-color: #f8d7da;
  border-left-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.email-validation-indicator.exists {
  background-color: #fff3cd;
  border-left-color: #ffc107;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.1);
}

.form-control.email-exists {
  border-color: #ffc107;
  border-width: 2px;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.3);
}

.email-validation-feedback.exists {
  color: #856404;
}

/* Disabled form state when email exists */
.form-disabled {
  position: relative;
}

.form-disabled #card-password,
.form-disabled #card-confirm-password,
.form-disabled #card-register-checkbox,
.form-disabled #password-requirements {
  opacity: 0.5;
  pointer-events: none;
}

.form-disabled .form-label:not([for="card-email"]) {
  opacity: 0.5;
}

.email-validation-indicator i {
  font-size: 16px;
}

.form-control.email-valid {
  border-color: #28a745;
  border-width: 2px;
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.3);
}

.form-control.email-invalid {
  border-color: #dc3545;
  border-width: 2px;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.3);
}

.email-validation-feedback {
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 13px;
}

.email-validation-feedback.valid {
  color: #155724;
}

.email-validation-feedback.invalid {
  color: #721c24;
}
