:root {
      /* Links */
      --link-color: rgb(88, 80, 141);
      --link-color-hover: rgb(122, 103, 174);
      --link-color-active: rgb(156, 136, 196);
      --link-color-disabled: rgba(190, 190, 190, 0.6);
      
      /* Primary buttons */
      --primary-button-background-color: rgb(88, 80, 141);
      --primary-button-text-color: rgb(255, 255, 255);
      --primary-button-background-color-hover: rgb(122, 103, 174);
      --primary-button-text-color-hover: rgb(255, 255, 255);
      --primary-button-background-color-active: rgb(156, 136, 196);
      --primary-button-text-color-active: rgb(255, 255, 255);
      --primary-button-background-color-disabled: rgba(120, 120, 120, 0.5);
      --primary-button-text-color-disabled: rgba(255, 255, 255, 0.6);

      /* Secondary buttons */
      --secondary-button-background-color: rgb(240, 240, 245);
      --secondary-button-text-color: rgb(42, 40, 62);
      --secondary-button-background-color-hover: rgb(230, 230, 240);
      --secondary-button-text-color-hover: rgb(42, 40, 62);
      --secondary-button-background-color-active: rgb(220, 220, 235);
      --secondary-button-text-color-active: rgb(42, 40, 62);
      --secondary-button-background-color-disabled: rgba(120, 120, 120, 0.5);
      --secondary-button-text-color-disabled: rgba(255, 255, 255, 0.6);
      

      /* Scrollbars */  
            --scrollbar-track-color: rgba(235, 235, 245, 0.4);
      --scrollbar-thumb-color: rgba(122, 103, 174, 0.6);
      --scrollbar-thumb-hover-color: rgba(156, 136, 196, 0.8);
      --scrollbar-width: 6px;
      --scrollbar-border-radius: 3px;
      
      /* Uploader Colors */
            --uploader-background-color: rgba(245, 245, 250, 0.9);
      --uploader-text-color: rgb(42, 40, 62);
      --uploader-header-background-color: rgba(235, 235, 245, 0.7);
      --uploader-header-text-color: rgb(42, 40, 62);
      --uploader-item-background-color: rgba(250, 250, 255, 0.9);
      --uploader-item-text-color: rgb(42, 40, 62);
      
      /* Panel Colors */
            --panel-background-color: rgb(250, 250, 255);
      --panel-text-color: rgb(42, 40, 62);
      --panel-text-color-alt: rgb(120, 115, 160);
      
      --panel-item-background-color: rgb(240, 240, 245);
      --panel-item-text-color: rgb(42, 40, 62);
      --panel-item-background-color-hover: rgb(230, 230, 240);
      --panel-item-text-color-hover: rgb(42, 40, 62);
      
      --panel-item-action-hover-background-color-from: rgba(230, 230, 240, 0.42);
      --panel-item-action-hover-background-color-to: rgb(230, 230, 240);
      
      --panel-header-background-color: rgba(88, 80, 141, 0.8);
      --panel-header-text-color: rgb(255, 255, 255);
      
      --panel-subheader-background-color: linear-gradient(to bottom, rgb(245, 245, 250) 0%, rgb(235, 235, 245) 100%);
      --panel-subheader-text-color: rgb(42, 40, 62);
      
      --panel-nav-item-background-color: rgb(240, 240, 245);
      --panel-nav-item-text-color: rgb(42, 40, 62);
      --panel-nav-item-background-color-hover: rgba(88, 80, 141, 0.8);
      --panel-nav-item-text-color-hover: rgb(255, 255, 255);
      
      --panel-section-background-color: rgb(240, 240, 245);
      --panel-section-text-color: rgb(42, 40, 62);
      --panel-section-background-color-alt: rgb(230, 230, 240);
      --panel-section-text-color-alt: rgb(42, 40, 62);
      
      /* Tabs Colors */
            --tabs-bar-background-color: rgb(235, 235, 245);
      --tabs-tab-background-color: rgb(225, 225, 235);
      --tabs-tab-text-color: rgb(42, 40, 62);
      --tabs-tab-background-color-hover: rgba(88, 80, 141, 0.8);
      --tabs-tab-text-color-hover: rgb(255, 255, 255);
      --tabs-tab-background-color-active: rgba(88, 80, 141, 0.8);
      --tabs-tab-text-color-active: rgb(255, 255, 255);
      
      /* Table Colors */
            --table-background-color: rgb(245, 245, 250);
      --table-text-color: rgb(42, 40, 62);
      --table-header-background-color: rgba(88, 80, 141, 1);
      --table-header-text-color: rgb(255, 255, 255);
      --table-row-background-color: rgb(250, 250, 255);
      --table-row-text-color: rgb(42, 40, 62);
      --table-row-background-color-alt: rgb(240, 240, 245);
      --table-row-text-color-alt: rgb(42, 40, 62);
      
      /* Input Colors */
            --input-background-color: rgb(250, 250, 255);
      --input-text-color: rgb(42, 40, 62);
      --input-border-color: rgb(200, 195, 230);
      --input-border-color-hover: rgb(156, 136, 196);
      --input-border-color-focus: rgb(88, 80, 141);
      --input-placeholder-color: rgb(150, 145, 175);
      
      /* Checkbox Colors */
            --checkbox-background-color: rgb(250, 250, 255);
      --checkbox-checked-background-color: rgb(88, 80, 141);
      --checkbox-checked-check-color: rgb(255, 255, 255);
      
      /* Label Colors */
            --label-text-color: rgb(42, 40, 62);
      
      /* Progress Bar Colors */
            --progress-bar-background-color: rgb(235, 235, 245);
      --progress-bar-fill-color: rgb(88, 80, 141);
      --progress-bar-text-color: rgb(42, 40, 62);
      
      /* Overlay Colors */
            --overlay-background-color: rgba(245, 245, 255, 0.7);
      
      /* Status Colors */
      --color-success: rgb(34, 197, 94);
      --color-warning: rgb(234, 179, 8);
      --color-danger: rgb(239, 68, 68);

      /* Dimensions */
                      --button-height: 50px;
        --button-width: 100%;
        --icon-only-button-width: 50px;
        --button-border-radius: 10px;
        
                --panel-border-radius: 10px;
        
                --tabs-border-radius: 5px 5px 0 0;
        
                --settings-width: 100vw;
        --settings-height: 100vh;
                  }


