/* Home page theme: Modern design with custom colors and microanimations */

:root {
    --primary: #00809D;      /* Custom teal */
    --secondary: #154D71;     /* Custom dark blue */
    --success: #28a745;       /* Green */
    --danger: #dc3545;       /* Red */
    --warning: #ffc107;      /* Yellow/Orange */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 12px 24px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #00809D, #154D71);
    --gradient-secondary: linear-gradient(135deg, #154D71, #00809D);
}

/* Container margins and spacing */
.container-fluid {
    padding: 20px;
    margin: 0;
    overflow: visible !important;
}

/* Extra spacing for card row to prevent layout shift */
.colorbox-group-widget {
    margin-bottom: 30px !important;
    padding-bottom: 0px !important;
    overflow: visible !important;
}

.colorbox-group-widget.row {
    overflow: visible !important;
}

.colorbox-group-widget .info-color-box {
    margin-bottom: 30px !important;
    overflow: visible !important;
}

/* Modern info cards - Smooth curved borders, NO shadow */
.info-color-box .white-box {
    border-radius: 28px !important;
    box-shadow: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 0;
    overflow: visible;
    position: relative;
    background: transparent;
    will-change: transform;
}

.info-color-box .white-box:hover {
    transform: translateY(-15px) scale(1.05) !important;
    box-shadow: 0 20px 50px rgba(0, 128, 157, 0.3) !important;
    border-radius: 32px !important;
    z-index: 1000 !important;
}

/* Make info-color-box also position relative to contain z-index and prevent layout shift */
.info-color-box {
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

.info-color-box:hover {
    z-index: 1000;
    margin-bottom: 30px !important;
}

/* Single themed gradient for ALL cards - matches table header */
.info-color-box .media {
    border-radius: 28px !important;
    background: linear-gradient(135deg, #00809D 0%, #154D71 100%) !important;
    color: white;
    padding: 32px 28px;
    margin: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.info-color-box .white-box:hover .media {
    border-radius: 32px !important;
    padding: 35px 30px;
    animation: gradientShift 4s ease infinite;
}

/* Smooth gradient shift animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated shimmer overlay - continuous */
.info-color-box .media::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    opacity: 1;
    z-index: 1;
    animation: shimmerMove 6s linear infinite;
}

.info-color-box .white-box:hover .media::before {
    animation: shimmerMove 3s linear infinite;
}

@keyframes shimmerMove {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Subtle glow effect */
.info-color-box .media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 60%
    );
    opacity: 1;
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.info-color-box .media-body {
    color: white;
    position: relative;
    z-index: 3;
    width: 100%;
}

.info-color-box .media-body a {
    color: white;
    text-decoration: none;
    display: block;
}

/* Number - grows smoothly with card */
.info-color-box .info-count {
    color: white;
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 28px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.3;
    letter-spacing: -0.5px;
    transform-origin: center;
}

.info-color-box .white-box:hover .info-count {
    font-size: 32px;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Label text */
.info-color-box .info-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.4;
    transform-origin: center;
}

.info-color-box .white-box:hover .info-text {
    font-size: 14px;
    letter-spacing: 1.4px;
}

/* Secondary text */
.info-color-box .info-ot {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.5;
    transform-origin: center;
}

.info-color-box .white-box:hover .info-ot {
    font-size: 13px;
}

/* Icon animation */
.info-color-box .media i {
    font-size: 36px;
    opacity: 0.85;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 3;
}

.info-color-box .white-box:hover .media i {
    transform: scale(1.25) rotate(15deg);
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Label badges */
.info-color-box .label {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 5px 14px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    display: inline-block;
}

.info-color-box .white-box:hover .label {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Entrance animation */
.info-color-box .white-box {
    animation: cardSlideIn 0.6s ease-out backwards;
}

.info-color-box:nth-child(1) .white-box { animation-delay: 0.1s; }
.info-color-box:nth-child(2) .white-box { animation-delay: 0.2s; }
.info-color-box:nth-child(3) .white-box { animation-delay: 0.3s; }
.info-color-box:nth-child(4) .white-box { animation-delay: 0.4s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modern table styling with animations */
.table {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: none;
    margin-bottom: 0;
}

.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

/* Optimized table header styling with better visibility */
.table thead th {
    background: var(--gradient-primary);
    color: #ffffff !important;
    border: none;
    padding: 20px 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.2s ease;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.table thead th:last-child {
    border-right: none;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0;
}

.table thead th:hover {
    background: var(--gradient-secondary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 128, 157, 0.2);
}

.table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.table tbody tr {
    background-color: var(--white);
    transition: all 0.2s ease;
    animation: slideInRow 0.3s ease-out;
    animation-fill-mode: both;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(0, 128, 157, 0.05), rgba(21, 77, 113, 0.05));
    transform: translateX(4px) scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 128, 157, 0.1);
}

.table tbody tr:hover td {
    color: var(--primary);
}

.table tbody td {
    padding: 16px 15px;
    border-color: #e9ecef;
    color: var(--text-dark);
    transition: all 0.2s ease;
    position: relative;
    vertical-align: middle;
}

.table tbody td:first-child {
    font-weight: 600;
    color: var(--primary);
}

.table tbody td:last-child {
    text-align: center;
}

.table tbody td:last-child a {
    color: var(--primary);
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.table tbody td:last-child a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 128, 157, 0.3);
}

/* Optimized row animation delays */
.table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.table tbody tr:nth-child(10) { animation-delay: 0.5s; }

@keyframes slideInRow {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sophisticated panel styling for search section */
.panel {
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 128, 157, 0.15);
    margin-bottom: 30px;
    margin-top: 0px;
    border: none;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    position: relative;
    z-index: 10;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.panel:hover::before {
    transform: scaleX(1);
}

.panel:hover {
    box-shadow: 0 16px 48px rgba(0, 128, 157, 0.25);
    transform: translateY(-5px);
}

.panel-heading {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 25px 30px;
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.panel-heading::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.8s ease;
}

.panel-heading:hover::before {
    left: 100%;
}

.panel-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.panel-body {
    background: linear-gradient(135deg, #f8f9fa, var(--white));
    padding: 35px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: visible;
    z-index: 101;
}

.panel-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 157, 0.3), transparent);
}

/* Enhanced form styling for search section */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    display: block;
    position: relative;
}

.form-group label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 14px 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.4rem rgba(0, 128, 157, 0.15), 0 4px 16px rgba(0, 128, 157, 0.1);
    transform: translateY(-3px);
    background: var(--white);
}

.form-control:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 157, 0.1);
}

