/* Mobile-First Responsive CSS for Edison Device Page */

/* Box-sizing for easier sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
  width: 100%; /* Full width */
  padding: 12px; /* Some padding */ 
  border: 1px solid #ccc; /* Gray border */
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  background-color: white;
  display: none;
  overflow: hidden;
}


/* Style the submit button with a specific background color etc */
input[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
  background-color: #45a049;
}

/* Add a background color and some padding around the form */
.container {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}
html {
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #f9f9fa;
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

/* Responsive layouts */
body {
  margin: 0;
  padding: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 32px rgba(50,67,108,0.09);
  padding: 1rem;
}

h1 {
  font-size: 1.5rem;
  margin: 1rem 0 0.75rem 0;
  font-weight: 700;
  text-align: center;
  color: #0f3e6c;
  letter-spacing: 1px;
}

ol {
  padding-left: 1.1em;
  margin: 1.5em 0;
}

li {
  margin-bottom: 0.75em;
  font-size: 1rem;
  background: #e2f2ff;
  border-radius: 6px;
  padding: 0.5em 0.75em;
  list-style-position: inside;
}

a {
  color: #1a6ed8;
  text-decoration: underline;
  word-break: break-word;
}

p {
  margin: 1em 0;
  font-size: 0.95em;
  color: #333;
  text-align: center;
}

img {
  display: block;
  max-width: 120px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: #fbfbfd;
  box-shadow: 0 2px 8px #eee;
}

/* Admin Login Button styling */
a img[alt="Admin Login"] {
  width: 180px;
  max-width: 90vw;
  height: 48px;
  object-fit: contain;
  margin-top: 1em;
  margin-bottom: 1em;
  border-radius: 24px;
  background: #eaf4ff;
  transition: box-shadow 0.2s;
}

a img[alt="Admin Login"]:active, 
a img[alt="Admin Login"]:focus {
  box-shadow: 0 0 8px #3a75d6;
  outline: none;
}



/* Viewport responsive behaviors */
@media (max-width: 600px) {
  body {
    padding: 0.5rem;
    max-width: 100vw;
    box-shadow: none;
    border-radius: 0;
  }
  h1 {
    font-size: 1.13rem;
    margin: 0.6rem 0 0.6rem 0;
  }
  li {
    font-size: 0.96rem;
    padding: 0.45em 0.4em;
  }
  img {
    max-width: 60vw;
  }
}

/* The sidebar menu */
.sidenav {
  height: 100%; /* Full-height: remove this if you want "auto" height */
  width: 160px; /* Set the width of the sidebar */
  position: fixed; /* Fixed Sidebar (stay in place on scroll) */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: #111; /* Black */
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 20px;
}

/* The navigation menu links */
.sidenav a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #f1f1f1;
}

/* Style page content */
.main {
  margin-left: 160px; /* Same as the width of the sidebar */
  padding: 0px 10px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

/* Accent for important alerts */
li:nth-child(2) {
  background: #fff6e0;
  border-left: 4px solid #e67823;
  color: #c33e08;
}

/* Accessibility: focus state outline for links and buttons */
a:focus {
  outline: 2px solid #2896ff;
  outline-offset: 2px;
}
