/**
 *  MyHome Custom Stylesheet
 *  
 *  Update this stylesheet to replace the default
 *  logos, colours, theming etc. for MyHome.
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html body {
    /* Colour Variables (R, G, B) */

    /* Main theme colour for nav bar, icons, action buttons, links, highlights etc. */
    --primary: 37, 37, 37;
    --primary-contrast: 255, 255, 255;

     /* Secondary colour for smaller highlights */
    --accent: 253, 185, 19;
    --accent-contrast: 255, 255, 255;

    /* Colour for basic actions and minor buttons */
    --default: 230, 233, 237;
    --default-contrast: 0, 0, 0;

    /* Colour used for Success Messages, loading bars/spinners, and Approve, Confirm, Save etc. actions */
    --save: 38, 194, 128;
    --save-contrast: 255, 255, 255;

    /* Colour used for Error Messages, and Reject, Delete, etc. actions */
    --delete: 194, 38, 28;
    --delete-contrast: 255, 255, 255;

    --done: 13, 185, 61; /* Highlight colour for completed tasks, icons, etc. */
    --incomplete: 255, 209, 26; /* Highlight colour for incomplete tasks, icons, etc. */

    /* Background/Foreground Colours */
    --ch-bg: 255, 255, 255; /* Lightest background colour, usually white */
    --ch-bg-1: 244, 246, 251;
    --ch-bg-2: 238, 240, 245;
    --ch-bg-3: 227, 230, 236;
    --ch-bg-4: 197, 200, 206; /* Darkest background colour */
    --ch-fg: 0, 0, 0; /* Darkest text colour, usually black */
    --ch-fg-1: 75, 75, 75;
    --ch-fg-2: 120, 130, 140;
    --ch-fg-3: 160, 170, 180; /* Lightest text colour */

    /* Appointment Calender Event Colours*/
    --appointment-confirmed: 10, 90, 159;  
    --appointment-pending: 165, 165, 165;
    --appointment-alternate: 158, 214, 237; /* Alternate Time proposed */
    --appointment-complete: 73, 183, 65; /* Appointment has already occurred */

    /* Font Variables - uncomment to override */
    --font-headers: 'Roboto', arial, sans-serif;
    --font-default: 'Roboto', arial, sans-serif;

    /* Default Logo & Splash Image - uncomment to use */
    /* --splash-url: url('your splash url here'); */ /* background image on login page */
    /* --logo-url: url('your logo url here'); */ /* logo URL, should blend nicely with white background */
    /* --logo-url: url('your logo url here'); */ /* logo url, should blend nicely on black background */
    --splash-url: url('./assets/splash-image.png');
    --logo-url: url('https://www.sjdhomes.com.au/cms/content/themes/sjdhomes/images/site-logo.svg');
    /* Miscellaneous Variables */
    --border-radius: 4px; /* How rounded buttons, lists, divs etc. should typically be. 0px = hard square */
    --shadow: 1px 1px 10px rgba(0, 0, 0, 0.1); /* Shadow style, you can set this to none for no shadow at all */
}

html.theme-dark body {
    --primary: 57, 111, 159;
    --primary-contrast: 255, 255, 255;

    --accent: 174, 153, 70;
    --accent-contrast: 0, 0, 0;

    --default: 27, 28, 53;
    --default-contrast: 255, 255, 255;

    --save: 70, 165, 100; 
    --save-contrast: 255, 255, 255;
    
    --delete: 195, 78, 70;
    --delete-contrast: 255, 255, 255;

    --done: 69, 187, 104;
    --incomplete: 230, 203, 92;

    --ch-bg: 45, 45, 60;
    --ch-bg-1: 35, 35, 65;
    --ch-bg-2: 25, 25, 55;
    --ch-bg-3: 20, 20, 50;
    --ch-bg-4: 15, 15, 45;
    --ch-fg: 221, 221, 221;
    --ch-fg-1: 201, 201, 201;
    --ch-fg-2: 181, 181, 181;
    --ch-fg-3: 161, 161, 180;

    /* --logo-url: url('your logo url here'); */ /* logo url, should blend nicely on black background */
    --splash-url: url('./assets/splash-image.png');
    --logo-url: url('https://www.sjdhomes.com.au/cms/content/themes/sjdhomes/images/site-logo.svg');
}


/**
 * Timeline: Change done colour to match branding
 */
 html body.myhome > main .progress-timeline myhome-timeline .timeline-data.done > .icon, html body.myhome > main .progress-timeline myhome-timeline .timeline-data.done:before {
  background-color: rgba(var(--accent), 1) !important;
}

/**
 * Change default background
 */
html body.myhome {
    background-color: #ebebe8;
}

/**
 * Remove Notes and Appointment Tiles: Upgrade Grid layout
 */
@media screen and (min-width: 1301px) {
    html body.myhome > main > div.dashboard > .dashboard-grid {
      grid: "progress progress progress photos photos photos" 1fr "contact contact contact docs docs docs" 2fr "contact contact contact docs docs docs" 2fr/1fr 1fr 1fr 1fr 1fr 1fr;
    }
  }
  @media screen and (min-width: 1301px) and (max-height: 800px) {
    html body.myhome > main > div.dashboard > .dashboard-grid {
      grid-template-rows: auto auto auto;
    }
  }
  @media screen and (max-width: 1300px) {
    html body.myhome > main > div.dashboard > .dashboard-grid {
      grid: "progress progress" auto "contact contact" auto "docs photos" 1fr "docs photos" auto/1fr 1fr;
    }
    html body.myhome > main > div.dashboard > .dashboard-grid .dashboard-tile {
      min-height: 33vh;
    }
  }
  @media screen and (max-width: 800px) {
    html body.myhome > main > div.dashboard > .dashboard-grid {
      max-width: 100vw;
      grid: "progress" auto "contact" auto "housetype" 1fr "photos" auto "docs" auto;
    }
    html body.myhome > main > div.dashboard > .dashboard-grid .dashboard-tile > .heading > h3 {
      padding-left: 50px !important;
    }
  }

/**
 * Make Warranty (Maintenance) info blurb scrollable
 */
  html body.myhome > main > div.maintenance div.maintenance-info {
    overflow-y: auto;
}
