"""
Configuration settings for the NEXUS AUTOPARTS console application.
"""

import os
import sys

# Application metadata
VERSION = "2.0.0"
APP_NAME = "NEXUS AUTOPARTS"
APP_SUBTITLE = "Tu conexión directa con las partes que necesitas"

# Database URL (PostgreSQL)
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))
from config import DB_URL

# NHTSA VIN Decoder API
NHTSA_API_URL = "https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVin"
VIN_CACHE_DAYS = 30

# Display defaults
PAGE_SIZE = 15

# VT220 color pairs: (foreground, background)
# These map to curses color pair indices used by the renderer.
COLORS_VT220 = {
    "header":       ("green",  "black"),
    "footer":       ("black",  "green"),
    "normal":       ("green",  "black"),
    "highlight":    ("black",  "green"),
    "border":       ("green",  "black"),
    "title":        ("white",  "black"),
    "error":        ("red",    "black"),
    "info":         ("cyan",   "black"),
    "field_label":  ("green",  "black"),
    "field_value":  ("white",  "black"),
    "field_active": ("black",  "cyan"),
}