/* Enhanced search button */
.search-customer {
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 6px 20px rgba(0, 128, 157, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.search-customer::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.6s ease;
}

.search-customer:hover::before {
    left: 100%;
}

.search-customer:hover {
    background: var(--gradient-secondary) !important;
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 12px 32px rgba(0, 128, 157, 0.4) !important;
}

.search-customer:active {
    transform: translateY(-2px) scale(1.02) !important;
}

/* Modern button styling with microanimations */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #1e7e34);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, var(--success));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 128, 157, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 128, 157, 0.4);
}

/* DataTables button styling */
.dt-buttons .btn {
    margin: 0 5px;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
}

.dt-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Modern white box styling */
.white-box {
    background-color: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 128, 157, 0.1);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.white-box:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-3px);
    border-color: rgba(0, 128, 157, 0.2);
}

.white-box h3 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.white-box h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Enhanced animation classes */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.05);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .info-color-box {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
}

/* Enhanced DataTables customization */
.dataTables_wrapper {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.dataTables_filter input {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 8px 15px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 157, 0.25);
    transform: translateY(-1px);
}

.dataTables_length select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 8px 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.dataTables_length select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 157, 0.25);
}

/* DataTables button enhancements */
.dt-buttons {
    margin-bottom: 20px;
}

.dt-buttons .dt-button {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    margin: 0 5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 128, 157, 0.3) !important;
}

.dt-buttons .dt-button:hover {
    background: var(--gradient-secondary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 128, 157, 0.4) !important;
}

.dt-buttons .dt-button:active {
    transform: translateY(-1px) !important;
}

/* Modern View All button with gradient background and animations */
.view-all-link {
    position: relative;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #00809D 0%, #154D71 100%) !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 128, 157, 0.3);
    overflow: hidden;
    float: right !important;
}

/* Shimmer effect on button */
.view-all-link::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.6s ease;
}

.view-all-link:hover::before {
    left: 100%;
}

/* Hover effect */
.view-all-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #154D71 0%, #00809D 100%) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 128, 157, 0.4);
}

/* Click/Active effect */
.view-all-link:active {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 4px 15px rgba(0, 128, 157, 0.3) !important;
    transition: all 0.1s ease !important;
}

