@tailwind base;
@tailwind components;
@tailwind utilities;

/* Add this to your global CSS file */
@layer utilities {
    .all-unset {
        /* Default styles for common elements */
        html {
            font-size: 16px;
            line-height: 1.15;
            -webkit-text-size-adjust: 100%;
        }

        body {
            margin: 8px;
            font-family: Arial, sans-serif;
            color: black;
            background-color: white;
        }

        h1, h2, h3, h4, h5, h6 {
            font-weight: bold;
            margin: 0.67em 0;
        }

        p {
            margin: 1em 0;
        }

        ul, ol {
            padding-left: 40px;
            margin: 1em 0;
        }

        li {
            list-style-type: disc;
        }

        a {
            color: -webkit-link;
            text-decoration: underline;
            cursor: pointer;
        }

        button {
            align-items: center;
            appearance: button;
            background-color: -internal-light-dark(rgb(239, 239, 239), rgb(59, 59, 59));
            border: 2px solid transparent;
            border-radius: 4px;
            box-sizing: border-box;
            color: buttontext;
            cursor: default;
            display: inline-flex;
            font: 400 13.3333px Arial;
            padding: 1px 6px;
            text-align: center;
            text-shadow: none;
            white-space: nowrap;
        }

        input {
            font: 400 13.3333px Arial;
            padding: 1px;
        }

        table {
            border-collapse: collapse;
            border-spacing: 0;
        }

        th, td {
            padding: 0;
            text-align: left;
        }
    }
}

.page-builder, .page-render, .item-edit {
    [type="text"],
    [type="email"],
    [type="url"],
    [type="password"],
    [type="number"],
    [type="date"],
    [type="tel"],
    [multiple],
    textarea,
    select {
        @apply !text-base block !w-full !rounded-lg !border !border-gray-300 !border-double placeholder:text-gray-400 focus:border-sky-300 focus:ring focus:ring-sky-200 focus:ring-opacity-50 !py-2 !px-3 !font-normal;
    }

    .q-editor {
        .ql-toolbar {
            @apply rounded-t-lg bg-white;
        }

        .ql-container {
            @apply min-h-[150px] rounded-b-lg bg-white;

            .ql-editor {
                @apply text-base font-normal;
            }
        }
    }
    .ql-editor {
        @apply p-0 overflow-visible h-auto;
    }
}

.pb-container {
    @apply max-w-[1640px] px-4 md:px-16 lg:px-[120px] mx-auto w-full;
}