/*

  Project Name: EyeZen Wearable Sensor: static/css/layout.css
  Team Members: Akshat Tewari, Rohan Arni, Harry Fan, Medhansh Puri
  Date: 6/1/25
  Task Description: Styling for the layout page of the EyeZen Wearable Sensor project.

*/

:root {
  --c1: #e0e1dd;
  --c2: #778da9; 
  --c3: #415A77;
  --c4: #1b263b; 
  --c5: #0d1b2a;
  --c6: #000000; 
}

/* More "warm" palette of colors
:root {
  --c1: #e7eaf6;
  --c2: #a2a8d3; 
  --c3: #38598b;
  --c4: #113f67; 
  --c5: #001736;
  --c6: #000000; 
}
*/

body {
    margin: 0;
    padding: 0;
    background-color: var(--c6);
    font-family: 'Inter', 'Merriweather', sans-serif;
    color: #e7eaf6;
    position:relative;
  }

  /* Flex container to hold sidebar and main content */
  .layout-container {
    display: flex;
    min-height: 100vh; /* Make the layout fill the full height of the screen */
    padding: 20px 20px 20px 240px;     /* Space around the edges */
  }

  /* Sidebar styling */
  .sidebar {
    background-color: var(--c6);
    border-radius: 8px;
    border: 1px solid var(--c6);
    min-width: 200px !important;
    padding: 0px 20px 40px 20px; /* Space between navbar and content */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    z-index: 1000;
    transform: translate(-240px) /*Translation for fixed sidebar*/;
    position: fixed;
  }

  .sidebar .icon {
    color: color-mix(in srgb, var(--c1), var(--c2));
    font-size: 1.5rem;
    padding: 3px 15px 8px 15px;
    margin: 4px 4px 4px 4px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    display: flex; 
    transition: background-color 0.3s ease !important;
  }

  .sidebar .icon:hover {
    background-color: var(--c3);
  }

  .sidebar .icon:hover * {
    color: var(--c1) !important; /* Example hover color */
  }

  .sidebar .icon * {
    transition: color 0.3s ease !important;
  }

  .sidebar .icon .navtext {
    color: color-mix(in srgb, var(--c1), var(--c2));
    font-size: 1.5rem;
    margin-left: 12px;
    cursor: pointer;
  }

  .sidebar .profilecontainer, .profilecontainerhidden {
    margin-top: auto;
  }
  .sidebar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
  }

  .flex-right {
    display: flex;
    flex-direction: flex-start;
  }

  /* Main content styling */
  .main-content {
    background-color: var(--c5);
    border-radius: 8px;
    border: 1px solid var(--c4);
    flex-grow: 1; /* Make main content stretch to fill remaining width */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .main-title {
    top: 50px;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

  .sub-title {
    font-size: 2.3rem;
    margin-bottom: 40px;
    font-weight: 650 !important;
  }

  .section-container {
    margin-bottom: 30px;
  }

  .section-container.wide {
    width: 100%;
}


  h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  p, a {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-decoration: none;
  }

  .inline {
    display: inline;
  }
  
  .bottom-sidebar {
    margin-top: auto;
  }

  .btn-login {
    background-color: var(--c3);
    color: var(--c1);
  }

  .button-a {
    margin-bottom: 0 !important;
    width: 100%;
  }

  .space-element { /* Margins used to push buttons to bottom, so cannot be used to separate buttons */
    margin-top: 10px !important;
  }

  .btn-login:hover {
    background-color: var(--c1);
    color: var(--c4);
  }

  .btn-login:active {
    border-color: var(--c1) !important;
    background-color: var(--c5) !important;
    color: var(--c1) !important;
  }

  /*For pane (image / text on either side) elements */
  .image-element {
    width: 300px;
    height: 100%;
    border-radius: 6px;
  }

  .pane-container {
    display: flex;
    align-items: center;
  }
  
  .pane-container img.image-element {
    margin-left: auto;
    max-width: 40%; 
    height: auto;
  }

  .pane-link {
    color: white;
    font-weight: 500;
  }

  .pane-link:hover {
    color: #bbb !important;
  }

  .login {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .menuitem {
    text-decoration: none;
    color: #e9ecfc;
  }

  li a {
    font-size: 1rem;
    margin: 0 0 0 0;
  }

  /* Media query for collapsible navbar */
  @media screen and (max-width: 720px) {
    .media-class-720 {
      display: none;
    }

    .sidebar {
      min-width: 100px !important;
      transform: translate(-110px) /*Translation for fixed sidebar*/;
      padding: 0px 5px 40px 20px;
    }

    .layout-container {
      padding-left: 100px;
    }

    .icon {
      justify-content: center;
    }

    .btn-login {
      width: 100%;
      height: 2rem;
    }
  }

  @media screen and (max-width:585px) {
    .media-class-585 {
      display: none;
    }
  }

  @media screen and (min-width:585px) {
    .anti-media-class-585 {
      display: none;
    }
  }