/* DUPLICATE CARD STYLES REMOVED - Using styles from top of file */

/* Action link styling for due properties */
.action-link {
    color: var(--primary) !important;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none !important;
}

.action-link:hover {
    background: var(--gradient-primary);
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 128, 157, 0.3);
}

.action-link i {
    transition: all 0.3s ease;
}

.action-link:hover i {
    transform: scale(1.2);
}

/* Optimized due properties page styling */
.due-properties-page .white-box {
    background: linear-gradient(135deg, #f8f9fa, var(--white));
    border: 1px solid rgba(0, 128, 157, 0.1);
}

.due-properties-page .box-title {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    margin-bottom: 25px;
}

.due-properties-page .box-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Optimized table styling for due properties */
.due-properties-page .table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 128, 157, 0.15);
}

.due-properties-page .table thead th {
    background: var(--gradient-primary);
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 15px;
    text-align: center;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.2s ease;
}

.due-properties-page .table thead th:last-child {
    border-right: none;
}

.due-properties-page .table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
}

.due-properties-page .table thead th:hover {
    background: var(--gradient-secondary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 128, 157, 0.2);
}

.due-properties-page .table tbody tr {
    transition: all 0.2s ease;
    animation: slideInRow 0.3s ease-out;
    animation-fill-mode: both;
}

.due-properties-page .table tbody tr:hover {
    background: linear-gradient(135deg, rgba(0, 128, 157, 0.05), rgba(21, 77, 113, 0.05));
    transform: translateX(4px) scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 128, 157, 0.1);
}

.due-properties-page .table tbody tr:hover td {
    color: var(--primary);
}

.due-properties-page .table tbody td {
    padding: 16px 15px;
    border-color: #e9ecef;
    color: var(--text-dark);
    transition: all 0.2s ease;
    vertical-align: middle;
}

.due-properties-page .table tbody td:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* Optimized row animation delays for due properties */
.due-properties-page .table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.due-properties-page .table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.due-properties-page .table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.due-properties-page .table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.due-properties-page .table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.due-properties-page .table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.due-properties-page .table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.due-properties-page .table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.due-properties-page .table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.due-properties-page .table tbody tr:nth-child(10) { animation-delay: 0.5s; }

/* COMPREHENSIVE DROPDOWN FIX */

/* Fix container overflow issues */
.panel {
    overflow: visible !important;
}

.panel-body {
    overflow: visible !important;
}

.form-body {
    overflow: visible !important;
}

/* Fix chosen containers */
.chosen-container {
    position: relative !important;
    z-index: 1050 !important;
    width: 100% !important;
}

/* Fix chosen single select styling */
.chosen-container-single .chosen-single {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    height: 34px !important;
    line-height: 32px !important;
    text-align: left !important;
    padding: 0 12px !important;
    position: relative !important;
    z-index: 1051 !important;
}

/* Fix dropdown positioning and styling */
.chosen-container .chosen-drop {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: white !important;
    border: 1px solid #ccc !important;
    border-radius: 0 0 4px 4px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    margin-top: -1px !important;
}

/* Fix dropdown results */
.chosen-container .chosen-results {
    max-height: 180px !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.chosen-container .chosen-results li {
    padding: 8px 12px !important;
    margin: 0 !important;
    list-style: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    cursor: pointer !important;
}

.chosen-container .chosen-results li:hover,
.chosen-container .chosen-results li.highlighted {
    background: #e6f3ff !important;
    color: #333 !important;
}

/* CRITICAL: Fix grid layout and spacing to prevent overlap */
.panel-body .row {
    margin-bottom: 30px !important;
    overflow: visible !important;
}

.panel-body .col-md-3 {
    margin-bottom: 25px !important;
    position: relative !important;
    z-index: 100 !important;
}

.panel-body .form-group {
    margin-bottom: 25px !important;
    position: relative !important;
    z-index: 101 !important;
}

/* Ensure labels don't interfere with dropdowns */
.panel-body .control-label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #333 !important;
    position: relative !important;
    z-index: 102 !important;
}

/* Fix search button positioning */
.panel-body .form-actions {
    position: relative !important;
    z-index: 50 !important;
    margin-top: 26px !important;
}
/* Utility classes */
.bg-white { background-color: var(--white) !important; }
.text-white { color: var(--white) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.rounded { border-radius: 8px !important; }

