:root {
    --primary-gradient: linear-gradient(135deg, #aa7c23 0%, #bd974d 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #aa7c23;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.background-image>* {
    position: relative;
    z-index: 2;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-container .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.search-container .form-control {
    border: none;
    padding: 18px 25px;
    font-size: 16px;
    background: transparent;
    color: var(--text-dark);
}

.search-container .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.search-container .input-group-text {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container .input-group-text:hover {
    transform: scale(1.05);
}



.card-search .card-body {
    padding: 2rem;
}

.filter-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.filter-card label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-secondary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 15px 20px !important;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--primary-gradient);
}

.table-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

/* Enhanced DataTable Styles */
#profiles-grid {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #e0dddd;
    border-radius: 15px;
}

#profiles-grid thead th {
    background: var(--primary-gradient);
    color: white;
    padding: 15px 10px;
    font-weight: 600;
    text-align: left;
    border: none;
    position: relative;
}

#profiles-grid thead th:first-child {
    border-top-left-radius: 15px;
}

#profiles-grid thead th:last-child {
    border-top-right-radius: 15px;
}

#profiles-grid tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

#profiles-grid tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

#profiles-grid tbody td {
    padding: 18px 15px;
    vertical-align: middle;
    border: none;
    color: var(--text-dark);
}

#profiles-grid tbody tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

#profiles-grid tbody tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.magic-number-badge {
    background: var(--secondary-gradient);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px;
    display: inline-block;
}

.magic-number-no {
    background: #e2e8f0;
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.number-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    min-width: 30px;
    text-align: center;
    display: inline-block;
}

.gender-badge {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    background-color: #e2e8f0;
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.form-switch .form-check-input:checked {
    background-color: var(--accent-color);
    background-image: none;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin: 1rem 0;
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
    /* line-height: 18px; */
    padding: 7px 18px;
    font-size: 1rem;
    min-height: 52px !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .text-medium {
        font-size: 2.5rem;
    }

    .filter-card {
        padding: 1rem;
    }

    .search-container .form-control {
        padding: 15px 20px;
    }
}