/* Existing styles... */

/* ===== GUEST TABLE STYLING ===== */
.guest-table-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.guest-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.guest-table-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.guest-table-header {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.guest-table-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.guest-table-header h2 {
    color: #2c3e50;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.guest-table-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 60px; }
}

.guest-table-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.guest-table-actions .btn {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.guest-table-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.guest-table-actions .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
}

.guest-table-actions .btn-success {
    background: linear-gradient(45deg, #56ab2f, #a8e6cf);
    border: none;
}

/* Table Styling */
#guestsTable {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: none;
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 2;
}

#guestsTable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

#guestsTable thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

#guestsTable thead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#guestsTable thead th {
    border: none;
    padding: 25px 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.95rem;
    text-align: center;
    position: relative;
    background: transparent;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#guestsTable thead th:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

#guestsTable thead th:first-child {
    border-top-right-radius: 15px;
}

#guestsTable thead th:last-child {
    border-top-left-radius: 15px;
}

#guestsTable tbody tr {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border: none;
    position: relative;
    background: rgba(255, 255, 255, 0.85);
}

#guestsTable tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.8);
}

#guestsTable tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.04) 100%);
    transform: translateY(-1px) scale(1.002);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 5;
}

#guestsTable tbody tr:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.03), transparent);
    animation: shimmer 2.2s ease-in-out;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-80%); }
    100% { transform: translateX(80%); }
}

#guestsTable tbody td {
    border: none;
    padding: 20px 18px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

#guestsTable tbody tr:hover td {
    color: #2c3e50;
    font-weight: 500;
}

/* Guest Row Styling */
.main-guest-row {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    border-left: 5px solid #667eea;
    position: relative;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
    margin-bottom: 2px;
}

.main-guest-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.main-guest-row::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.companion-row {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.9) 100%);
    border-left: 5px solid #6c757d;
    margin-right: 25px;
    position: relative;
    box-shadow: 0 1px 5px rgba(108, 117, 125, 0.1);
    margin-bottom: 1px;
}

.companion-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    border-radius: 0 3px 3px 0;
}

.companion-row::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #6c757d;
    border-radius: 50%;
    opacity: 0.7;
}

/* Guest Name Styling */
.guest-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.companion-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-style: italic;
}

.companion-indent {
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #6c757d, transparent);
    border-radius: 1px;
}

.companion-text {
    font-weight: 500;
}

