/* VaultLogic Custom Styles */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #1e3a8a;
    --success-color: #198754;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    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.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

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

.hero-demo {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Cards */
.feature-card, .pricing-card, .testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.feature-card:hover, .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon, .compliance-icon, .value-icon, .security-icon, .contact-icon, .alt-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
}

.demo-feature-icon {
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
}

/* Step Numbers */
.step-number {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Comparison Table */
.comparison-table {
    font-size: 1rem;
}

.comparison-table th {
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
    background-color: var(--bg-light);
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Pricing Cards */
.pricing-card.border-primary {
    border-color: var(--primary-color) !important;
    border-width: 2px !important;
}

.pricing-display {
    text-align: center;
}

/* Security Features */
.security-feature, .monitoring-feature, .encryption-feature {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.security-layer {
    transition: transform 0.3s ease;
}

.security-layer:hover {
    transform: translateY(-3px);
}

.layer-header {
    border-left: 4px solid var(--primary-color);
}

/* Chat Interface */
.chat-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.message {
    animation: messageSlide 0.3s ease-out;
}

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

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-sm);
}

.message.assistant .message-content {
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.sources {
    background: rgba(var(--primary-color), 0.1);
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-control-lg, .form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

/* Badges */
.badge {
    font-weight: 500;
    border-radius: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
    background: var(--bg-dark) !important;
}

footer .text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .text-light-50:hover {
    color: rgba(255, 255, 255, 1) !important;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-icon, .demo-feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .chat-container {
        height: 500px;
    }
    
    .chat-messages {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-demo {
        margin-top: 2rem;
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Table Responsive */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Accordion */
.accordion-button {
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

/* Utilities */
.text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-opacity-10 {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Contact Page Specific */
.contact-stat {
    margin-bottom: 1rem;
}

.alternative-contact {
    padding: 1rem;
}

.testimonial-highlight {
    border-left: 4px solid var(--primary-color);
}

/* Security Page Specific */
.security-stats {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

/* Demo Page Specific */
.predefined-questions .btn {
    text-align: left;
    white-space: normal;
    height: auto;
    padding: 0.5rem 0.75rem;
}

.handbook-sections {
    font-size: 0.875rem;
}

/* Print Styles */
@media print {
    .navbar, .btn, footer {
        display: none;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}
