{{-- <!doctype html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="fonts/icomoon/style.css">
    <link rel="stylesheet" href="{{ asset('login/css/owl.carousel.min.css') }}">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="{{ asset('login/css/bootstrap.min.css') }}">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <!-- Style -->
    <link rel="stylesheet" href="{{ asset('login/css/style.css') }}">
    <title>SMKN 2 JEMBER</title>
    <link href="{{ asset('assets/img/LogoSMK.png') }}" rel="icon">
        <style>
            /* Mengubah tulisan SMKN 2 Jember dan deskripsi menjadi hitam */
            .custom-black {
                color: black !important;
            }

            /* Styling untuk ikon mata */
            .password-toggle {
                position: absolute;
                right: 15px;
                /* Jarak dari sisi kanan */
                top: 50%;
                transform: translateY(-50%);
                cursor: pointer;
                z-index: 2;
                /* Pastikan ikon berada di atas input */
            }

            /* Menambahkan padding kanan pada input password */
            .form-group.last .form-control {
                padding-right: 40px;
                /* Ruang untuk ikon mata */
            }

            .form-group.last {
                position: relative;
            }

            /* Background animations */
            .bg-white-default {
                background: #ffffff;
                /* Solid white background */
            }

            .bg-gradient-default {
                background: linear-gradient(-45deg, #7F7FD5, #86A8E7, #91EAE4);
                background-size: 400% 400%;
                animation: gradient 15s ease infinite;
            }

            .bg-gradient-1 {
                background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
                background-size: 400% 400%;
                animation: gradient 15s ease infinite;
            }

            .bg-gradient-2 {
                background: linear-gradient(-45deg, #4facfe, #00f2fe, #0575E6, #021B79);
                background-size: 400% 400%;
                animation: gradient 15s ease infinite;
            }

            .bg-gradient-3 {
                background: linear-gradient(-45deg, #08AEEA, #2AF598, #2CD8D5, #C5C1FF);
                background-size: 400% 400%;
                animation: gradient 15s ease infinite;
            }

            @keyframes gradient {
                0% {
                    background-position: 0% 50%;
                }

                50% {
                    background-position: 100% 50%;
                }

                100% {
                    background-position: 0% 50%;
                }
            }

            /* Settings button */
            .settings-btn {
                position: fixed;
                bottom: 20px;
                right: 20px;
                background: rgba(0, 0, 0, 0.1);
                /* Slightly darker background */
                border: none;
                border-radius: 50%;
                width: 50px;
                height: 50px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s ease;
            }

            .settings-btn:hover {
                background: rgba(0, 0, 0, 0.2);
                /* Darker on hover */
                transform: rotate(30deg);
            }

            /* Background selector menu */
            .bg-selector {
                position: fixed;
                bottom: 80px;
                right: 20px;
                background: rgba(255, 255, 255, 0.9);
                border-radius: 10px;
                padding: 10px;
                display: none;
            }

            .bg-option {
                width: 30px;
                height: 30px;
                margin: 5px;
                border-radius: 5px;
                cursor: pointer;
                transition: transform 0.2s;
            }

            .bg-option:hover {
                transform: scale(1.1);
            }

            /* Modify bg-option for white background */
            .bg-option.bg-white-default {
                border: 1px solid #ddd;
                /* Add border to make white option visible */
            }

            /* Styling untuk container login */
            .login-container {
                background: rgba(255, 255, 255, 0.85);
                backdrop-filter: blur(10px);
                border: 1px solid rgba(255, 255, 255, 0.3);
                box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2) !important;
            }

            /* Menyesuaikan warna teks agar tetap kontras */
            .form-label-bold {
                color: #333;
                font-weight: 500;
            }

            .custom-black {
                color: #333 !important;
            }

            /* Styling untuk input fields */
            .form-control {
                background: rgba(255, 255, 255, 0.9);
                border: 1px solid rgba(0, 0, 0, 0.1);
            }

            .form-control:focus {
                background: rgba(255, 255, 255, 1);
                border-color: #80bdff;
                box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
            }

            /* Styling untuk tombol login */
            .btn-primary {
                background: #007bff;
                border: none;
                font-weight: 500;
                padding: 12px;
            }

            .btn-primary:hover {
                background: #0056b3;
                transform: translateY(-1px);
                transition: all 0.3s ease;
            }

            /* Memperbaiki style untuk toggle password */
            .password-toggle {
                color: #555;
            }

            /* Alert styling */
            .alert {
                border-radius: 5px;
                margin-bottom: 20px;
            }
        </style>



</head>

<body class="bg-white-default">
    <div class="content">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-md-10 shadow-lg p-5 rounded login-container">
                    <div class="row">
                        <div class="col-md-6 d-flex align-items-center">
                            <img src="{{ asset('login/images/undraw_remotely_2j6y.svg') }}" alt="Image"
                                class="img-fluid">
                        </div>
                        <div class="col-md-6 contents">
                            <div class="row justify-content-center">
                                <div class="col-md-12">
                                    <div class="mb-4">
                                        <!-- Teks SMKN 2 Jember dan deskripsi -->
                                        <h3 class="custom-black">Sign In</h3>
                                        <p class="custom-black mb-4">
                                            Selamat datang di Tracer Studty Mif.
                                            Silahkan login untuk melanjutkan.
                                        </p>
                                    </div>

                                    @if (session('error'))
                                        <div class="alert alert-danger">
                                            {{ session('error') }}
                                        </div>
                                    @endif

                                    @if (session('success'))
                                        <div class="alert alert-success">
                                            {{ session('success') }}
                                        </div>
                                    @endif

                                    <!-- In your login.blade.php file, update the form action -->
                                    <form action="{{ url('/') }}" method="post">
                                        @csrf
                                        <!-- Label Username -->
                                        <div class="form-group first mb-3">
                                            <label for="username" class="form-label-bold">Username</label>
                                            <input type="text" class="form-control @error('username') is-invalid @enderror" id="username" name="username" value="{{ old('username') }}" required>
                                            @error('username')
                                                <div class="invalid-feedback">
                                                    {{ $message }}
                                                </div>
                                            @enderror
                                        </div>
                                        <!-- Label Password -->
                                        <div class="form-group last mb-4">
                                            <label for="password" class="form-label-bold">Password</label>
                                            <input type="password" class="form-control @error('password') is-invalid @enderror" id="password" name="password" required>
                                            <i class="fas fa-eye-slash password-toggle" id="togglePassword"></i>
                                            @error('password')
                                                <div class="invalid-feedback">
                                                    {{ $message }}
                                                </div>
                                            @enderror
                                        </div>
                                        <input type="submit" value="Log In" class="btn btn-block btn-primary">
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Background selector -->
    <div class="bg-selector" id="bgSelector">
        <div class="bg-option bg-white-default" onclick="changeBackground('bg-white-default')"></div>
        <div class="bg-option bg-gradient-default" onclick="changeBackground('bg-gradient-default')"></div>
        <div class="bg-option bg-gradient-1" onclick="changeBackground('bg-gradient-1')"></div>
        <div class="bg-option bg-gradient-2" onclick="changeBackground('bg-gradient-2')"></div>
        <div class="bg-option bg-gradient-3" onclick="changeBackground('bg-gradient-3')"></div>
    </div>

    <!-- Settings button -->
    <button class="settings-btn" id="settingsBtn">
        <i class="fas fa-cog" style="color: #333333; font-size: 24px;"></i>
    </button>

    <script src="{{ asset('login/js/jquery-3.3.1.min.js') }}"></script>
    <script src="{{ asset('login/js/popper.min.js') }}"></script>
    <script src="{{ asset('login/js/bootstrap.min.js') }}"></script>
    <script src="{{ asset('login/js/main.js') }}"></script>
    <script>
        const togglePassword = document.getElementById('togglePassword');
        const passwordField = document.getElementById('password');

        togglePassword.addEventListener('click', function() {
            const type = passwordField.getAttribute('type') === 'password' ? 'text' : 'password';
            passwordField.setAttribute('type', type);

            this.classList.toggle('fa-eye');
            this.classList.toggle('fa-eye-slash');
        });

        // Background settings
        const settingsBtn = document.getElementById('settingsBtn');
        const bgSelector = document.getElementById('bgSelector');
        let isOpen = false;

        settingsBtn.addEventListener('click', () => {
            isOpen = !isOpen;
            bgSelector.style.display = isOpen ? 'block' : 'none';
        });

        function changeBackground(className) {
            document.body.className = className;
            // Save preference to localStorage
            localStorage.setItem('preferredBackground', className);
        }

        // Load saved background preference
        document.addEventListener('DOMContentLoaded', () => {
            const savedBg = localStorage.getItem('preferredBackground');
            if (savedBg) {
                document.body.className = savedBg;
            } else {
                // Set white background as default
                document.body.className = 'bg-white-default';
                localStorage.setItem('preferredBackground', 'bg-white-default');
            }
        });
    </script>


</body>

</html> --}}


<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>J-Classify Tracer Study MIF</title>
    
    <!-- Favicon -->
    <link href="{{ asset('assets/img/LogoSMK.png') }}" rel="icon">
    
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
    
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="{{ asset('login/css/bootstrap.min.css') }}">
    
    <style>
        :root {
            --primary-color: #4361ee;
            --secondary-color: #3f37c9;
            --success-color: #4cc9f0;
            --text-color: #2b2d42;
            --light-text: #8d99ae;
            --background: #f8f9fa;
            --white: #ffffff;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            --border-radius: 12px;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--background);
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            align-items: center;
            transition: background 0.5s ease;
        }
        
        .card {
            border: none;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
        }
        
        .card:hover {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            transform: translateY(-5px);
        }
        
        .login-card {
            max-width: 1000px;
            margin: 0 auto;
        }
        
        .left-column {
            background-color: var(--primary-color);
            background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: var(--white);
            padding: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .left-column h2 {
            font-weight: 600;
            font-size: 2rem;
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
        }
        
        .left-column p {
            font-weight: 300;
            opacity: 0.9;
            margin-bottom: 2rem;
            position: relative;
            z-index: 1;
        }
        
        .school-logo {
            width: 80px;
            height: 80px;
            object-fit: contain;
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 1;
        }
        
        .svg-background {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            opacity: 0.1;
            z-index: 0;
        }
        
        .right-column {
            padding: 3rem;
            background-color: var(--white);
        }
        
        .login-form h3 {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .login-subtitle {
            color: var(--light-text);
            margin-bottom: 2rem;
            font-size: 0.9rem;
        }
        
        .form-label {
            font-weight: 500;
            font-size: 0.85rem;
            color: var(--text-color);
        }
        
        .form-control {
            border-radius: 8px;
            padding: 0.75rem 1rem;
            border: 1px solid rgba(0, 0, 0, 0.1);
            background-color: #f8f9fa;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }
        
        .form-control:focus {
            box-shadow: none;
            border-color: var(--primary-color);
            background-color: var(--white);
        }
        
        .input-group {
            position: relative;
        }
        
        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            z-index: 5;
            color: var(--light-text);
        }
        
        .btn-login {
            background-color: var(--primary-color);
            border: none;
            border-radius: 8px;
            padding: 0.75rem 1rem;
            font-weight: 500;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 1rem;
        }
        
        .btn-login:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
        }
        
        .alert {
            border-radius: 8px;
            font-size: 0.9rem;
            padding: 0.75rem 1rem;
            margin-bottom: 1.5rem;
        }
        
        /* Themes */
        .theme-selector {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
        }
        
        .theme-toggle {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background-color: var(--white);
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .theme-toggle:hover {
            transform: rotate(30deg);
        }
        
        .theme-toggle i {
            color: var(--text-color);
            font-size: 20px;
        }
        
        .theme-options {
            position: absolute;
            bottom: 60px;
            right: 0;
            background-color: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow);
            padding: 10px;
            display: none;
            width: 200px;
        }
        
        .theme-option {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .theme-option:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }
        
        .theme-color {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            margin-right: 12px;
        }
        
        .theme-label {
            font-size: 0.9rem;
            color: var(--text-color);
        }
        
        /* Theme colors */
        .blue-theme .theme-color {
            background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
        }
        
        .green-theme .theme-color {
            background: linear-gradient(135deg, #2ec4b6 0%, #06d6a0 100%);
        }
        
        .purple-theme .theme-color {
            background: linear-gradient(135deg, #7b2cbf 0%, #5a189a 100%);
        }
        
        .orange-theme .theme-color {
            background: linear-gradient(135deg, #ff9e00 0%, #ff5400 100%);
        }
        
        .dark-theme .theme-color {
            background: linear-gradient(135deg, #2b2d42 0%, #1a1a2e 100%);
        }
        
        .forgot-password, .register-link {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.85rem;
            transition: all 0.2s ease;
        }
        
        .forgot-password:hover, .register-link:hover {
            color: var(--secondary-color);
            text-decoration: underline;
        }
        
        /* Responsive */
        @media (max-width: 991.98px) {
            .left-column {
                padding: 2rem;
                text-align: center;
            }
            
            .school-logo {
                margin: 0 auto 1.5rem auto;
            }
            
            .right-column {
                padding: 2rem;
            }
        }
        
        @media (max-width: 767.98px) {
            .card {
                margin: 1rem;
            }
            
            .login-card {
                max-width: 100%;
            }
        }
        
        /* Theme styles */
        body.green-theme {
            --primary-color: #2ec4b6;
            --secondary-color: #06d6a0;
        }
        
        body.purple-theme {
            --primary-color: #7b2cbf;
            --secondary-color: #5a189a;
        }
        
        body.orange-theme {
            --primary-color: #ff9e00;
            --secondary-color: #ff5400;
        }
        
        body.dark-theme {
            --background: #121212;
            --text-color: #e0e0e0;
            --light-text: #a0a0a0;
            --primary-color: #2b2d42;
            --secondary-color: #1a1a2e;
        }
        
        body.dark-theme .right-column {
            background-color: #1e1e1e;
        }
        
        body.dark-theme .form-control {
            background-color: #2d2d2d;
            border-color: #3d3d3d;
            color: #e0e0e0;
        }
        
        body.dark-theme .form-control:focus {
            background-color: #2d2d2d;
        }
        
        body.dark-theme .theme-toggle,
        body.dark-theme .theme-options {
            background-color: #1e1e1e;
        }
        
        body.dark-theme .theme-toggle i {
            color: #e0e0e0;
        }
        
        body.dark-theme .theme-label {
            color: #e0e0e0;
        }
    </style>
</head>

<body class="blue-theme">
    <div class="container py-5">
        <div class="card login-card">
            <div class="row g-0">
                <div class="col-lg-6 left-column">
                    <img src="{{ asset('assets/img/Logo_Polije.png') }}" alt="SMK Logo" class="school-logo">
                    <h2>Selamat Datang di Tracer Study Manajemen Informatika</h2>
                    <p>Silakan login untuk berkontribusi dalam peningkatan akreditasi program studi melalui tracer study Manajemen Informatika</p>
                                       
                    <!-- SVG Background -->
                    <svg class="svg-background" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
                        <path fill="#ffffff" fill-opacity="1" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path>
                    </svg>
                </div>
                <div class="col-lg-6 right-column">
                    <div class="login-form">
                        <h3>Log In</h3>
                        <p class="login-subtitle">Silahkan login untuk melanjutkan ke sistem</p>
                        
                        @if (session('error'))
                        <div class="alert alert-danger alert-dismissible fade show" role="alert">
                            <i class="fas fa-exclamation-circle me-2"></i>{{ session('error') }}
                        </div>
                        @endif

                        @if (session('success'))
                        <div class="alert alert-success alert-dismissible fade show" role="alert">
                            <i class="fas fa-check-circle me-2"></i>{{ session('success') }}
                        </div>
                        @endif
                        
                        <form action="{{ url('/') }}" method="post">
                            @csrf
                            <div class="mb-3">
                                <label for="username" class="form-label">Username / NIM</label>
                                <div class="input-group">
                                    <span class="input-group-text bg-transparent border-end-0">
                                        <i class="fas fa-user"></i>
                                    </span>
                                    <input type="text" class="form-control border-start-0 @error('username') is-invalid @enderror" id="username" name="username" value="{{ old('username') }}" placeholder="Masukkan username" required>
                                    @error('username')
                                    <div class="invalid-feedback">
                                        {{ $message }}
                                    </div>
                                    @enderror
                                </div>
                            </div>
                            
                            <div class="mb-4">
                                <label for="password" class="form-label">Password</label>
                                <div class="input-group">
                                    <span class="input-group-text bg-transparent border-end-0">
                                        <i class="fas fa-lock"></i>
                                    </span>
                                    <input type="password" class="form-control border-start-0 @error('password') is-invalid @enderror" id="password" name="password" placeholder="Masukkan password" required>
                                    <i class="fas fa-eye-slash password-toggle" id="togglePassword"></i>
                                    @error('password')
                                    <div class="invalid-feedback">
                                        {{ $message }}
                                    </div>
                                    @enderror
                                </div>
                                <div class="text-end mt-2">
                                    {{-- <a href="{{ route('password.request') }}" class="forgot-password">Lupa password?</a> --}}
                                    <a href="{{ route('password.request') }}" class="forgot-password">Lupa password?</a>
                                </div>
                            </div>
                            
                            <button type="submit" class="btn btn-login btn-primary">
                                <i class="fas fa-sign-in-alt me-2"></i>Masuk
                            </button>
                            
                            <div class="text-center mt-4">
                                <p class="mb-0">Belum punya akun? <a href="{{ route('register') }}" class="register-link">Daftar sekarang</a></p>
                                {{-- <p class="mb-0">Belum punya akun? <a href="{{ route('register') }}" class="register-link">Daftar sekarang</a></p> --}}
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <div class="theme-selector">
        <div class="theme-toggle" id="themeToggle">
            <i class="fas fa-palette"></i>
        </div>
        <div class="theme-options" id="themeOptions">
            <div class="theme-option blue-theme" onclick="changeTheme('blue-theme')">
                <div class="theme-color"></div>
                <div class="theme-label">Blue Theme</div>
            </div>
            <div class="theme-option green-theme" onclick="changeTheme('green-theme')">
                <div class="theme-color"></div>
                <div class="theme-label">Green Theme</div>
            </div>
            <div class="theme-option purple-theme" onclick="changeTheme('purple-theme')">
                <div class="theme-color"></div>
                <div class="theme-label">Purple Theme</div>
            </div>
            <div class="theme-option orange-theme" onclick="changeTheme('orange-theme')">
                <div class="theme-color"></div>
                <div class="theme-label">Orange Theme</div>
            </div>
            <div class="theme-option dark-theme" onclick="changeTheme('dark-theme')">
                <div class="theme-color"></div>
                <div class="theme-label">Dark Theme</div>
            </div>
        </div>
    </div>

    <!-- Scripts -->
    <script src="{{ asset('login/js/jquery-3.3.1.min.js') }}"></script>
    <script src="{{ asset('login/js/bootstrap.min.js') }}"></script>

    <script>
        // Toggle password visibility
        const togglePassword = document.getElementById('togglePassword');
        const passwordField = document.getElementById('password');

        togglePassword.addEventListener('click', function() {
            const type = passwordField.getAttribute('type') === 'password' ? 'text' : 'password';
            passwordField.setAttribute('type', type);

            this.classList.toggle('fa-eye');
            this.classList.toggle('fa-eye-slash');
        });

        // Theme selector
        const themeToggle = document.getElementById('themeToggle');
        const themeOptions = document.getElementById('themeOptions');
        let isThemeOpen = false;

        // Theme toggle
        themeToggle.addEventListener('click', () => {
            isThemeOpen = !isThemeOpen;
            themeOptions.style.display = isThemeOpen ? 'block' : 'none';
        });

        // Theme change
        function changeTheme(themeName) {
            // Remove all theme classes
            document.body.classList.remove('blue-theme', 'green-theme', 'purple-theme', 'orange-theme', 'dark-theme');
            
            // Add selected theme class
            document.body.classList.add(themeName);
            
            // Save theme preference to localStorage
            localStorage.setItem('preferredTheme', themeName);
            
            // Close theme selector
            themeOptions.style.display = 'none';
            isThemeOpen = false;
        }

        // Load saved theme preference
        document.addEventListener('DOMContentLoaded', () => {
            const savedTheme = localStorage.getItem('preferredTheme');
            if (savedTheme) {
                document.body.classList.remove('blue-theme', 'green-theme', 'purple-theme', 'orange-theme', 'dark-theme');
                document.body.classList.add(savedTheme);
            }
            
            // Close alerts automatically after 5 seconds
            setTimeout(() => {
                const alerts = document.querySelectorAll('.alert');
                alerts.forEach(alert => {
                    const bsAlert = new bootstrap.Alert(alert);
                    bsAlert.close();
                });
            }, 5000);
        });

        // Close theme selector when clicking outside
        document.addEventListener('click', (event) => {
            if (isThemeOpen && !themeToggle.contains(event.target) && !themeOptions.contains(event.target)) {
                themeOptions.style.display = 'none';
                isThemeOpen = false;
            }
        });
    </script>
</body>
</html>