/* Base styles and imports */
@import url("reset.css");
@import url(https://fonts.googleapis.com/css?family=Exo:100,200,400);
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:700,400,300);


.dopc {
  display: block; /* または必要に応じてinline, flex等 */
}

.dosp {
  display: none;
}


:root {
  --theme-dark-color1: #0e1122;
  --theme-dark-color2: #1a1d2d;
  --gradient1: linear-gradient(to right, #c42260 0%, #294369 100%);
  --gradient3: linear-gradient(to right, #ff416c 0%, #ff4b2b 100%);
  --gradient4: linear-gradient(to right, #00c6ff 0%, #0072ff 100%);
  --gradientTheme: linear-gradient(45deg, #ff00cc, #3333ff);
  --girlListHeight: 100px;
}

/* General styles */
body {
  margin: 0;
  padding: 0;
  background: var(--theme-dark-color1);
  color: #cbcbcb;
  font-family: "YakuHanJPs", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
}

main {
  padding: 10px;
  top: 0;
  margin-left: 240px;
  width: calc(100% - 240px);
}

/* Typography */
h3, h4 {
  font-weight: bold;
}

h3::after, h4::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: var(--gradientTheme);
}

h5 {
  font-weight: bold;
  font-size: 16px;
  margin: 10px 0 0;
}

/* Buttons */
.btn {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  font-weight: bold;
  color-scheme: dark;
  padding: 5px;
  margin: 5px;
  border: solid 1px #277c95;
  border-radius: 4px;
  transition: all 0.5s ease;
  background: #141523;
  font-size: 16px;
}

.btn:hover {
  border: solid 1px #83bbcb;
  box-shadow: 0 0 8px #7ebdcf, 0 0 8px #7ebdcf inset;
  text-shadow: 0 0 5px #00fffb;
  color: #fff;
}

.btn-delete {
  border: solid 1px #fff;
  background-color: #95276e;
}

/* Form elements */
input, select, textarea {
  color-scheme: dark;
  padding: 10px;
  margin: 5px;
  border: solid 1px #277c95;
  border-radius: 4px;
  transition: all 0.5s ease;
  background: #141523;
}

input:hover, input:focus, select:focus, textarea:focus {
  border: solid 1px #83bbcb;
  box-shadow: 0 0 8px #7ebdcf, 0 0 8px #7ebdcf inset;
  text-shadow: 0 0 5px #00fffb;
  color: #fff;
}

input[type=checkbox], input[type=radio] {
  margin: 0 6px 0 0;
  appearance: auto;
}

/* Tables */
table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: separate;
  border-spacing: 0;
}

th, td {
  padding: 8px;
  line-height: 20px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #676b85;
}


/* index.php */
.header {
  width: 500px;
  margin: 100px auto;
  color: #fff;
  padding: 10px;
  text-align: center;
  border: solid 1px #83bbcb;
  box-shadow: 0 0 8px #7ebdcf, 0 0 8px #7ebdcf inset;
  position: fixed;
  top: calc(50% - 250px);
  left: calc(50% - 200px);
}

.header img{
  width: 150px;
  margin: auto;
}



/* Navigation */
nav {
  width: 240px;
  background: rgb(255 255 255 / 5%);
  background: -moz-linear-gradient(top, #1D1D26, #312F4C);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  height: calc(100vh - var(--girlListHeight));
  overflow-y: overlay;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: fixed;
  z-index: 1;
}

nav .inner {
  padding: 10px;
}

nav #logo {
  width: 50%;
  margin: 10px auto;
  display: block;
}

nav #sysName {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

nav #welcome {
  font-size: 12px;
  text-align: center;
}

nav ul.sidenav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 250px;
  position: relative;
  overflow: auto;
  flex-wrap: wrap;
}

nav ul.sidenav li {
  width: 100%;
  padding: 5px;
  font-size: 16px;
  transition: all 0.5s ease;
}

nav ul.sidenav li.active {
  position: relative;
  padding: 10px 15px;
  font-weight: bold;
  color: white;
}

nav ul.sidenav li.active::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: var(--gradientTheme);
}

nav ul.sidenav li a {
  display: block;
  color: #fff;
  text-decoration: none;
}

nav ul.sidenav li:hover:not(.active) {
  position: relative;
  background-color: var(--theme-dark-color1);
  padding: 5px 15px;
  font-weight: bold;
  color: white;
}

nav ul.sidenav li:hover:not(.active)::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: var(--gradientTheme);
}

/* Map styles */
#wrapper {
  display: flex;
}

#wrapper #map {
  width: calc(100% - 300px);
  height: calc(100vh - var(--girlListHeight));
}

