/* Shared theme resources, ported from the MAUI mobile app theme (XAML resource dictionary).
   Each variable is the kebab-case form of its XAML key with an "se-" prefix,
   e.g. PrimaryColor -> var(--se-primary-color).
   Colors with alpha are converted from XAML #AARRGGBB to CSS #RRGGBBAA. */
:root {
    /* MAIN FONT */
    --se-app-font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --se-app-font-weight: 400;
    --se-app-bold-font-weight: 600;

    --se-micro-font-size: 9px;
    --se-small-font-size: 11px;
    --se-base-font-size: 13px;
    --se-large-font-size: 15px;
    --se-xlarge-font-size: 16px;
    --se-small-title-font-size: 18px;
    --se-title-font-size: 24px;
    --se-large-title-font-size: 28px;

    /* ############################## DESIGN SYSTEM ############################## */

    /* PRIMARY COLORS */
    --se-primary-color: #3F75FF;
    --se-primary-highlight-color: #6590FF;
    --se-primary-variant-color: #D9E3FF;
    --se-primary-transparent-color: #3F75FF08;
    --se-dark-primary-color: #0048FF;

    /* BACKGROUND COLORS */
    --se-inverse-text-color: #FFFFFF;
    --se-background-color: #F1F3F8;
    --se-background-secondary-color: #FFFFFF;
    --se-background-tertiary-color: #DBE0ED;

    /* TEXT COLORS */
    --se-text-color: #12141B;
    --se-text-secondary-color: #6F7A8F;
    --se-text-tertiary-color: #A2AECC;

    /* SUCCESS COLORS */
    --se-success-color: #46C771;
    --se-success-secondary-color: #E8F1EB;
    --se-success-tertiary-color: #1DAB52;

    /* WARNING COLORS */
    --se-warning-color: #F9B300;
    --se-warning-secondary-color: #FFF8D4;
    --se-warning-tertiary-color: #CC9C07;

    /* ERROR COLORS */
    --se-error-color: #FF2525;
    --se-error-secondary-color: #FFE3E3;
    --se-error-tertiary-color: #BD3636;

    /* INFO COLORS */
    --se-info-color: #3F75FF;
    --se-info-secondary-color: #D9E3FF;
    --se-info-tertiary-color: #6590FF;

    /* DISABLED COLORS */
    --se-disabled-color: #A2AECC;
    --se-disabled-secondary-color: #DCE1EE;
    --se-disabled-tertiary-color: #F1F3F8;

    /* OVERLAY COLORS */
    --se-overlay-color: #000000CC;
    --se-overlay-variant-color: #00000055;
    --se-overlay-highlight-color: #FFFFFF33;
    --se-overlay-secondary-color: #55555555;

    /* ADDITIONAL COLORS */
    --se-rating-color: #FF602E;
    --se-on-surface-color: #FFFFFF;
    --se-favorite-color: #FF2525;

    /* DELETE COLORS */
    --se-delete-background-color: #FFE3E0;
    --se-delete-text-color: #FF3B30;

    /* GRADIENTS */
    --se-primary-gradient: linear-gradient(90deg, var(--se-primary-color), #3F97FF);
    --se-overlay-image-gradient: linear-gradient(to top, #18222CB2, #1C283300);

    /* PALETTES */
    --se-variant-palette-1: #E8F1EB;
    --se-variant-palette-2: #F1E4F7;
    --se-variant-palette-3: #E8F8FF;
    --se-variant-palette-4: #D9E3FF;
    --se-variant-palette-5: #FFF8D4;
    --se-variant-palette-6: #FFE4D9;
    --se-variant-palette-7: #FFD9D9;
    --se-variant-palette-8: #FBE4EE;

    --se-default-palette-1: #46C771;
    --se-default-palette-2: #AF52DE;
    --se-default-palette-3: #5AC8FA;
    --se-default-palette-4: #3F75FF;
    --se-default-palette-5: #F9B300;
    --se-default-palette-6: #FF7134;
    --se-default-palette-7: #FF2525;
    --se-default-palette-8: #FB4D96;

    /* ############################# ADVANCED COLORS ############################# */

    /* GENERAL COLORS */
    --se-text-on-surface-color: var(--se-on-surface-color);
    --se-secondary-card-background-color: var(--se-background-color);
    --se-primary-action-button-text-color: var(--se-text-on-surface-color);
    --se-tag-item-unselected-background-color: var(--se-background-color);
    --se-tag-item-selected-background-color: var(--se-primary-color);
    --se-navigation-bar-text-color: var(--se-text-on-surface-color);
    --se-ratings-unselected-color: var(--se-disabled-secondary-color);

    /* POPUPS */
    --se-custom-action-sheet-background-color: var(--se-background-color);
    --se-custom-action-sheet-text-color: var(--se-text-secondary-color);

    /* TAGS */
    --se-tag-item-background-color: var(--se-primary-variant-color);
    --se-tag-item-text-color: var(--se-primary-color);

    /* BUTTONS */
    --se-secondary-action-button-color: var(--se-primary-variant-color);
    --se-secondary-action-button-text-color: var(--se-primary-color);

    --se-circle-action-button-flat-background-color: var(--se-primary-color);
    --se-circle-action-button-flat-border-color: var(--se-background-secondary-color);
    --se-circle-action-button-flat-icon-color: var(--se-text-on-surface-color);

    --se-save-button-color: var(--se-success-color);
    --se-delete-button-color: var(--se-error-color);

    /* DATA GRIDS */
    --se-data-grid-header-row-background-color: var(--se-background-color);
    --se-data-grid-header-text-color: var(--se-text-secondary-color);
    --se-data-grid-background-color: var(--se-background-color);
    --se-data-grid-cell-text-color: var(--se-text-secondary-color);
    --se-even-rows-background-color: var(--se-background-color);

    /* ENTRY AND EDITORS */
    --se-entry-and-editors-background-color: var(--se-background-tertiary-color);
    --se-entry-and-editors-border-color: var(--se-background-tertiary-color);

    /* MAIN MENU */
    --se-main-menu-background-color: var(--se-background-secondary-color);
    --se-main-menu-text-color: var(--se-text-color);
    --se-main-menu-icon-color: var(--se-text-color);

    /* SEPARATOR COLORS */
    --se-list-separator-color: var(--se-disabled-secondary-color);
    --se-base-separator-color: var(--se-text-secondary-color);

    /* TAB CONTROL COLORS */
    --se-simple-tab-default-state-text-color: var(--se-text-secondary-color);

    /* CHAT */
    --se-chat-right-balloon-background-color: var(--se-primary-color);
    --se-chat-right-text-color: var(--se-text-on-surface-color);
    --se-chat-left-text-color: var(--se-text-on-surface-color);
    --se-chat-left-balloon-background-color: var(--se-text-secondary-color);

    /* ############################### FINE-TUNING ############################### */

    /* MAIN MENU */
    --se-main-menu-label-font-size: 19px;
    --se-main-menu-icon-font-size: 22px;

    /* BUTTONS */
    --se-base-button-height: 54px;
    --se-base-button-corner-radius: 16px;
    --se-base-button-border-width: 0;

    /* DIALOGS & POPUPS */
    --se-dialogs-corner-radius: 15px;
    --se-dialogs-button-corner-radius: 16px;
    --se-dialogs-button-width: 265px;
    --se-dialogs-button-height: 54px;
    --se-dialogs-button-margin: 0 5px;

    /* TAGS */
    --se-tag-item-margin: 0 4px;
    --se-tag-item-padding: 0 10px;
    --se-tag-item-corner-radius: 8px;
    --se-tag-item-font-size: 12px;
    --se-tag-item-icon-size: 12px;
    --se-tag-item-image-size: 18px;
    --se-tag-item-image-border-size: 1px;

    /* ENTRY AND EDITORS */
    --se-entry-and-editors-border-width: 0;
    --se-entry-and-editors-horizontal-padding: 12px;

    --se-entry-height: 54px;
    --se-entry-border-corner-radius: 16px;

    --se-editor-height: 100px;
    --se-editor-border-corner-radius: 16px;
    --se-editor-font-size: 13px;

    /* ################################# WEB ONLY ################################ */

    /* Compact sizes for the web app; the sizes above are the mobile (touch) ones. */

    /* CONTROLS (inputs, buttons) */
    --se-web-control-height: 44px;
    --se-web-control-corner-radius: 12px;
    --se-web-control-inner-corner-radius: 9px;
    --se-web-control-horizontal-padding: 14px;
    --se-web-control-font-size: var(--se-base-font-size);
    --se-web-control-spacing: 12px;
    --se-web-icon-button-size: 34px;
    --se-web-icon-size: 18px;

    /* SEGMENTED TABS */
    --se-web-segmented-tab-height: 34px;
    --se-web-segmented-tab-padding: 4px;

    /* LAYOUT */
    --se-web-form-max-width: 320px;
    --se-web-panel-corner-radius: 28px;
    --se-web-page-title-font-size: 22px;

    /* MOTION */
    --se-web-transition-duration: 0.18s;
    --se-web-enter-duration: 0.45s;
    --se-web-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
