/* FinSync UI - Main Stylesheet */

:root {
  /* Color Palette */
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #4cc9f0;
  --accent: #f72585;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #888888;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e6e9ef;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Typography */
  --font-main: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -var(--space-md);
}

.col {
  flex: 1;
  padding: 0 var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 1rem;
}

.btn:focus {
  outline: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

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

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
  outline: none;
}

/* Card */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

/* Header & Navigation */
.site-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-item {
  margin-left: var(--space-lg);
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
}

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

/* App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: var(--bg-white);
  border-right: 1px solid var(--border-light);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  margin-bottom: var(--space-xl);
}

.sidebar-nav {
  flex-grow: 1;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary);
}

.sidebar-nav-icon {
  margin-right: var(--space-md);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-lg);
}

.main-content {
  flex: 1;
  padding: var(--space-xl);
  overflow-y: auto;
}

/* Chat UI */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 2rem);
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.chat-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.message {
  max-width: 70%;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  position: relative;
}

.message-user {
  align-self: flex-end;
  background-color: var(--primary);
  color: white;
  border-bottom-right-radius: 0;
}

.message-ai {
  align-self: flex-start;
  background-color: var(--bg-light);
  color: var(--text-primary);
  border-bottom-left-radius: 0;
}

.chat-input {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-light);
  display: flex;
}

.chat-input-field {
  flex: 1;
  padding: var(--space-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  margin-right: var(--space-md);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 80px;
    padding: var(--space-md);
  }
  
  .sidebar-nav-item span {
    display: none;
  }
  
  .sidebar-nav-icon {
    margin-right: 0;
    font-size: 1.25rem;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .message {
    max-width: 85%;
  }
} 