/* Custom CSS for the Agentic Application UI with Mantine */

/* Global styles for Mantine integration */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Login screen styling */
.login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mantine component enhancements */
.mantine-ActionIcon-root {
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mantine-ActionIcon-root:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Mantine Drawer styling */
.mantine-Drawer-drawer {
    border-left: 1px solid #e9ecef;
}

/* Mantine Button enhancements */
.mantine-Button-root {
    transition: all 0.2s ease;
}

.mantine-Button-root:hover {
    transform: translateY(-1px);
}

/* Mantine Card styling */
.mantine-Card-root {
    transition: box-shadow 0.3s ease;
}

.mantine-Card-root:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Dashboard stats card hover effect */
.stats-card {
    transition: border 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.stats-card:hover {
    border: 2px solid #8b5cf6 !important;
    box-shadow: 0 8px 15px rgba(139, 92, 246, 0.2);
}

/* Conversation card hover effect */
.conversation-card {
    transition: border 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.conversation-card:hover {
    border: 2px solid #8b5cf6 !important;
    box-shadow: 0 8px 15px rgba(139, 92, 246, 0.2);
}

/* Remove underline from dcc.Link */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* Sidebar menu styling */
.offcanvas {
    border-left: 1px solid #e9ecef;
}

.nav-link {
    transition: all 0.2s ease;
    border-radius: 8px !important;
    margin-bottom: 8px;
}

.nav-link:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.nav-link.active {
    background-color: #0d6efd;
    color: white !important;
}

/* Main content area */
.main-content {
    transition: margin-right 0.3s ease;
    padding: 20px;
}

/* Card styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Button styling */
.btn {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Form styling */
.form-control {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        padding: 10px;
    }
    
    .hamburger-button {
        width: 45px;
        height: 45px;
    }
}

/* Animation for menu items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-item {
    animation: slideIn 0.3s ease forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
