/* meai-app/assets/css/style.css (Modern UI) */

body {
    font-family: 'Inter', sans-serif;
}

/* Primary Button Styles */
.btn-primary {
    background-image: linear-gradient(to right, #3B82F6, #2563EB);
    transition: all 0.3s ease;
    transform: scale(1);
}

.btn-primary:hover {
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.6);
    transform: scale(1.03);
}

/* Animated Form Fields */
.form-field {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.5s ease-in-out;
    opacity: 0;
    margin-top: 0;
}

.form-field.visible {
    max-height: 100px;
    opacity: 1;
    margin-top: 1rem;
}

/* Sidebar Navigation Links */
.nav-link.active-nav-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
}

.nav-link:not(.active-nav-link):hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Modal Overlay with Backdrop Blur */
.modal-overlay {
    transition: opacity 0.3s ease;
}

.modal-container {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

/* NEW: Styles for the modern role cards on the main page */
.role-card-v2 {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* ... (keep all previous styles) ... */

/* --- NEW: Professional Highlighting Tooltip --- */
#highlight-tooltip {
    position: absolute;
    z-index: 100;
    background-color: #2d3748; /* Darker gray */
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none; /* Hide until shown */
}

#highlight-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Allow clicks when visible */
}

/* Tooltip Arrow */
#highlight-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

/* --- NEW: Improved SVG Loader for Book Page --- */
.spinner {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}
