/* Custom styles for CRM WebCore project */

/* Modal body background */
.modal-body {
    background-color: white;
}

/* Modal footer background */
.modal-footer {
    background-color: white;
}

/* PopUpForm reset and styling */
.PopUpForm {
    z-index: 999 !important;
    box-shadow: silver 3px 3px 3px !important;
    width: 1440px !important;
    height: 1080px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    border: 1px solid gray !important;
    background-color: white !important;
}

/* Bootstrap dropdown z-index fixes */
.dropdown-menu {
    z-index: 999998 !important;
}

/* Navigation dropdown menus */
.navbar .dropdown-menu {
    z-index: 999998 !important;
}

/* Ensure all dropdowns appear above page content */
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu,
.dropdown-menu.show {
    z-index: 999998 !important;
}

/* Reduced font sizes for more Tabler-like appearance */
.page-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.page-pretitle {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.page-subtitle {
    font-size: 0.875rem !important;
}

/* Smaller button sizes */
.btn {
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
}

.btn-lg {
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
}

/* Smaller card titles */
.card-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* Smaller table headers */
.table th {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Smaller table cells */
.table td {
    font-size: 0.875rem !important;
}

/* Smaller form labels */
.form-label {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* Smaller form controls */
.form-control, .form-select {
    font-size: 0.875rem !important;
}

/* Smaller badges */
.badge {
    font-size: 0.75rem !important;
}

/* Smaller avatars */
.avatar {
    width: 2rem !important;
    height: 2rem !important;
    font-size: 0.75rem !important;
}

/* Smaller statistics numbers */
.people-stat-number {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.people-stat-description {
    font-size: 0.75rem !important;
}

/* Person List Page Styles */
.search-results-dropdown {
    overflow: hidden !important; /* No scrollbar here */
    max-height: 400px !important;
}

.search-content {
    overflow-y: auto !important; /* Only scrollbar here */
    max-height: 400px !important;
}

.search-results {
    overflow: visible !important; /* No scrollbar here */
}

.navbar .input-group .btn {
    border: none;
    background: var(--tblr-primary);
    color: white;
    padding: 0.5rem;
    border-radius: 0px !important;
    text-align: center;
}

.input-group .btn svg {
    width: 16px;
    height: 16px;
    margin-right: auto;
}

/* Remove custom card styling to use Tabler defaults */
.people-card {
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    overflow: hidden;
    transition: all 0.3s ease;
}

.people-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);
}

.card {
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);
}

.bg-pink {
    background-color: #ec4899 !important;
}

.bg-green {
    background-color: #10b981 !important;
}

.bg-blue {
    background-color: #3b82f6 !important;
}

.bg-yellow {
    background-color: #f59e0b !important;
}

.font-weight-medium {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-body {
    padding: 1.5rem;
}

.people-search-enhanced {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.people-table-enhanced {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.people-table-header {
    background: var(--tblr-light);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.people-table-content {
    overflow-x: auto;
}

.people-table table {
    margin: 0;
}

.people-table th {
    background: var(--tblr-light);
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

.people-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-top: 1px solid var(--tblr-border-color);
}

.people-table tbody tr {
    transition: all 0.2s ease;
}

.people-table tbody tr:hover {
    background: var(--tblr-light);
}

.person-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tblr-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 0.75rem;
}

.person-name {
    font-weight: 600;
    color: var(--tblr-dark);
    margin-bottom: 0.25rem;
}

.person-details {
    font-size: 0.875rem;
    color: var(--tblr-secondary);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: var(--tblr-success-rgb);
    color: white;
}

.status-inactive {
    background: var(--tblr-secondary-rgb);
    color: white;
}

.status-goneaway {
    background: var(--tblr-warning-rgb);
    color: white;
}

.status-deceased {
    background: var(--tblr-danger-rgb);
    color: white;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--tblr-border-color);
    background: white;
    color: var(--tblr-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: var(--tblr-primary);
    color: white;
    border-color: var(--tblr-primary);
}
