/* Custom CSS for Kairos - Veterinary Radiology AI Assistant */

/* Base styles and typography */
:root {
    --kairos-primary: #6366f1;
    --kairos-secondary: #4f46e5;
    --kairos-success: #10b981;
    --kairos-info: #06b6d4;
    --kairos-warning: #f59e0b;
    --kairos-danger: #ef4444;
    --kairos-dark: #1e1b4b;
    --kairos-light: #f3f4f6;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #f8f9fa;
    background-color: #111827;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-3 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.display-5 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead {
    font-weight: 400;
    line-height: 1.6;
}

/* Navbar styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--kairos-primary);
}

.navbar-brand .brand-icon {
    color: var(--kairos-primary);
}

.nav-item {
    margin: 0 2px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--kairos-primary) !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--kairos-primary);
    border-color: var(--kairos-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--kairos-secondary);
    border-color: var(--kairos-secondary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--kairos-primary);
    border-color: var(--kairos-primary);
}

.btn-outline-primary:hover {
    background-color: var(--kairos-primary);
    border-color: var(--kairos-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    background-color: #1f2937;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
    background-color: rgba(31, 41, 55, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Hero section */
.hero-section {
    padding: 6rem 0;
    position: relative;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 70%);
    z-index: -1;
}

/* Feature cards */
.icon-box {
    height: 70px;
    width: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--kairos-primary);
    transition: all 0.3s ease;
}

.card:hover .icon-box {
    transform: scale(1.1);
    background-color: rgba(99, 102, 241, 0.2);
}

/* Forms */
.form-control, .form-select {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #374151;
    border-color: var(--kairos-primary);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
    color: #f3f4f6;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

/* Textarea success state for copy action */
textarea.copy-success {
    transition: background-color 0.3s ease;
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Improve spacing for textareas */
textarea {
    resize: vertical;
    min-height: 120px;
    background-color: #374151 !important;
    border: 1px solid #4b5563 !important;
    color: #f3f4f6 !important;
}

/* Custom scrollbar for textareas in modern browsers */
textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Demo card styling */
.demo-card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.demo-header {
    padding: 0.5rem;
    background-color: #111827;
    border-radius: 0.5rem 0.5rem 0 0;
}

.demo-controls span {
    width: 12px;
    height: 12px;
    display: inline-block;
    margin-right: 6px;
}

.demo-title {
    font-family: monospace;
    color: #9ca3af;
    font-size: 0.875rem;
}

.demo-content {
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer styling */
.footer {
    background-color: #111827;
    color: #9ca3af;
}

.footer h5, .footer h6 {
    color: #f3f4f6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--kairos-primary) !important;
    text-decoration: none !important;
}

.social-icons a {
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--kairos-primary) !important;
    transform: translateY(-3px);
}

/* Dashboard styling */
.stat-card {
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--kairos-primary);
    margin-bottom: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 1rem;
    color: #9ca3af;
}

/* Report page styling */
.report-content {
    white-space: pre-wrap;
    font-family: monospace;
    background-color: #1e1b4b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Table styling */
.table {
    color: #f3f4f6;
}

.table-hover tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.table thead {
    background-color: #374151;
}

/* Utility classes */
.bg-veterinary {
    background-color: rgba(99, 102, 241, 0.1);
}

.text-primary {
    color: var(--kairos-primary) !important;
}

.border-primary {
    border-color: var(--kairos-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #111827;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .footer {
        text-align: center;
    }
    
    .social-icons, .footer .text-md-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }
}