﻿/* Professional Global Styles for HealthOps Project */
.professional-management-container {
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
    min-height: 100vh;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

    .professional-management-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 15% 25%, rgba(142, 45, 226, 0.4) 0%, transparent 50%), radial-gradient(circle at 85% 75%, rgba(74, 0, 224, 0.3) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        animation: professionalFloatBackground 18s ease-in-out infinite;
    }

.professional-glass-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

    .professional-glass-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

.professional-header {
    background: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
    color: white;
    padding: 35px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .professional-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        animation: professionalShimmer 4s infinite;
    }

.professional-action-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 25px;
    margin: 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .professional-action-bar:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    }

.btn-professional-primary {
    background: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

    .btn-professional-primary::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.6s;
    }

    .btn-professional-primary:hover::before {
        left: 100%;
    }

    .btn-professional-primary:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 30px rgba(106, 17, 203, 0.4);
        color: white;
        text-decoration: none;
    }

.btn-professional-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-professional-secondary:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
        color: white;
        text-decoration: none;
    }

.professional-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: transparent;
}

    .professional-table th {
        background: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
        color: white;
        padding: 20px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        font-size: 0.85rem;
        border: none;
        position: relative;
        transition: all 0.3s ease;
    }

        .professional-table th:hover {
            background: linear-gradient(135deg, #5a0db5 0%, #1c68e8 100%);
        }

        .professional-table th::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 10%;
            width: 80%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
        }

    .professional-table td {
        padding: 18px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        vertical-align: middle;
        position: relative;
        background: rgba(255, 255, 255, 0.9);
    }

.professional-table-row {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
}

    .professional-table-row::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #6A11CB, #2575FC);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .professional-table-row:nth-child(even) {
        background: rgba(248, 249, 250, 0.9);
    }

    .professional-table-row:hover {
        transform: translateX(8px) translateY(-2px);
        background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
        box-shadow: 0 10px 25px rgba(106, 17, 203, 0.15);
        border-left: 4px solid #6A11CB;
    }

        .professional-table-row:hover::before {
            transform: scaleY(1);
        }

.btn-professional-action {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 75px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-professional-details {
    background: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

.btn-professional-edit {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-professional-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-professional-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.btn-professional-action:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.btn-professional-action:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
}

.professional-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.professional-badge-normal,
.professional-badge-active,
.professional-badge-recent,
.professional-badge-completed {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.professional-badge-warning,
.professional-badge-scheduled {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.professional-badge-critical,
.professional-badge-inactive {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.professional-status-badge::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;
}

.professional-status-badge:hover::before {
    left: 100%;
}

.professional-status-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.professional-empty-state {
    padding: 70px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 18px;
    margin: 20px;
    position: relative;
    overflow: hidden;
}

    .professional-empty-state::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: professionalEmptyStateShine 3s infinite;
    }

.professional-empty-state-icon {
    font-size: 4.5rem;
    margin-bottom: 25px;
    opacity: 0.8;
    animation: professionalBounce 2.5s infinite;
    position: relative;
    z-index: 2;
}

.professional-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

    .professional-stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #6A11CB, #2575FC, #6A11CB);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .professional-stat-card:hover::before {
        transform: scaleX(1);
    }

    .professional-stat-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }

.professional-search-box {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

    .professional-search-box:focus {
        border-color: #6A11CB;
        box-shadow: 0 10px 25px rgba(106, 17, 203, 0.2);
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 1);
    }

.professional-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    .professional-icon-wrapper:hover {
        transform: rotate(12deg) scale(1.1);
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.5);
    }

.professional-entity-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 6px 15px rgba(106, 17, 203, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .professional-entity-icon::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transform: rotate(45deg);
        transition: all 0.6s ease;
    }

    .professional-entity-icon:hover::before {
        left: 100%;
        top: 100%;
    }

    .professional-entity-icon:hover {
        transform: rotate(-8deg) scale(1.1);
        box-shadow: 0 10px 25px rgba(106, 17, 203, 0.6);
    }

.professional-pulse {
    animation: professionalPulse 2.5s infinite;
}

.professional-float {
    animation: professionalFloat 4s ease-in-out infinite;
}

/* Professional Animations */
@keyframes professionalFloatBackground {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(20px, -15px) scale(1.02);
    }

    66% {
        transform: translate(-15px, 10px) scale(0.98);
    }
}

@keyframes professionalShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes professionalBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    40% {
        transform: translateY(-12px) rotate(5deg);
    }

    60% {
        transform: translateY(-6px) rotate(-3deg);
    }
}

@keyframes professionalPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 17, 203, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(106, 17, 203, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(106, 17, 203, 0);
    }
}

@keyframes professionalFloat {
    0%, 100% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    33% {
        transform: translate(25px, -20px) rotate(120deg);
    }

    66% {
        transform: translate(-18px, 15px) rotate(240deg);
    }
}

@keyframes professionalEmptyStateShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes professionalSlideIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.professional-animate-in {
    animation: professionalSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.professional-stagger > * {
    opacity: 0;
    animation: professionalSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

    .professional-stagger > *:nth-child(1) {
        animation-delay: 0.1s;
    }

    .professional-stagger > *:nth-child(2) {
        animation-delay: 0.2s;
    }

    .professional-stagger > *:nth-child(3) {
        animation-delay: 0.3s;
    }

    .professional-stagger > *:nth-child(4) {
        animation-delay: 0.4s;
    }

/* Professional Filter Section */
.professional-filter-section {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 20px;
    margin: 20px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.professional-filter-btn {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin: 4px;
    position: relative;
    overflow: hidden;
}

    .professional-filter-btn.active {
        background: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
        color: white;
        box-shadow: 0 6px 15px rgba(106, 17, 203, 0.4);
    }

    .professional-filter-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    }

/* Additional Info Cards */
.professional-info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 14px;
    padding: 18px;
    margin: 10px 0;
    border-left: 4px solid #6A11CB;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

    .professional-info-card:hover {
        transform: translateX(5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

.professional-utilization-chart {
    height: 8px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
}

.professional-utilization-fill {
    height: 100%;
    background: linear-gradient(90deg, #6A11CB, #2575FC);
    border-radius: 10px;
    transition: width 1s ease;
}

/* Entity-specific indicators */
.professional-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.professional-indicator-normal,
.professional-indicator-active,
.professional-indicator-low {
    background: #27ae60;
}

.professional-indicator-warning,
.professional-indicator-medium {
    background: #f39c12;
}

.professional-indicator-critical,
.professional-indicator-high,
.professional-indicator-inactive {
    background: #e74c3c;
}

/* Fix for table alignment */
.table.professional-table th,
.table.professional-table td {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    vertical-align: middle;
}

.table.professional-table th {
    text-align: left !important;
}

    .table.professional-table th:last-child,
    .table.professional-table td:last-child {
        text-align: center !important;
    }

.professional-entity-icon {
    margin-left: 0 !important;
}

.professional-truncate-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .professional-truncate-text:hover {
        white-space: normal;
        overflow: visible;
        background: rgba(255, 255, 255, 0.9);
        padding: 8px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        position: absolute;
        z-index: 10;
        max-width: 300px;
    }
