/* Reset and base setup */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.header h1 {
  font-size: 20px;
  font-weight: 700;
}

.logo {
  max-height: 48px;
  object-fit: contain;
}

/* Tabs */
.tabbar {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 32px;
}

.tab {
  padding: 12px 0;
  cursor: pointer;
  font-weight: 500;
  color: #555;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: #0056d2;
  font-weight: 700;
  border-bottom: 3px solid #0056d2;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Admin Header */
.admin-header {
  position: relative;
  margin-bottom: 40px;
}

.blue-banner {
  background: url("/graphics/blue_image.png") no-repeat center/cover;
  height: 160px;
  border-radius: 16px;
}

.profile-overlap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 40px;
  position: absolute;
  bottom: -48px;
  left: 0;
  box-sizing: border-box;
}

.edit-profile-btn {
  position: absolute;
  top: 16px;
  right: 24px;
  background-color: #f1b500;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  z-index: 2;
}


.profile-image {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  border: 3px solid white;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: white;
}

.admin-title {
  font-size: 14px;
  color: white;
  margin-top: 4px;
}

/* Admin Detail Grid with input fields */
.admin-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.detail-item label {
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
}

.detail-item input {
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  color: #222;
  background: transparent;
  padding: 0;
}


.upload-section {
  margin-top: 40px;
}

.upload-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
  display: block;
}

.upload-box {
  border: 1px dashed #aaa;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  background-color: #fafafa;
  font-size: 14px;
  color: #555;
}

.upload-icon {
  font-size: 24px;
  color: #007bff;
  margin-bottom: 12px;
}

.upload-link {
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
}

.upload-note {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}



.upload-section {
  margin-top: 40px;
}

.upload-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
  display: block;
}

.upload-box {
  border: 1px dashed #aaa;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  background-color: #fafafa;
  font-size: 14px;
  color: #555;
}

.upload-icon {
  font-size: 24px;
  color: #007bff;
  margin-bottom: 12px;
}

.upload-link {
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
}

.upload-note {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}


.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.device-input-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.device-input-group label {
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
}

.device-input-group input {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  background-color: white;
  color: #333;
  outline: none;
}

.status-btn {
  border: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.status-btn img {
  height: 16px;
  width: 16px;
}

.status-btn.registered {
  background-color: #1ab35f;
  color: white;
}

.status-btn.register {
  background-color: #3f6dfc;
  color: white;
}

.add-device-btn {
  margin-top: 24px;
  background-color: #3f6dfc;
  color: white;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logout-button {
  background-color: #e53935;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.logout-button:hover {
  background-color: #d32f2f;
}

.cycle-block {
  position: relative;
  margin-top: 40px; /* Enough space for floating label */
  padding: 32px 15px 15px 15px; /* Add top padding */
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  overflow: visible; /* allow label to float outside */
}

.cycle-content {
  padding: 20px 15px 15px 15px;
}

.btn-remove {
  position: absolute;
  top: -12px;
  right: 12px;
  z-index: 3;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 12px;
  background-color: #dc3545;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cycle-label {
  position: absolute;
  top: -16px; /* slightly more space */
  left: 12px;
  background: #0056d2;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
}





