body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

h2, h3 {
  color: #2c3e50;
}

form input[type='text'], form input[type='password'], form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background: #fdfdfd;
}

form button, a.button {
  padding: 12px 20px;
  background: #2d89ef;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .3s;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

form button:hover, a.button:hover {
  background: #1b6fd3;
}

a {
  color: #2d89ef;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.error {
  background: #ffe0e0;
  border: 1px solid #e36f6f;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #a94442;
}

.success {
  background: #dff0d8;
  border: 1px solid #3c763d;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #3c763d;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 12px 15px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

textarea {
  font-family: monospace;
  min-height: 200px;
}

.editor-pane {
  margin-bottom: 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

nav a {
  margin-right: 15px;
  font-weight: bold;
}

.logo {
  display: block;
  width: 250px;
  margin: 0;
}

::selection {
  background: #1e252e;
  color: #fff;
}

::-moz-selection {
  background: #1e252e;
  color: #fff;
}

body.sidebar-open {
  overflow-y: hidden;
}

.navbar {
  background-color: #1e252e;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 1rem;
  position: relative;
  z-index: 3;
}

ul.nav li {
  margin-bottom: 0;
}

.logo {
  flex: 1;
  font-size: 1.5rem;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  user-select: none;
}

/* Hamburger Icon */
.menu-toggle {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  outline: none;
  border: none;
  background: transparent;

  /* Remove flashes */
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  user-select: none;
}

.menu-toggle:focus, .menu-toggle:active, .menu-toggle:focus-visible {
  outline: none;
  background: transparent;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: .4s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* Side Menu */
.side-menu {
  position: fixed;
  left: -275px;
  width: 275px;
  /*height: 100%;*/
  overflow-y: scroll;
  top: 0;
  bottom: 0;
  background-color: red;
  color: rgba(255,255,255,1);
  padding-top: 7rem;
  transition: left .3s ease;
  z-index: 2;
  /*cursor: all-scroll;*/
}

/* Hide scrollbar for Chrome, Safari and Opera */
.side-menu::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.side-menu {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.side-menu ul {
  list-style: none;
  padding: 0;
}

.side-menu ul li {
  padding: 1rem;
}

.side-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

.side-menu.open {
  left: 0;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 1;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #ccc;
}

.footer-left, .footer-right {
  display: flex;
  gap: 20px;
}

@media (max-width: 820px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-left, .footer-right {
    display: block;
    text-align: center;
  }

  .footer-left a, .footer-right a {
    display: block;
    margin: 5px 0;
  }
}

.footer-right {
  margin-top: 2px;
}

.footer-links a {
  color: #000;
  background-image: linear-gradient(#28a745, #28a745);
  background-size: 0 2px;
  background-position-y: 100%;
  background-position-x: 0;
  background-repeat: no-repeat;
  transition: background-size .4s ease-in-out;
  text-decoration: none;
  padding-bottom: 5px;
}

.footer-links a:hover, .footer-links a:focus {
  color: #28a745;
  background-size: 100% 1px;
}

/*.footer-links {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ccc;
  margin-top: 40px;
  padding-top: 15px;
  font-size: .9em;
}

.footer-links a {
  color: #007bff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}*/

input[type='text'], input[type='password'], input[type='email'], input[type='number'], input[type='file'], button, select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  box-sizing: border-box;
}

.sp1 {
  float: left;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: normal;
}

.spc1 {
  float: left;
  position: relative;
  top: 3px;
  margin-left: 10px;
}

.sp2 {
  float: left;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: normal;
}

.spc2 {
  float: left;
  position: relative;
  top: -29px;
  left: -115px;
  margin-left: 10px;
}
