* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  min-height: 100vh;
  color: #fff;
}

.navbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(
    180deg,
    rgba(20, 10, 35, 0.95) 0%,
    rgba(10, 10, 30, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  border-right: 2px solid rgba(131, 56, 236, 0.3);
  z-index: 100;
  box-shadow: 10px 0 40px rgba(131, 56, 236, 0.2);
  overflow: visible;
  padding: 30px 0;
}

.nav-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 15px;
  position: relative;
  width: 100%;
}

.menu-item {
  position: relative;
  width: 100%;
}

.menu-btn {
  width: 100%;
  padding: 14px 18px;
  background: rgba(131, 56, 236, 0.1);
  border: 2px solid rgba(131, 56, 236, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn:hover {
  background: rgba(131, 56, 236, 0.25);
  border-color: #8338ec;
  transform: translateX(5px);
  box-shadow: 0 0 20px rgba(131, 56, 236, 0.4);
}

.dropdown-menu {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  background: rgba(20, 10, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(131, 56, 236, 0.4);
  border-radius: 12px;
  min-width: 250px;
  z-index: 1000;
  box-shadow: 0 15px 50px rgba(131, 56, 236, 0.3);
  animation: slideRight 0.3s ease;
  max-height: 400px;
  overflow-y: auto;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dropdown-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-btn:hover {
  background: rgba(131, 56, 236, 0.2);
  border-left-color: #8338ec;
  padding-left: 25px;
}

.nav-btn {
  padding: 15px 35px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(131, 56, 236, 0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.nav-btn:hover {
  background: rgba(131, 56, 236, 0.2);
  border-color: #8338ec;
  transform: translateY(-2px);
}

.nav-btn.active {
  background: linear-gradient(45deg, #ff006e, #8338ec);
  border-color: transparent;
  box-shadow: 0 5px 20px rgba(131, 56, 236, 0.5);
}

.main-title {
  text-align: center;
  margin: 40px 0 40px 280px;
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 4px;
  background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.generator-section {
  display: none;
  padding: 20px;
  margin-left: 280px;
  animation: fadeIn 0.5s ease;
}

.generator-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.generators-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* Special layout for gradient generator */
.gradient-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  align-items: start;
}

.gradient-preview-wrapper {
  position: sticky;
  top: 120px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gradient-controls-wrapper {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 968px) {
  .gradient-container {
    grid-template-columns: 1fr;
  }

  .gradient-preview-wrapper {
    position: relative;
    top: 0;
  }
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8338ec;
}

.preview-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  margin-bottom: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
}

.neon-button {
  padding: 20px 50px;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.neon-button:hover {
  transform: scale(1.05);
}

.shadow-box {
  width: 250px;
  height: 250px;
  background: #fff;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  transition: all 0.3s ease;
}

.gradient-box {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
}

input[type="color"] {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8338ec;
  cursor: pointer;
}

input[type="text"],
select {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

select {
  cursor: pointer;
}

select option {
  background: #1a1a2e;
  color: #fff;
}

input:focus,
select:focus {
  outline: none;
  border-color: #8338ec;
}

.value-display {
  display: inline-block;
  background: rgba(131, 56, 236, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  color: #8338ec;
  margin-left: 10px;
}

.copy-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #ff006e, #8338ec);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(131, 56, 236, 0.5);
}

.copy-btn:active {
  transform: translateY(0);
}

.color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .generators-wrapper {
    flex-direction: column;
  }

  .color-row {
    grid-template-columns: 1fr;
  }

  .main-title {
    font-size: 28px;
  }

  .nav-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.4s;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(45deg, #ff006e, #8338ec);
  border-color: transparent;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

/* Modal Styles for Code Preview */
.code-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.code-modal.active {
  display: flex;
}

.code-modal-content {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(131, 56, 236, 0.5);
  border: 2px solid rgba(131, 56, 236, 0.3);
  position: relative;
}

.code-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.code-modal-header h3 {
  color: #8338ec;
  font-size: 24px;
  margin: 0;
}

.close-modal {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.code-preview {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.8;
  color: #fff;
  white-space: pre-wrap;
  word-wrap: break-word;
  border: 1px solid rgba(131, 56, 236, 0.3);
  min-height: 100px;
}

.code-preview::after {
  content: "▊";
  animation: blink 1s infinite;
  color: #8338ec;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.modal-copy-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(45deg, #ff006e, #8338ec);
  border: none;
  border-radius: 15px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}

.modal-copy-btn.show {
  display: block;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-copy-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(131, 56, 236, 0.6);
}

/* Login Page Styles */
.login-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.login-container.hidden {
  display: none;
}

.login-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 50px 60px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(131, 56, 236, 0.3);
  max-width: 450px;
  width: 90%;
  animation: loginFadeIn 0.6s ease;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-box h1 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 36px;
  background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-box p {
  text-align: center;
  color: #aaa;
  margin-bottom: 40px;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-input-group label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8338ec;
}

.login-input-group input,
.login-input-group select {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.login-input-group input:focus,
.login-input-group select:focus {
  outline: none;
  border-color: #8338ec;
  background: rgba(255, 255, 255, 0.08);
}

.login-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(45deg, #ff006e, #8338ec);
  border: none;
  border-radius: 15px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(131, 56, 236, 0.6);
}

.login-error {
  background: rgba(255, 0, 110, 0.1);
  border: 2px solid rgba(255, 0, 110, 0.3);
  border-radius: 10px;
  padding: 12px;
  color: #ff006e;
  text-align: center;
  font-size: 14px;
  display: none;
  animation: shake 0.5s ease;
}

.login-error.show {
  display: block;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* Rainbow Text Animation */
.rainbow-text {
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff7f00,
    #ffff00,
    #00ff00,
    #0000ff,
    #4b0082,
    #9400d3
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation Keyframes */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}

@keyframes flip {
  from {
    transform: perspective(400px) rotateY(0);
  }
  to {
    transform: perspective(400px) rotateY(360deg);
  }
}

@keyframes swing {
  20% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Box Model Visualizer Styles */
.box-model-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
}

.bm-margin-container {
  position: relative;
  background: rgba(255, 100, 100, 0.2);
  border: 2px solid #ff6464;
  padding: 20px;
  border-radius: 10px;
}

.bm-label {
  position: absolute;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: 5px;
}

.bm-label-margin {
  top: 5px;
  left: 10px;
  color: #ff6464;
}

.bm-border-container {
  position: relative;
  background: rgba(131, 56, 236, 0.2);
  border: 2px solid #8338ec;
  padding: 15px;
  border-radius: 8px;
}

.bm-label-border {
  top: 5px;
  left: 10px;
  color: #8338ec;
}

.bm-padding-container {
  position: relative;
  background: rgba(58, 134, 255, 0.2);
  border: 2px solid #3a86ff;
  padding: 15px;
  border-radius: 6px;
}

.bm-label-padding {
  top: 5px;
  left: 10px;
  color: #3a86ff;
}

.bm-content-box {
  background: rgba(6, 255, 165, 0.3);
  border: 2px solid #06ffa5;
  padding: 30px;
  border-radius: 5px;
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06ffa5;
  font-weight: bold;
}

/* Preset Styles */
.preset-preview-container {
  background: #1a1a2e;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.preset-header {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.preset-header h2 {
  margin: 0;
  font-size: 28px;
}

.preset-nav {
  display: flex;
  gap: 15px;
}

.preset-nav a {
  padding: 10px 20px;
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.preset-nav a:hover {
  background: rgba(131, 56, 236, 0.3);
  border-color: #8338ec;
}

.preset-hero {
  padding: 60px 30px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.preset-hero h1 {
  font-size: 42px;
  margin: 0 0 15px 0;
  font-weight: bold;
}

.preset-hero p {
  color: #aaa;
  margin: 0;
}

.preset-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.preset-feature {
  padding: 25px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.preset-feature h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.preset-feature p {
  margin: 0;
  color: #aaa;
  font-size: 14px;
}

.preset-footer {
  padding: 40px 30px;
  text-align: center;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 15px 30px;
  border-radius: 25px;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
}

.preset-btn-primary {
  background: linear-gradient(45deg, #ff006e, #8338ec);
}

.preset-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.preset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(131, 56, 236, 0.4);
}

@media (max-width: 768px) {
  .preset-features {
    grid-template-columns: 1fr;
  }

  .preset-hero h1 {
    font-size: 28px;
  }
}

/* Share Modal Styles */
.share-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Navbar Generator Styles */
.navbar-preview-container {
  background: #1a1a2e;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar-preview {
  width: 100%;
}

.navbar-horizontal {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  justify-content: space-between;
}

.navbar-vertical {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 300px;
}

.navbar-brand {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-menu {
  display: flex;
  gap: 0;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-vertical .navbar-menu {
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.navbar-item {
  position: relative;
  padding: 0;
  margin: 0;
}

.navbar-horizontal .navbar-item {
  padding: 8px 0;
}

.navbar-vertical .navbar-item {
  width: 100%;
}

.navbar-link {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.navbar-horizontal .navbar-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar-vertical .navbar-link {
  border-left: 4px solid transparent;
  border-radius: 0;
}

.navbar-vertical .navbar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: currentColor;
}

.navbar-link.active {
  background: rgba(131, 56, 236, 0.2);
  color: #8338ec;
}

.dropdown {
  position: relative;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 12px 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 25px;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form Generator Styles */
.form-preview-container {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.form-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333333;
  text-align: center;
}

.form-group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
  padding: 12px 15px;
  border: 2px solid #cccccc;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #8338ec;
  box-shadow: 0 0 0 3px rgba(131, 56, 236, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox,
.form-radio {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #8338ec;
}

.form-checkbox-group,
.form-radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-checkbox-item,
.form-radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-checkbox-item label,
.form-radio-item label {
  cursor: pointer;
  font-size: 14px;
}

.form-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.form-error.show {
  display: block;
}

.form-input.error,
.form-textarea.error {
  border-color: #dc3545;
}

.form-input.success,
.form-textarea.success {
  border-color: #28a745;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999999;
}

.form-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(45deg, #8338ec, #ff006e);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(131, 56, 236, 0.4);
}

.form-button:active {
  transform: translateY(0);
}

.form-help-text {
  font-size: 12px;
  color: #666666;
  margin-top: 5px;
}

.form-divider {
  height: 1px;
  background: #dddddd;
  margin: 30px 0;
}

/* Transition Generator Styles */
.transition-preview-container {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.transition-demo {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.transition-box {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.transition-box.color {
  background: #8338ec;
}

.transition-box.size {
  width: 100px;
  height: 100px;
  font-size: 12px;
}

.transition-box.position {
  position: relative;
  left: 0;
}

.transition-box.opacity {
  opacity: 1;
}

.transition-box.border {
  border: 3px solid #8338ec;
  background: transparent;
  color: #8338ec;
}

.transition-arrow {
  font-size: 24px;
  color: #8338ec;
}

.transition-code-hint {
  margin-top: 20px;
  padding: 15px;
  background: rgba(131, 56, 236, 0.1);
  border-left: 4px solid #8338ec;
  border-radius: 5px;
  font-size: 12px;
  color: #333;
  font-family: monospace;
  text-align: left;
  max-width: 400px;
}

/* Card Generator Styles */
.card-preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 20px;
  perspective: 1000px;
}

.card {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card.lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card.glow:hover {
  box-shadow: 0 0 30px rgba(131, 56, 236, 0.6);
}

.card.scale:hover {
  transform: scale(1.05);
}

.card-header {
  height: 200px;
  background: linear-gradient(135deg, #8338ec 0%, #ff006e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
}

.card-body {
  padding: 25px;
  background: #ffffff;
  color: #333333;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333333;
}

.card-subtitle {
  font-size: 14px;
  color: #666666;
  margin-bottom: 15px;
}

.card-description {
  font-size: 14px;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 12px;
  color: #888888;
}

.card-rating {
  color: #ffc107;
  font-size: 14px;
}

.card-price {
  font-size: 18px;
  font-weight: bold;
  color: #ff006e;
  margin-bottom: 15px;
}

.card-footer {
  display: flex;
  gap: 10px;
}

.card-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-btn-primary {
  background: linear-gradient(45deg, #8338ec, #ff006e);
  color: #fff;
}

.card-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(131, 56, 236, 0.4);
}

.card-btn-secondary {
  background: transparent;
  border: 2px solid #8338ec;
  color: #8338ec;
}

.card-btn-secondary:hover {
  background: rgba(131, 56, 236, 0.1);
}

.card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, #8338ec, #ff006e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 15px;
  color: #fff;
}

.card-role {
  font-size: 12px;
  color: #ff006e;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.card-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(131, 56, 236, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8338ec;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
}

.card-social a:hover {
  background: #8338ec;
  color: #fff;
  transform: translateY(-2px);
}

.card-date {
  font-size: 12px;
  color: #999999;
}

/* Alert Box Styles */
.alert-info {
  background: rgba(58, 134, 255, 0.15);
  border-left: 4px solid #3a86ff;
  color: #3a86ff;
}

  .alert-success {
    background: rgba(0, 255, 136, 0.15);
    border-left: 4px solid #00ff88;
    color: #00ff88;
  }

  .alert-warning {
    background: rgba(255, 184, 28, 0.15);
    border-left: 4px solid #ffb81c;
    color: #ffb81c;
  }

  .alert-error {
    background: rgba(255, 0, 110, 0.15);
    border-left: 4px solid #ff006e;
    color: #ff006e;
  }

  /* Divider Styles */
  .divider-solid {
    border-top: 2px solid #8338ec;
    margin: 20px 0;
  }

  .divider-dashed {
    border-top: 2px dashed #8338ec;
    margin: 20px 0;
  }

  .divider-dotted {
    border-top: 2px dotted #8338ec;
    margin: 20px 0;
  }

  .divider-double {
    border-top: 4px double #8338ec;
    margin: 20px 0;
  }

  .divider-gradient {
    background: linear-gradient(90deg, transparent, #8338ec, transparent);
    height: 2px;
    margin: 20px 0;
  }

  /* List Styles */
  .styled-list {
    list-style: none;
    padding: 0;
  }

  .styled-list li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
  }

  .styled-list-bullet li:before {
    content: "●";
    position: absolute;
    left: 0;
  }

  .styled-list-numbered li {
    counter-increment: item;
  }

  .styled-list-numbered li:before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    font-weight: bold;
  }

  .styled-list-custom li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-size: 16px;
  }

  /* Conversion Results */
  .conversion-result {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #8338ec;
  }

  .result-item {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #inputMode {
    padding: 8px 12px;
    background: rgba(131, 56, 236, 0.15);
    border: 1px solid rgba(131, 56, 236, 0.4);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
  }

  #inputMode:hover {
    background: rgba(131, 56, 236, 0.25);
    border-color: rgba(131, 56, 236, 0.6);
  }
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .result-item:last-child {
    border-bottom: none;
  }

  .result-item strong {
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
  }

  .result-item span {
    font-weight: bold;
    color: #fff;
  }

  /* Display Property */
  .display-box {
    background: rgba(131, 56, 236, 0.2);
    border: 2px solid #8338ec;
    padding: 10px;
    margin: 10px;
  }

  /* Position Demo */
  .position-box {
    background: linear-gradient(45deg, #8338ec, #ff006e);
    padding: 15px;
    border-radius: 8px;
    margin: 10px;
  }

  /* Flexbox Demo */
  .flex-item {
    background: linear-gradient(45deg, #3a86ff, #8338ec);
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    flex: 1;
    min-width: 80px;
  }

  /* Z-Index Demo */
  .zindex-box {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: move;
    border: 3px solid #fff;
  }

  .zindex-box1 {
    background: linear-gradient(45deg, #ff006e, #8338ec);
    top: 20px;
    left: 20px;
  }

  .zindex-box2 {
    background: linear-gradient(45deg, #3a86ff, #00ff88);
    top: 80px;
    left: 100px;
  }

  .zindex-box3 {
    background: linear-gradient(45deg, #ffb81c, #ff006e);
    top: 150px;
    left: 50px;
  }

  /* Icon Sizing Chart */
  .icon-sizing-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }

  .icon-size-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(131, 56, 236, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
  }

  .icon-size-item-display {
    width: 100%;
    height: 100px;
    background: rgba(131, 56, 236, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 50px;
  }

  .icon-size-item-label {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
  }

  .icon-size-item-size {
    font-weight: bold;
    color: #fff;
  }

  /* Preview Box Styling */
  .preview-box {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(131, 56, 236, 0.3);
    border-radius: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Textarea Styling */
  textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(131, 56, 236, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: "Courier New", monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 80px;
  }

  textarea:focus {
    outline: none;
    border-color: #8338ec;
    background: rgba(131, 56, 236, 0.1);
  }
  margin-top: 15px;
}

/* Chaos Mode Styles */
.chaos-box {
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
