body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar Styles */
.sidebar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 100vh;
    color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin: 5px 0;
    padding: 10px 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Compact Layout Adjustments */
.main-content .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.main-content .col-md-3,
.main-content .col-sm-6,
.main-content .col-sm-12,
.main-content .col-md-4,
.main-content .col-md-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Reduce spacing between sections */
.main-content .mb-4 {
    margin-bottom: 1.5rem !important;
}

.main-content .mb-3 {
    margin-bottom: 1rem !important;
}

.main-content .pt-3 {
    padding-top: 1rem !important;
}

.main-content .pb-2 {
    padding-bottom: 0.5rem !important;
}

/* Compact header */
.main-content .border-bottom {
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Compact filters */
.filters-card .card-body {
    padding: 1rem;
}

.filters-card .form-label {
    margin-bottom: 0.25rem;
}

/* Compact table spacing */
.modern-table .table tbody tr:last-child td {
    border-bottom: none;
}

/* Compact pagination */
.pagination-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.8rem;
}

.login-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.login-body {
    padding: 2rem;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-floating .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
}

.alert {
    border-radius: 10px;
    border: none;
}

.input-group-text {
    background: transparent;
    border: 2px solid #e9ecef;
    border-right: none;
}

.form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: #667eea;
}

.input-group:focus-within .form-control {
    border-color: #667eea;
}

/* Interactive Heading Styles */
#dynamicHeading {
    background: linear-gradient(45deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#dynamicHeading:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typing effect for the heading */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid #ffffff;
    white-space: nowrap;
    animation: typing 3s steps(25, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ffffff; }
}

/* Pulse effect for hover */
.pulse-effect {
    animation: pulse 0.6s ease-in-out;
}

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

/* Enhanced Interactive Status Summary Cards */
.status-card-modern,
.pending-card,
.progress-card,
.review-card,
.completed-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.status-card-modern:hover,
.pending-card:hover,
.progress-card:hover,
.review-card:hover,
.completed-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.status-card-modern:active,
.pending-card:active,
.progress-card:active,
.review-card:active,
.completed-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

/* Icon Wrapper and Glow Effects */
.status-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.status-card-modern:hover .icon-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.status-card-modern:hover .status-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Status Header with Trend Indicator */
.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.status-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.status-card-modern:hover .status-number {
    transform: scale(1.05);
}

.trend-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.8);
        transform: scale(1.1);
    }
}

