/* Brand stylesheet for TT53 AI Banking */

:root {
  /* Primary colors from brand gradient */
  --brand-primary: #667eea;
  --brand-secondary: #764ba2;
  --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Neutral palette */
  --neutral-900: #1a1a1a;
  --neutral-800: #333;
  --neutral-600: #666;
  --neutral-400: #999;
  --neutral-200: #ddd;
  --neutral-100: #f5f5f5;
  --neutral-50: #f9f9f9;
  --white: #ffffff;

  /* Status colors */
  --success-light: #efe;
  --success-color: #3c3;
  --success-text: #2b8a2b;
  --error-light: #fee;
  --error-color: #c33;
  --error-text: #a00;

  /* Semantic colors */
  --bg-info: #f0f4ff;
  --border-info: #667eea;
  --text-info: #667eea;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-3xl: 40px;

  /* Typography */
  --font-family-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;
  --font-size-4xl: 32px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(102, 126, 234, 0.3);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Z-index scale */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal: 40;
  --z-tooltip: 50;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-system);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--neutral-800);
  background: white;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  color: var(--neutral-800);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  margin: var(--spacing-md) 0;
  color: var(--neutral-600);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* Buttons */
button {
  font-family: var(--font-family-system);
  font-size: var(--font-size-lg);
  font-weight: 600;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--brand-gradient);
  color: white;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

button:active {
  transform: translateY(0);
}

/* Forms */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
  font-family: var(--font-family-system);
  font-size: var(--font-size-base);
  padding: var(--spacing-md);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--neutral-800);
  font-size: var(--font-size-base);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
}

.badge.success {
  background: var(--success-light);
  color: var(--success-color);
}

.badge.error {
  background: var(--error-light);
  color: var(--error-color);
}

/* Utility classes */
.text-primary {
  color: var(--brand-primary);
}

.text-secondary {
  color: var(--brand-secondary);
}

.text-muted {
  color: var(--neutral-400);
}

.bg-light {
  background-color: var(--neutral-50);
}

.bg-info {
  background-color: var(--bg-info);
}

.border-left-info {
  border-left: 4px solid var(--border-info);
}

/* Brand header with logo */
.header-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--neutral-200);
}

.brand-logo {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.header-text {
  flex: 1;
}

.header-text h1 {
  margin: 0;
  margin-bottom: var(--spacing-sm);
}

.header-text .subtitle {
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--neutral-600);
}

/* Media queries for responsive brand design */
@media (max-width: 768px) {
  .header-brand {
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
  }

  h1 {
    font-size: var(--font-size-2xl);
  }

  h2 {
    font-size: var(--font-size-xl);
  }

  h3 {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 390px) {
  .header-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .brand-logo {
    width: 48px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  body {
    font-size: 13px;
  }

  button {
    font-size: var(--font-size-base);
    padding: var(--spacing-sm) var(--spacing-md);
  }
}
