/* Settings page styles */
@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap");

:root {
  --font-family: "Roboto", "Inter", "Source Sans Pro", "Lato", "Open Sans", Arial, Helvetica, sans-serif;
  --creative-blue: #4287f5;
  --light-blue: #6499ff;
  --secondary: rgba(255, 255, 255, 0.1);
}

body {
  background-color: #1C1C1C;
  color: #fff;
  font-family: var(--font-family);
}

.manicontent {
  margin-top: 8rem;
  padding: 20px;
}

/* Menu Content Styles */
.menu-content {
  display: none;
  position: relative;
  width: 100%;
  background-color: transparent;
  padding: 20px;
  box-sizing: border-box;
}

.menu-content.active {
  display: block;
}

/* Card Styles */
.cards {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  max-width: 80vw;
  margin-left: auto;
  margin-right: auto;
}

.cards h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cards p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Input Styles */
input.nice-input {
  padding: 10px;
  background: #222;
  border: 1px solid rgb(60, 63, 68);
  border-radius: 4px;
  font-size: 13px;
  color: rgb(247, 248, 248);
  appearance: none;
  transition: border 0.15s ease 0s;
}

input.nice-input:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--light-blue);
}

/* Select Styles */
select {
  padding: 10px 5px;
  font-size: 11px;
  font-weight: lighter;
  border-radius: 5px;
  background: #171717;
  font-family: var(--font-family);
  color: #fff;
  border: 0;
}

select option {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

/* Button Styles */
.cards-button {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 8px 16px;
  transition: .4s;
  cursor: pointer;
  font-size: 0.9rem;
}

.cards-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-bottom: 1rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--creative-blue);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Tab Cloak Styles */
#tabCloakButtons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.tabCloakiconButtons {
  outline: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tabCloakiconButtons:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#tabCloakButtons > .active {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Theme Styles */
.themeCloakiconButtons {
  outline: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent !important;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.themeCloakiconButtons:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#themeCloakButtons > .active {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Modal Styles */
.modal-backdrop {
  z-index: 1040;
}

.modal-content {
  background-color: #1C1C1C;
  color: #fff;
}

/* Delete Verification Input */
#deleteverify {
  width: 100%;
  background-color: #1C1C1C;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  min-height: 40px;
  color: #fff;
  padding: 8px;
}

#deleteverify:focus {
  outline: none;
  border-color: var(--light-blue);
}

/* Tab System */
.tab-container {
  margin-top: 1rem;
}

.tab-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.tab-button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.tab-button:hover {
  color: #fff;
}

.tab-button.active {
  color: var(--creative-blue);
  position: relative;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--creative-blue);
}

.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

/* Custom Tab Cloak Styles */
.custom-tab-cloak {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.input-group .nice-input {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: border-color 0.3s;
}

.input-group .nice-input:focus {
  border-color: var(--creative-blue);
  outline: none;
}

/* Preview Section Styles */
.preview-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.preview-section h4 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
}

.preview-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-box img {
  flex-shrink: 0;
}

.preview-box span {
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-help {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Game Card Layout Settings */
.card-layout-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.layout-option {
  position: relative;
}

.layout-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.layout-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.layout-label:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.layout-option input[type="radio"]:checked + .layout-label {
  border-color: var(--creative-blue);
  background: rgba(66, 135, 245, 0.1);
  box-shadow: 0 0 20px rgba(66, 135, 245, 0.2);
}

.layout-preview {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.preview-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.06) 50%, 
    rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.comfy-preview {
  width: 240px;
  min-height: 180px;
}

.compact-preview {
  width: 180px;
  min-height: 140px;
}

.preview-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.comfy-preview .preview-image {
  aspect-ratio: 16/9;
}

.compact-preview .preview-image {
  aspect-ratio: 16/10;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.preview-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(78, 205, 196, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-content {
  padding: 8px 6px 6px;
  z-index: 2;
  position: relative;
}

.preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-preview .preview-title {
  font-size: 0.9rem;
}

.layout-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.layout-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-layout-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .layout-label {
    padding: 1rem;
  }
  
  .comfy-preview {
    width: 200px;
    min-height: 150px;
  }
  
  .compact-preview {
    width: 150px;
    min-height: 115px;
  }
}