/* Badge Styling */
.badge {
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.badge.bg-primary {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
}

.badge.bg-success {
    background: linear-gradient(45deg, #56ab2f, #a8e6cf) !important;
    color: #2c3e50 !important;
}

.badge.bg-secondary {
    background: linear-gradient(45deg, #6c757d, #adb5bd) !important;
}

.badge.bg-info {
    background: linear-gradient(45deg, #17a2b8, #20c997) !important;
}

.badge.bg-light {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef) !important;
    color: #6c757d !important;
}

/* Action Buttons */
.guest-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.guest-actions .btn {
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.guest-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.guest-actions .btn:hover::before {
    left: 100%;
}

.guest-actions .btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.guest-actions .btn:active {
    transform: translateY(-1px) scale(1.05);
}

.guest-actions .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
}

.guest-actions .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.guest-actions .btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: none;
    color: white;
}

.guest-actions .btn-danger:hover {
    background: linear-gradient(135deg, #ff5252, #e53935);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Phone Links */
a[href^="tel:"] {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

a[href^="tel:"]:hover {
    color: #764ba2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Status Icons */
.fas {
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guest-table-container {
        padding: 15px;
        margin: 10px 0;
    }
    
    .guest-table-header {
        padding: 20px 15px;
    }
    
    #guestsTable thead th {
        padding: 15px 8px;
        font-size: 0.8rem;
    }
    
    #guestsTable tbody td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .guest-table-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .guest-table-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Sort Buttons Styling */
.sort-buttons-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-sort {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid rgba(108, 117, 125, 0.2);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-sort:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border-color: transparent;
    text-decoration: none;
}

.btn-sort.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-sort i {
    font-size: 0.9rem;
}

/* Search Form Styling */
.form-control {
    border-radius: 10px;
    border: 2px solid rgba(108, 117, 125, 0.2);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-outline-primary {
    border-radius: 10px;
    border: 2px solid #667eea;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-outline-secondary {
    border-radius: 10px;
    border: 2px solid #6c757d;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Statistics Cards - Enhanced Design */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 20px 20px 0 0;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.stat-card:hover .stat-icon::before {
    animation: shine 0.8s ease-in-out;
}

.stat-content {
    flex: 1;
    text-align: right;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-content p {
    margin: 0;
    color: #6c757d;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Individual card colors */
.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    box-shadow: 0 8px 20px rgba(86, 171, 47, 0.3);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.3);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #56ab2f, #a8e6cf);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #17a2b8, #20c997);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, #ffc107, #ff8c00);
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Advanced Filters */
.advanced-filters {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-header h5 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.filter-form {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.filter-form .form-control,
.filter-form .form-select {
    border-radius: 8px;
    border: 2px solid rgba(108, 117, 125, 0.2);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.export-buttons .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.export-buttons .btn-group .btn {
    border-radius: 10px 0 0 10px;
}

.export-buttons .btn-group .dropdown-toggle {
    border-radius: 10px;
}

.export-buttons .dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.export-buttons .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 2px;
}

.export-buttons .dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

/* Guest Actions Enhancement */
.guest-actions .btn {
    position: relative;
    overflow: hidden;
}

.guest-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.guest-actions .btn:hover::before {
    width: 100%;
    height: 100%;
}

/* Table Row Enhancements */
#guestsTable tbody tr {
    position: relative;
    overflow: hidden;
}

#guestsTable tbody tr::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

#guestsTable tbody tr:hover::before {
    left: 100%;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Click effect for stat cards */
.stat-card.clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Bounce animation for icons */
.stat-icon.bounce {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced ripple effect */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* Glow effect on hover */
.stat-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 
                0 0 0 1px rgba(102, 126, 234, 0.1);
}

.stat-card:hover .stat-icon {
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4),
                0 0 20px rgba(102, 126, 234, 0.2);
}

/* Number counter animation */
.stat-content h3 {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

/* Loading state for cards */
.stat-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.stat-card.loading .stat-icon {
    animation: spin 1s linear infinite;
}

/* Success state animation */
.stat-card.success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(40, 167, 69, 0.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced button effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn:hover::after {
    width: 100%;
    height: 100%;
}

/* Filter form enhancements */
.filter-form .form-control:focus,
.filter-form .form-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* Table enhancements */
#guestsTable tbody tr {
    transition: all 0.3s ease;
}

#guestsTable tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* Loading states */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Statistics Cards Animation */
.stat-card {
    animation: slideInUp 0.6s ease-out;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for numbers */
.stat-content h3 {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Floating particles effect */
.stat-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 4px;
    height: 4px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.stat-card:nth-child(2)::after {
    background: rgba(86, 171, 47, 0.3);
    animation-delay: 0.5s;
}

.stat-card:nth-child(3)::after {
    background: rgba(23, 162, 184, 0.3);
    animation-delay: 1s;
}

.stat-card:nth-child(4)::after {
    background: rgba(255, 193, 7, 0.3);
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Enhanced hover effects */
.stat-card:hover .stat-content h3 {
    animation: none;
    transform: scale(1.1);
}

.stat-card:hover .stat-content p {
    color: #667eea;
    transform: translateX(-5px);
}

/* Responsive enhancements */
@media (max-width: 992px) {
    .stat-card {
        margin-bottom: 15px;
        padding: 20px;
        min-height: 100px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stat-content h3 {
        font-size: 2rem;
    }
    
    .advanced-filters {
        padding: 15px;
    }
    
    .filter-form {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        min-height: 120px;
    }
    
    .stat-icon {
        margin: 0 auto 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .stat-content p {
        font-size: 0.9rem;
    }
    
    .export-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .export-buttons .btn {
        width: 100%;
    }
}

/* Additional Interactive Effects */
.row-hover {
    transform: translateY(-2px) scale(1.005) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 100 !important;
}

.btn-float {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.search-focused {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3) !important;
    border-color: #667eea !important;
}

.btn-sort.loading {
    position: relative;
    color: transparent !important;
}

.btn-sort.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced table animations */
#guestsTable tbody tr {
    animation: slideInFromBottom 0.6s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing effect for active elements */
.guest-table-container.active {
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.2);
    transform: scale(1.01);
}

/* Responsive Design for Sort Buttons */
@media (max-width: 768px) {
    .sort-buttons-container {
        justify-content: center;
        margin-top: 15px;
    }
    
    .btn-sort {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .row.mb-4 {
        flex-direction: column;
    }
    
    .col-md-6 {
        margin-bottom: 15px;
    }
    
    .stat-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .export-buttons {
        justify-content: center;
        margin-top: 15px;
    }
    
    .filter-form .row {
        flex-direction: column;
    }
    
    .filter-form .col-md-1,
    .filter-form .col-md-2,
    .filter-form .col-md-3 {
        margin-bottom: 15px;
    }
    
    .guest-actions .btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    #guestsTable thead th {
        padding: 15px 10px;
        font-size: 0.8rem;
    }
    
    #guestsTable tbody td {
        padding: 15px 10px;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .guest-table-container {
        background: white !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    
    #guestsTable {
        background: white !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    #guestsTable thead {
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    #guestsTable tbody tr:hover {
        background: white !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Custom Checkbox Style */
.fancy-verification-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    border: 2px solid #198754 !important;  /* Bootstrap success color */
    border-radius: 6px !important;
    background-color: white !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.fancy-verification-checkbox:checked {
    background-color: #198754 !important;  /* Bootstrap success color */
    border-color: #198754 !important;
}

.fancy-verification-checkbox:checked::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fancy-verification-checkbox:hover {
    box-shadow: 0 0 8px rgba(25, 135, 84, 0.4) !important;
    transform: scale(1.05);
}

.fancy-verification-label {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fancy-verification-label:hover {
    background-color: rgba(25, 135, 84, 0.1);
}

.fancy-verification-checkbox:checked ~ .fancy-verification-label {
    background-color: rgba(25, 135, 84, 0.1);
}

.verification-help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-right: 2.2rem;
    margin-top: 0.25rem;
}