:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #0066cc;
    --background-color: #f4f4f4;
    --surface-color: #ffffff;
    --border-color: #cccccc;
    --text-color: #333333;
    --error-color: #cc0000;
    --spacing-unit: 1rem;
    --border-radius: 4px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.admin-trigger {
    position: fixed;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    /* background-color: var(--accent-color); */
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    z-index: 1000;
}

.install-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    z-index: 1000;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

.container {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;

    .admin-actions {
        text-align: center;
    }

    .header {
        text-align: center;
        margin-bottom: 2rem;

        .banner {
            width: 100%;
            height: auto;
            border-radius: var(--border-radius);
            margin-bottom: 1rem;
        }

        h1 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        p {
            color: #666;
        }
    }

    .form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;

            label {
                font-weight: 600;
                font-size: 0.9rem;

                .required {
                    color: var(--error-color);
                }
            }

            input,
            select {
                padding: 0.75rem;
                border: 1px solid var(--border-color);
                border-radius: var(--border-radius);
                font-family: inherit;
                font-size: 1rem;
                transition: border-color 0.2s;

                &:focus {
                    outline: none;
                    border-color: var(--accent-color);
                    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
                }

                &:disabled {
                    background-color: #eee;
                    cursor: not-allowed;
                }
            }

            small {
                font-size: 0.8rem;
                color: #666;
            }

            .row {
                display: flex;
                gap: 1rem;

                select {
                    flex: 1;
                }
            }

            .checkbox-group {
                display: flex;
                gap: 1rem;
                flex-wrap: wrap;
            }
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 400;
            cursor: pointer;

            input[type="checkbox"] {
                width: 1.2rem;
                height: 1.2rem;
                cursor: pointer;
            }
        }

        .terms-group {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #eee;
        }

        .submit-btn {
            background-color: #2e2e2e;
            color: white;
            padding: 1rem;
            border: none;
            border-radius: var(--border-radius);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s;
            margin-top: 1rem;

            &:hover {
                background-color: black;
            }
        }
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;

    &.active {
        opacity: 1;
        visibility: visible;
    }

    .modal-content {
        background-color: white;
        padding: 2rem;
        border-radius: var(--border-radius);
        max-width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        text-align: center;

        img {
            max-width: 100%;
            height: auto;
        }

        .close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;

            &:hover {
                color: black;
            }
        }
    }
}

/* Searchable Select Styles */
.searchable-select {
    position: relative;
    width: 100%;

    .select-display {
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        background-color: white;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;

        &.disabled {
            background-color: #eee;
            cursor: not-allowed;
            color: #999;
        }

        &:after {
            content: '';
            border: 5px solid transparent;
            border-top-color: #666;
            margin-left: 0.5rem;
        }
    }

    .select-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 100;
        display: none;
        max-height: 300px;
        overflow-y: auto;
        margin-top: 4px;

        &.active {
            display: block;
        }

        .search-input {
            width: 100%;
            padding: 0.75rem;
            border: none;
            border-bottom: 1px solid #eee;
            outline: none;
            font-family: inherit;
        }

        .options-list {
            list-style: none;
            padding: 0;
            margin: 0;

            li {
                padding: 0.75rem;
                cursor: pointer;
                transition: background-color 0.2s;

                &:hover,
                &.highlighted {
                    background-color: #f4f4f4;
                }

                &.selected {
                    background-color: #e6f0ff;
                    color: var(--accent-color);
                }
            }

            .no-results {
                padding: 0.75rem;
                color: #999;
                text-align: center;
            }
        }
    }
}

.btn {
    background-color: var(--accent-color);
    color: white;
    padding: .5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}