#!/usr/bin/env python3

import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), 'src'))

import tkinter as tk
from tkinter import ttk
from excel_filter.gui_components.main_window import MainWindow

def test_styling():
    root = tk.Tk()
    
    # Test the main window creation
    try:
        main_window = MainWindow(root)
        print("MainWindow created successfully")
        
        # Test color palette
        print("Windows 11 color palette loaded")
        
        # Test styles
        style = ttk.Style()
        print("Tkinter styles configured")
        
        # Test window properties
        print(f"Window title: {root.title()}")
        print(f"Window size: {root.geometry()}")
        
        print("\nWindows 11 Styling Test Results:")
        print("All styling components loaded successfully!")
        print("GUI should now look like a Windows 11 application")
        
        # Close the window without running mainloop
        root.destroy()
        
    except Exception as e:
        print(f"Error: {e}")
        root.destroy()

if __name__ == "__main__":
    test_styling()