import os

class Settings:
    REDIS_URL: str = os.getenv("REDIS_URL", "redis://localhost:6379/0")
    CELERY_BROKER_URL: str = os.getenv("CELERY_BROKER_URL", "redis://localhost:6379/0")
    CELERY_RESULT_BACKEND: str = os.getenv("CELERY_RESULT_BACKEND", "redis://localhost:6379/0")
    
    # __file__ is app/config.py, so dirname(__file__) = app/, dirname(app/) = project root
    APP_DIR: str = os.path.dirname(os.path.abspath(__file__))
    BASE_DIR: str = os.path.dirname(APP_DIR)
    TEMPLATES_DIR: str = os.path.join(APP_DIR, "templates")
    STORAGE_DIR: str = os.path.join(APP_DIR, "storage")
    UPLOADS_DIR: str = os.path.join(STORAGE_DIR, "uploads")
    PROCESSED_DIR: str = os.path.join(STORAGE_DIR, "processed")

settings = Settings()
