/* Global Styles */
:root {
    --primary-color: #6366f1;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #fafafa;
    --accent-color: #8b5cf6;
    --indigo-light: #818cf8;
    --purple-gradient: #a855f7;
    --slate-color: #475569;
    --warm-gray: #6b7280;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--warm-gray);
}

/* Landing Page Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="50%" cy="50%" r="50%" fill="url(%23a)"/></svg>');
    opacity: 0.1;
}

.dashboard-preview {
    position: relative;
    z-index: 2;
}

/* Modern Dashboard Mockup */
.modern-dashboard-mockup {
    perspective: 1000px;
}

.mockup-window {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.mockup-window:hover {
    transform: rotateY(-10deg) rotateX(5deg);
}

.mockup-header {
    background: #f8f9fa;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.mockup-dots {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mockup-dots span:nth-child(3) {
    background: #28ca42;
}

.mockup-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--warm-gray);
}

.mockup-content {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    background: #f8fafc;
    width: 200px;
    padding: 20px 0;
    border-right: 1px solid #e2e8f0;
}

.mockup-menu-item {
    padding: 12px 20px;
    color: var(--warm-gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.mockup-menu-item.active {
    background: var(--primary-color);
    color: white;
    position: relative;
}

.mockup-menu-item:not(.active):hover {
    background: #e2e8f0;
}

.mockup-main {
    flex: 1;
    padding: 30px;
    background: white;
}

.mockup-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.mockup-stat {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-chart {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    height: 120px;
    display: flex;
    align-items: end;
}

.chart-bars {
    display: flex;
    gap: 15px;
    align-items: end;
    width: 100%;
    height: 80px;
}

.chart-bar {
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 4px 4px 0 0;
    flex: 1;
    min-height: 20px;
    animation: growUp 1.5s ease-out;
}

@keyframes growUp {
    from {
        height: 0;
    }
    to {
        height: var(--chart-height, 50%);
    }
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin: 0 auto 1rem;
}

/* Feature Preview Styles */
.feature-image {
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* AI Chat Preview */
.ai-chat-preview {
    width: 100%;
    padding: 15px;
}

.chat-bubble {
    margin-bottom: 10px;
    display: flex;
}

.chat-bubble.user {
    justify-content: flex-end;
}

.bubble-content {
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    max-width: 80%;
}

.chat-bubble.user .bubble-content {
    background: var(--primary-color);
    color: white;
}

.chat-bubble.assistant .bubble-content {
    background: #e2e8f0;
    color: var(--warm-gray);
}

.typing-indicator {
    display: flex;
    gap: 3px;
    padding: 8px 12px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Contact Grid Preview */
.contact-grid-preview {
    width: 100%;
    padding: 10px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--warm-gray);
    margin-bottom: 2px;
}

.contact-company {
    font-size: 11px;
    color: var(--secondary-color);
}

.contact-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.contact-status.active {
    background: var(--success-color);
}

.contact-status.busy {
    background: var(--warning-color);
}

/* Document Preview */
.document-preview {
    width: 100%;
    padding: 10px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.doc-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.doc-icon.pdf {
    background: var(--danger-color);
}

.doc-icon.excel {
    background: var(--success-color);
}

.doc-icon.word {
    background: var(--primary-color);
}

.doc-details {
    flex: 1;
}

.doc-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--warm-gray);
    margin-bottom: 2px;
}

.doc-status {
    font-size: 10px;
    color: var(--secondary-color);
}

/* Tutorial Modal Styles */
.tutorial-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tutorial-step.active {
    display: block;
}

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

.tutorial-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.tutorial-features {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.tutorial-feature {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.tutorial-next-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.tutorial-step-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 3px solid var(--success-color);
}

.tutorial-progress {
    flex: 1;
    text-align: center;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.tutorial-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cta-section {
    background: linear-gradient(135deg, var(--slate-color) 0%, var(--dark-color) 100%);
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--indigo-light) 0%, var(--accent-color) 100%);
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Onboarding Styles */
.onboarding-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
}

.onboarding-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Dashboard Styles */
.dashboard-container {
    background-color: var(--light-color);
    min-height: calc(100vh - 76px);
}

.welcome-header {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.module-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.module-features {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Chat Styles */
.chat-messages {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    background-color: #f8f9fa;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background-color: var(--primary-color);
    color: white;
    order: 2;
    margin-left: 1rem;
    margin-right: 0;
}

.assistant-message .message-avatar {
    background-color: var(--success-color);
    color: white;
}

.message-content {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 70%;
}

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

.chat-session-item {
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-session-item:hover {
    background-color: #f8f9fa;
}

/* Contact Manager Styles */
.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

/* Document Hub Styles */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.document-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.document-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.document-icon i {
    font-size: 2rem;
}

.document-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.document-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.document-card:hover .document-actions {
    opacity: 1;
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
}

.btn-light {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: var(--primary-color);
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

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

.btn-primary:hover {
    background-color: var(--indigo-light);
    border-color: var(--indigo-light);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #b45309;
    border-color: #b45309;
    color: white;
}

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

.btn-success:hover {
    background-color: #047857;
    border-color: #047857;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .module-card {
        margin-bottom: 1.5rem;
    }
    
    .dashboard-preview {
        margin-top: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

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

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 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;
}
