/* Custom styles for PRiME EUROPA QHSE Agent */

/* Modern Branding Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2B5CE6 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: #1E3A8A !important;
}

.brand-logo {
    height: 40px;
    width: auto;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(43, 92, 230, 0.1));
}

.hero-section {
    background: linear-gradient(135deg, #1E3A8A 0%, #2B5CE6 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.feature-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(43, 92, 230, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2B5CE6, #1E3A8A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.modern-btn {
    background: linear-gradient(135deg, #2B5CE6, #1E3A8A);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(43, 92, 230, 0.2);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 92, 230, 0.3);
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Chat Messages Styling */
.chat-messages {
    height: 300px;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: var(--bs-dark);
}

.message {
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-in;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 85%;
    word-wrap: break-word;
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.user-message .message-content {
    background-color: var(--bs-primary);
    color: white;
    margin-left: auto;
}

.bot-message .message-content {
    background-color: var(--bs-secondary);
    color: var(--bs-light);
}

/* Typing indicator animation */
.typing-indicator {
    opacity: 0.7;
}

.typing-indicator::after {
    content: '...';
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0%, 60% { content: '...'; }
    20% { content: '.'; }
    40% { content: '..'; }
    80%, 100% { content: '...'; }
}

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

/* Quick suggestions styling */
.suggestion-btn {
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Status badges custom colors */
.badge.bg-warning {
    color: var(--bs-dark) !important;
}

/* Report cards hover effect */
.border:hover {
    border-color: var(--bs-primary) !important;
    transition: border-color 0.2s ease;
}

/* Summary cards hover effect */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* File upload styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

/* Action plan priority badges */
.badge.bg-danger {
    background-color: var(--bs-danger) !important;
}

.badge.bg-warning {
    background-color: var(--bs-warning) !important;
    color: var(--bs-dark) !important;
}

.badge.bg-info {
    background-color: var(--bs-info) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .chat-messages {
        height: 250px;
    }
    
    .message-content {
        max-width: 95%;
    }
    
    .d-flex.flex-wrap.gap-2 {
        gap: 0.5rem !important;
    }
    
    .suggestion-btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Scrollbar styling for chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--bs-light);
}

/* Form validation styling */
.form-control:invalid {
    border-color: var(--bs-danger);
}

.form-control:valid {
    border-color: var(--bs-success);
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enhanced card styling */
.card {
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    background-color: var(--bs-dark);
    border-bottom: 1px solid var(--bs-border-color);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Navigation active state */
.navbar-nav .nav-link.active {
    background-color: var(--bs-primary);
    border-radius: 0.25rem;
}

/* Empty state styling */
.text-center.py-4 {
    color: var(--bs-secondary);
}

.text-center.py-4 i {
    opacity: 0.5;
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid var(--bs-border-color);
}

.modal-footer {
    border-top: 1px solid var(--bs-border-color);
}

/* Table responsiveness */
@media (max-width: 576px) {
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .form-select.form-select-sm {
        width: 100% !important;
    }
}


/* Consultant Referral Styling */
.consultant-referral {
    border-left: 4px solid #ff6b35 !important;
    background: linear-gradient(135deg, #fff5f0 0%, #ffeee6 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15) !important;
    animation: consultantPulse 2s ease-in-out;
}

.consultant-referral .message-text {
    font-weight: 500;
    color: #d63031 !important;
}

@keyframes consultantPulse {
    0% { box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15); }
    50% { box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25); }
    100% { box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15); }
}