/* flipship (18.11): ett frostet glasspanel, litt inn fra kanten, ca. 2/3 av høyden. Leveres av Caddy (templates) oppå Erugos eget tema. */
:root {
  --uploader-background-color: transparent;
  --uploader-header-background-color: transparent;
  --uploader-item-background-color: rgba(255, 255, 255, .55);
  --panel-section-background-color: rgba(255, 255, 255, .45);
}
@media (min-width: 768px) {
  .main {
    flex-grow: 0 !important; justify-content: flex-start !important;
    width: min(420px, 100%) !important; height: 64vh; min-height: 420px;
    margin: auto 0 auto 5vw !important;
    background: rgba(245, 245, 250, .55);
    -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(10, 12, 20, .35), inset 0 0 0 1px rgba(255, 255, 255, .25);
  }
  .main > :not(.sharePanel) { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .upload-basket { flex-grow: 1 !important; max-height: none; min-height: 0; }
}
@media (max-width: 767px) {
  .main { flex-grow: 0 !important; margin-top: auto; margin-bottom: auto !important; background: rgba(245,245,250,.6);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 14px; overflow: hidden; }
  .upload-basket { flex-grow: 0 !important; min-height: 140px; max-height: 50vh; }
}

/* 18.11: e-post- og meldingsfeltet med samme innrykk og runde hjørner som mottakerboksen over */
.main input[type=text], .main input[type=email], .main input:not([type]), .main textarea {
  width: calc(100% - 20px) !important; margin: 0 10px 8px !important; box-sizing: border-box;
  border-radius: 8px !important; border: 0 !important; background: rgba(255, 255, 255, .6) !important;
}
/* Menyen nede til høyre: samme glass */
.main-menu {
  background: rgba(245, 245, 250, .55) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15);
  filter: none !important; border-radius: 14px !important; margin: 0 14px 14px 0;
  box-shadow: 0 16px 40px rgba(10, 12, 20, .35), inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.main-menu button, .main-menu a { background: transparent !important; }
.main-menu button:hover, .main-menu a:hover { background: rgba(255, 255, 255, .5) !important; }

/* «Lenke klar»-vinduet: dempet glass over hele panelet, kortet innenfor kantene */
.sharePanel { background: rgba(24, 26, 32, .25) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sharePanel .sharePanel-content { width: calc(100% - 28px) !important; box-sizing: border-box; border-radius: 14px !important;
  background: rgba(250, 250, 255, .85) !important; box-shadow: 0 18px 44px rgba(10, 12, 20, .3); }
.sharePanel .sharePanel-content .sharePanel-url { box-sizing: border-box; gap: 8px; border-radius: 8px; padding-right: 6px; word-break: break-all; }
.sharePanel .sharePanel-copy-button { flex-shrink: 0; }