.status-label {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.status-card-modern:hover .status-label {
    color: #495057;
    transform: translateX(5px);
}

/* Enhanced Progress Bar */
.status-progress {
    position: relative;
    margin-top: 1rem;
}

.progress-bar {
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.status-card-modern:hover .progress-bar::before {
    transform: scaleX(1);
}

.progress-text {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.status-card-modern:hover .progress-text {
    opacity: 1;
    transform: translateY(0);
}



/* Card-specific color schemes */
.pending-card .status-icon {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
}

.pending-card .progress-bar::before {
    background: linear-gradient(90deg, #ffc107, #ff8f00);
}

.progress-card .status-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.progress-card .progress-bar::before {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.review-card .status-icon {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
}

.review-card .progress-bar::before {
    background: linear-gradient(90deg, #6f42c1, #5a2d91);
}

.completed-card .status-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.completed-card .progress-bar::before {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-card-modern {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .status-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .status-number {
        font-size: 2rem;
    }
    
    .trend-indicator {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Animation for card entrance */
.status-card-modern,
.pending-card,
.progress-card,
.review-card,
.completed-card {
    animation: slideInUp 0.6s ease-out;
}

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

/* Stagger animation for multiple cards */
.status-card-modern:nth-child(1),
.pending-card:nth-child(1),
.progress-card:nth-child(1),
.review-card:nth-child(1),
.completed-card:nth-child(1) { animation-delay: 0.1s; }

.status-card-modern:nth-child(2),
.pending-card:nth-child(2),
.progress-card:nth-child(2),
.review-card:nth-child(2),
.completed-card:nth-child(2) { animation-delay: 0.2s; }

.status-card-modern:nth-child(3),
.pending-card:nth-child(3),
.progress-card:nth-child(3),
.review-card:nth-child(3),
.completed-card:nth-child(3) { animation-delay: 0.3s; }

.status-card-modern:nth-child(4),
.pending-card:nth-child(4),
.progress-card:nth-child(4),
.review-card:nth-child(4),
.completed-card:nth-child(4) { animation-delay: 0.4s; }

/* Hover effects for different card types */
.pending-card:hover {
    border-color: rgba(255, 193, 7, 0.3);
}

.progress-card:hover {
    border-color: rgba(23, 162, 184, 0.3);
}

.review-card:hover {
    border-color: rgba(111, 66, 193, 0.3);
}

.completed-card:hover {
    border-color: rgba(40, 167, 69, 0.3);
}

/* Additional Interactive Effects */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.card-clicked {
    animation: card-click 0.3s ease-out;
}

@keyframes card-click {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.touch-active {
    transform: scale(0.95);
}

/* Floating Particles Effect */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float-particle 3s ease-in-out infinite;
    animation-delay: var(--delay);
    left: var(--x);
    top: var(--y);
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-40px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0);
    }
}

/* Trend Indicator Bounce Animation */
.trend-bounce {
    animation: trend-bounce 0.6s ease-in-out;
}

@keyframes trend-bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Progress Text Show Animation */
.progress-text.show {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Focus Styles for Accessibility */
.status-card-modern:focus,
.pending-card:focus,
.progress-card:focus,
.review-card:focus,
.completed-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.5);
    transform: translateY(-4px);
}

.status-card-modern:focus-visible,
.pending-card:focus-visible,
.progress-card:focus-visible,
.review-card:focus-visible,
.completed-card:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading State for Cards */
.status-card-modern.loading,
.pending-card.loading,
.progress-card.loading,
.review-card.loading,
.completed-card.loading {
    position: relative;
    overflow: hidden;
}

.status-card-modern.loading::before,
.pending-card.loading::before,
.progress-card.loading::before,
.review-card.loading::before,
.completed-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Mobile Touch Feedback */
@media (max-width: 768px) {
    .status-card-modern:active,
    .pending-card:active,
    .progress-card:active,
    .review-card:active,
    .completed-card:active {
        transform: scale(0.98);
        transition: all 0.1s ease;
    }
    
    .floating-particle {
        width: 3px;
        height: 3px;
    }
    
    .particles-container {
        display: none; /* Disable particles on mobile for performance */
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .status-card-modern,
    .pending-card,
    .progress-card,
    .review-card,
    .completed-card {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .status-card-modern:hover,
    .pending-card:hover,
    .progress-card:hover,
    .review-card:hover,
    .completed-card:hover {
        background: rgba(40, 40, 40, 0.95);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .status-label {
        color: #adb5bd;
    }
    
    .status-card-modern:hover .status-label,
    .pending-card:hover .status-label,
    .progress-card:hover .status-label,
    .review-card:hover .status-label,
    .completed-card:hover .status-label {
        color: #ced4da;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .status-card-modern,
    .pending-card,
    .progress-card,
    .review-card,
    .completed-card {
        border: 2px solid #000;
    }
    
    .status-card-modern:hover,
    .pending-card:hover,
    .progress-card:hover,
    .review-card:hover,
    .completed-card:hover {
        border-color: #667eea;
    }
    
    .progress-bar {
        border: 1px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .status-card-modern,
    .status-icon,
    .trend-indicator,
    .progress-bar::before {
        transition: none;
        animation: none;
    }
    
    .status-card-modern:hover {
        transform: none;
    }
    
    .floating-particle {
        display: none;
    }
}

/* Search and Pagination Styles */
.search-pagination-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box {
    position: relative;
}

.search-input {
    border-radius: 25px 0 0 25px;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: rgba(255, 255, 255, 1);
}

.search-btn {
    border-radius: 0 25px 25px 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.clear-search-btn {
    border-radius: 25px;
    margin-left: 10px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Pagination Container */
.pagination-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pagination {
    margin: 0;
}

.page-link {
    color: #667eea;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    margin: 0 2px;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.2);
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design for Search and Pagination */
@media (max-width: 768px) {
    .search-pagination-container {
        padding: 1rem;
    }
    
    .search-input,
    .search-btn,
    .clear-search-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .pagination-info {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Loading State for Search */
.search-input.loading {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23667eea" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 11-6.219-8.56"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

/* Search Results Highlighting */
.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* Empty Search State */
.empty-search-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-search-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-search-state h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-search-state p {
    margin-bottom: 1.5rem;
}

/* Search Suggestions (for future AJAX enhancement) */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-suggestion-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

.search-suggestion-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.search-suggestion-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Search Loading Overlay */
.search-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 15px;
}

.loading-spinner {
    text-align: center;
    color: #667eea;
}

.loading-spinner p {
    margin: 0;
    font-weight: 500;
    color: #6c757d;
}

/* Search Alert Messages */
.search-alert {
    margin-top: 1rem;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-alert.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.search-alert.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* Enhanced Search Input Focus Effects */
.search-input:focus + .search-btn {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Search Results Counter Animation */
.pagination-info {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Mobile Search Enhancements */
@media (max-width: 576px) {
    .search-pagination-container {
        padding: 1rem;
    }
    
    .search-input,
    .search-btn {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .clear-search-btn {
        margin-top: 10px;
        margin-left: 0;
        width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        margin: 2px;
        min-width: 40px;
        text-align: center;
    }
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Task Card and Kanban Board Styles */
.task-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.task-card.priority-urgent {
    border-left: 4px solid #dc3545;
}

.task-card.priority-high {
    border-left: 4px solid #fd7e14;
}

.task-card.priority-medium {
    border-left: 4px solid #17a2b8;
}

.task-card.priority-low {
    border-left: 4px solid #28a745;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.task-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-right: 0.5rem;
    line-height: 1.3;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.task-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    display: inline-flex;
    align-items: center;
}

.workflow-progress {
    margin: 1rem 0;
}

.workflow-progress .d-flex {
    gap: 0.5rem;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 10px;
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    font-size: 0.8rem;
    min-width: 60px;
    transition: all 0.3s ease;
}

.workflow-step.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.workflow-step.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.workflow-arrow {
    color: #6c757d;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.workflow-arrow.active {
    opacity: 1;
    color: #28a745;
}

.task-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-view-details {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.btn-view-details:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    color: white;
}

.btn-quick-update {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
}

.btn-quick-update:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    color: white;
}

/* Kanban Board Styles */
.kanban-column {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    min-height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kanban-column-header {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(10px);
}

.task-list {
    min-height: 300px;
}

.empty-column {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
}

.empty-column i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Floating Action Buttons */
.quick-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.floating-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.floating-btn.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.floating-btn.info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

/* Responsive Design for Task Cards */
@media (max-width: 768px) {
    .task-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .task-meta {
        gap: 0.25rem;
    }
    
    .task-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .workflow-progress .d-flex {
        gap: 0.25rem;
    }
    
    .workflow-step {
        min-width: 50px;
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    .task-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .task-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .quick-actions {
        bottom: 1rem;
        right: 1rem;
        gap: 0.75rem;
    }
}

/* Table and Empty State Styles */
.table-responsive {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #2c3e50;
    background: rgba(108, 117, 125, 0.1);
}

.table td {
    vertical-align: middle;
    border-top: 1px solid rgba(108, 117, 125, 0.1);
}

.task-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.task-meta {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.domain-category {
    margin-bottom: 0.25rem;
}

.empty-state {
    color: #6c757d;
}

.empty-state i {
    opacity: 0.5;
}

.pagination-container {
    margin-top: 2rem;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Modern Summary Cards - Jira Style */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .d-flex {
    position: relative;
    z-index: 2;
}

.stat-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-card p {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-card i {
    font-size: 2.2rem;
    opacity: 0.8;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Enhanced Filters Card - Interactive & Compact */
.filters-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.filters-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Collapsible Header */
.filters-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.filters-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.filters-header .d-flex {
    align-items: center;
    justify-content: space-between;
}

.filters-header h6 {
    margin: 0;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.filters-toggle {
    transition: transform 0.3s ease;
    color: #6c757d;
}

.filters-toggle.rotated {
    transform: rotate(180deg);
}

/* Collapsible Content */
.filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.filters-content.expanded {
    max-height: 300px;
    padding: 16px;
}

/* Compact Form Layout */
.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    align-items: end;
}

.filters-form .form-group {
    margin: 0;
}

.filters-form .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filters-form .form-control,
.filters-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    height: auto;
}

.filters-form .form-control:focus,
.filters-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
    transform: translateY(-1px);
}

/* Compact Buttons */
.filters-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filters-actions .btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.85rem;
    white-space: nowrap;
}

.filters-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.filters-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.filters-actions .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.filters-actions .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
}

/* Quick Filter Pills */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.quick-filter-pill:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    transform: translateY(-1px);
    text-decoration: none;
}

.quick-filter-pill.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.quick-filter-pill:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .filters-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filters-actions .btn {
        width: 100%;
    }
    
    .quick-filters {
        justify-content: center;
    }
}

/* Animation for slide-in */
.filters-card.slide-in {
    animation: slideInCompact 0.4s ease-out;
}

@keyframes slideInCompact {
    from { 
        transform: translateY(-20px); 
        opacity: 0; 
        max-height: 0;
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
        max-height: 400px;
    }
}

/* Modern Table Design */
.modern-table {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modern-table .table {
    margin: 0;
}

.modern-table .table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 12px 12px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.modern-table .table tbody tr {
    transition: all 0.3s ease;
    border: none;
}

.modern-table .table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-table .table tbody td {
    padding: 12px 12px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

/* Enhanced Task Title */
.task-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.task-meta {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Enhanced Badges */
.badge {
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Enhanced Buttons */
.btn-view-details {
    border-radius: 16px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
}

.btn-view-details:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Modern Pagination */
.pagination {
    gap: 4px;
}

.pagination .page-link {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

.pagination .page-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.pagination .page-item.disabled .page-link {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    cursor: not-allowed;
}

/* Enhanced Results Info */
.results-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-info .text-muted {
    color: #6c757d !important;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Interactive User Avatar */
.user-avatar {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.avatar-circle:hover::before {
    left: 100%;
}

.avatar-circle:hover {
    transform: rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.avatar-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    user-select: none;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 0.75rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-card i {
        font-size: 1.8rem;
    }
    
    .modern-table {
        border-radius: 8px;
        margin: 0 -5px;
    }
    
    .filters-card .row {
        gap: 0.75rem;
    }
    
    .main-content {
        margin: 10px;
    }
}

/* Smooth Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

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