#wrapper .panel {
  width: 400px;
  height: calc(100vh - var(--girlListHeight));
  overflow-y: auto;
  padding: 10px;
}
/* girlList */
#girlList {
  width: 100%;
  height: var(--girlListHeight);
  padding: 5px;
  box-sizing: border-box;
  overflow: auto;

}
#girlList ul {
  display: flex;
  flex-wrap: wrap;
}
#girlList ul li {
  margin: 5px;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  background: #fff;
  color: #993167;
  font-size: 14px;
}
#girlList ul li select {
  margin: 4px;
  padding: 2px;
  color: #fff;
  width: 150px;
}
#girlList ul li select:hover,#girlList ul li select:focus {
}
#girlList ul li span {
  font-weight: bold;
}
/* usageList Styles */
#usageList li {
  border: 1px solid #ccc;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
  width: 100%;
  cursor: pointer;
}
#usageList li span {
  font-weight: bold;
  display: inline-block;
}
/* Driver and Place List styles */
.driverInfo, .placeInfo {
  border: 1px solid #ccc;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.driverInfo .name, .placeInfo .name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 5px;
}

.driverInfo .carInfo {
  background-color: #f0f0f0;
  color: #013C23;
  margin-bottom: 5px;
  font-weight: bold;
  padding: 2px;
  border-radius: 3px;
}

.driverInfo .locationData, .placeInfo .locationData {
  color: #f5f5f5;
  font-family: monospace;
  font-size: 12px;
  text-align: right;
}

.driverInfo:hover, .placeInfo:hover {
  background-color: var(--theme-dark-color2);
  transition: background-color 0.3s ease;
}

/* Tab styles */
.tabContainer {
  display: flex;
  margin-bottom: 10px;
}

.tabButton {
  flex: 1;
  padding: 8px;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 14px;
}

.tabButton.active {
  background-color: #fff;
  box-shadow: 0 0 8px #acb8bb, 0 0 8px #c1c4c5 inset;
  text-shadow: 0 0 5px #fbfbfb;
  color: #111;
  font-weight: bold;
}

.tabContent {
  display: none;
}

.tabContent.active {
  display: block;
}

/* JavaScript-related styles */
.driverEdit, .placeEdit {
  float: right;
  position: relative;
  cursor: pointer;
  z-index: 2;
}

.driverEdit img, .placeEdit img {
  width: 25px;
  margin: 3px;
  padding: 3px;
}

.driverEditItem, .placeEditItem, .driverRegistItem, .placeRegistItem {
  display: none;
}

.driverEditItem.open, .placeEditItem.open {
  display: block;
}

.registrationBtn {
  background: #fff;
  color: #0e1122 !important;
  cursor: pointer;
  border-radius: 3px;
  text-align: center;
  line-height: 31px;
  width: 100%;
}

.mapCenterJumper {
  cursor: pointer;
  position: relative;
}
.existGirlBox {
}
.existGirlBox span {
  background: #f2ff00;
  color: #993167;
  border-radius: 3px;
  font-size: 14px;
}
/* Utility classes */
.infoBox {
  border: 1px solid #ccc;
  padding: 1px;
  border-radius: 3px;
  margin-bottom: 10px;
  font-size: 12px;
  text-align: center;
}

/* Google Maps InfoWindow styles */
.gm-style .gm-style-iw-c {
  padding: 0;
}
.gm-style-iw .gm-style-iw-chr{
  display: none;
}
.gm-style-iw .gm-style-iw-d {
  color: #333;
  overflow: hidden !important;
  padding: 2px;
  font-weight: bold;
}
.gm-style-iw .gm-style-iw-d span {
  color: #ff0085;
}
.usageMapInfo .girlName {
  /* color :#ff00cc */
}
/* Media Queries */
@media screen and (max-width: 900px) {
  nav ul.sidenav {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  nav ul.sidenav li a {
    float: left;
    padding: 15px;
  }
  
  div.content {
    margin-left: 0;
  }
}

@media screen and (max-width: 480px) {
  nav ul.sidenav li a {
    text-align: center;
    float: none;
  }
}


/* ログアウトボタン追加 */
#logoutBtn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 60px;
  background-color: #fff;
  color: #333;
  border-radius: 5px;
  box-shadow: 0 0 5px #666;
  padding: 5px 0 0;
  text-align: center;
  display: block;
  transition: all 0.5s;
}
#logoutBtn img {
  width: 30px;
  margin: 0 auto;
}
#logoutBtn:hover {
background: #d1ffc6;
text-decoration: none;
color: #111;
}
#logoutBtn span {
  font-size: 10px;
  font-weight: bold;
}


