:root {
  --primary-color: #4285F4;
  --danger-color: #EA4335;
  --success-color: #34A853;
  --warning-color: #FBBC05;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  background-color: var(--white);
  padding: 15px 30px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.header h1 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 24px;
  margin: 0;
}

.header-buttons {
  display: flex;
  gap: 15px;
}

.setting-btn, .acak-btn {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: var(--transition);
  font-size: 16px;
}

.setting-btn:hover, .acak-btn:hover:not(:disabled) {
  background-color: #3367D6;
}

.acak-btn:disabled {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.acak-btn {
  background-color: var(--success-color);
}

.acak-btn:hover:not(:disabled) {
  background-color: #2E9847;
}

.atur-acak-btn {
  background-color: var(--warning-color);
  color: var(--text-color);
}

.atur-acak-btn:hover:not(:disabled) {
  background-color: #E6A700;
}

.main-content {
  flex: 1;
  padding: 0;
  margin: 0;
  width: 100%;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.container {
  background-color: var(--white);
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
  border-radius: 0;
  box-shadow: none;
}

.result-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--light-gray);
  padding: 40px;
  min-height: auto;
  position: relative;
  overflow: hidden;
}

#confettiCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.result-area.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: var(--light-gray);
  padding: 40px;
}

.fullscreen-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  color: #666;
}

.fullscreen-close-btn:hover {
  background-color: var(--white);
  color: var(--danger-color);
  transform: scale(1.1);
}

.fullscreen-close-btn .material-icons {
  font-size: 24px;
}

.result-area.fullscreen-mode .fullscreen-close-btn {
  display: flex;
}

.result-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  height: 100%;
}

.result-item {
  padding: 30px 40px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 120px;
  font-weight: 700;
  text-align: center;
  border: 3px solid var(--light-gray);
  transition: var(--transition);
  word-break: break-word;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  min-width: 300px;
  box-sizing: border-box;
  line-height: 1;
  position: relative;
}

/* Tooltip untuk result item */
.result-item:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 8px;
  font-weight: normal;
  max-width: 400px;
  text-align: center;
}

.result-item::before {
  content: attr(data-range);
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary-color);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.result-item.show-range::before {
  opacity: 0.9;
}

.welcome-message {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  width: 100%;
}

.welcome-message .material-icons {
  font-size: 80px;
  color: #ccc;
  margin-bottom: 20px;
}

.welcome-message h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 28px;
}

.welcome-message p {
  font-size: 18px;
}

.rolling.zoom {
  animation: zoom 1s infinite alternate;
}

@keyframes zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.rolling.glow {
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--primary-color), 0 0 20px var(--primary-color);
  }
  to {
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--primary-color), 0 0 40px var(--primary-color);
  }
}

.result-item.final-glow-pulse {
  animation: finalGlowPulse 2s infinite alternate;
}

@keyframes finalGlowPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px #fff, 0 0 20px #ff0080, 0 0 30px #ff0080;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px #fff, 0 0 30px #ff0080, 0 0 45px #ff0080;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px #fff, 0 0 20px #ff0080, 0 0 30px #ff0080;
  }
}

.result-item.final-rainbow {
  animation: rainbow 3s infinite linear;
  background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #0000ff, #8000ff);
  background-size: 400% 400%;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.result-item.final-sparkle {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #000428, #004e92);
  color: white;
}

.result-item.final-sparkle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: rotate(45deg);
  animation: sparkle 3s infinite;
}

.result-item.final-sparkle::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  animation: sparkleTwinkle 4s infinite;
}

@keyframes sparkle {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

.result-item.final-neon {
  background: #0a0a0a;
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00, 0 0 20px #00ff00;
  border: 2px solid #00ff00;
  animation: neonPulse 1.5s infinite alternate;
  box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
}

@keyframes neonPulse {
  from {
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
  }
  to {
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00;
    box-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00;
  }
}

.result-item.final-golden {
  background: linear-gradient(45deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  background-size: 400% 400%;
  color: #8B4513;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: goldenShine 4s infinite linear;
}

.result-item.final-golden::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: rotate(45deg);
  animation: goldenLight 3s infinite;
}

@keyframes goldenShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes goldenLight {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.result-item.final-floating {
  animation: floatingMagic 3s infinite ease-in-out;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.result-item.final-floating::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: magicOrb 6s infinite linear;
}

@keyframes floatingMagic {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
  75% { transform: translateY(-15px) rotate(0.5deg); }
}

@keyframes magicOrb {
  0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(360deg); }
}

.result-item.final-matrix {
  background: #000;
  color: #0f0;
  font-family: 'Courier New', monospace;
  position: relative;
  overflow: hidden;
}

.result-item.final-matrix::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 70%, rgba(0, 255, 0, 0.1));
  animation: matrixRain 2s infinite linear;
}

.result-item.final-matrix::after {
  content: '0101010101';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  color: rgba(0, 255, 0, 0.3);
  font-size: 16px;
  animation: matrixCode 3s infinite linear;
}

@keyframes matrixRain {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

@keyframes matrixCode {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

.result-item.final-galaxy {
  background: radial-gradient(circle at center, #000428 0%, #004e92 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.result-item.final-galaxy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.8) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.6) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.4) 0%, transparent 50%);
  animation: galaxyTwinkle 4s infinite alternate;
}

.result-item.final-galaxy::after {
  content: '✦';
  position: absolute;
  font-size: 24px;
  color: white;
  animation: starField 8s infinite linear;
}

@keyframes galaxyTwinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes starField {
  0% { transform: translate(-50px, -50px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(400px, 400px) rotate(360deg); opacity: 0; }
}

/* MODIFIKASI: Tombol berhenti dan acak dalam satu container */
.floating-buttons-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: none;
}

.floating-stop-btn,
.floating-acak-btn {
  background-color: var(--danger-color);
  color: var(--white);
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.floating-acak-btn {
  background-color: var(--success-color);
  box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.floating-stop-btn:hover {
  background-color: #D33426;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4);
}

.floating-acak-btn:hover:not(:disabled) {
  background-color: #2E9847;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 168, 83, 0.4);
}

.floating-stop-btn:active,
.floating-acak-btn:active {
  transform: translateY(0);
}

.floating-acak-btn:disabled {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

@keyframes gentle-glow-stop {
  from {
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
  }
  to {
    box-shadow: 0 4px 20px rgba(234, 67, 53, 0.5);
  }
}

@keyframes gentle-glow-acak {
  from {
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
  }
  to {
    box-shadow: 0 4px 20px rgba(52, 168, 83, 0.5);
  }
}

.floating-stop-btn {
  animation: gentle-glow-stop 2s infinite alternate;
}

.floating-acak-btn {
  animation: gentle-glow-acak 2s infinite alternate;
}

.result-area.fullscreen-mode .floating-buttons-container {
  display: block;
}

.status {
  text-align: center;
  font-size: 16px;
  color: #666;
  font-style: italic;
  min-height: 20px;
  padding: 15px;
  background-color: var(--light-gray);
  border-top: 1px solid #ddd;
  flex-shrink: 0;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background-color: var(--white);
  margin: 50px auto;
  padding: 0;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  color: var(--primary-color);
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background-color: #f5f5f5;
}

.modal-body {
  padding: 30px;
}

.acak-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.acak-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: var(--light-gray);
  border-radius: 8px;
}

.acak-info-label {
  font-weight: 500;
  font-size: 16px;
  color: #666;
}

.acak-info-value {
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color);
}

.acak-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acak-input-group label {
  font-weight: 500;
  color: #666;
}

.acak-input-group input {
  padding: 12px 15px;
  width: 100%;
  text-align: center;
  font-size: 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: var(--transition);
  font-weight: 500;
}

.acak-input-group input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.acak-input-group input:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.animation-select {
  padding: 12px 15px;
  width: 100%;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: var(--transition);
  background-color: var(--white);
  cursor: pointer;
}

.animation-select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.modal-save-btn {
  background-color: var(--success-color);
  color: var(--white);
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  width: 100%;
  margin-top: 10px;
}

.modal-save-btn:hover:not(:disabled) {
  background-color: #2E9847;
  transform: translateY(-2px);
}

.modal-save-btn:disabled {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.setting-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.setting-section:last-child {
  border-bottom: none;
}

.setting-section h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.download-btn {
  background-color: var(--success-color);
  color: var(--white);
  padding: 12px 20px;
}

.download-btn:hover {
  background-color: #2E9847;
}

.import-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#importBtn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 20px;
}

#importBtn:hover {
  background-color: #3367D6;
}

.file-info {
  padding: 10px 15px;
  background-color: var(--light-gray);
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-info {
  margin-bottom: 15px;
}

.data-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background-color: var(--light-gray);
  border-radius: 6px;
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 500;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.data-tabs {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  background-color: var(--light-gray);
  border-bottom: 1px solid #ddd;
}

.tab-button {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 0;
  box-shadow: none;
}

.tab-button:hover {
  background-color: rgba(66, 133, 244, 0.1);
  color: var(--primary-color);
}

.tab-button.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.tab-content {
  background-color: var(--white);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.data-preview {
  border: none;
  border-radius: 0;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--light-gray);
  font-weight: 500;
  border-bottom: 1px solid #ddd;
}

.preview-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 10px;
}

.empty-preview {
  text-align: center;
  padding: 40px;
  color: #666;
}

.empty-preview .material-icons {
  font-size: 36px;
  margin-bottom: 10px;
  color: #ccc;
}

.preview-item {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-item:last-child {
  border-bottom: none;
}

.preview-number {
  color: #666;
  font-weight: 500;
  min-width: 25px;
}

.backup-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.backup-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 20px;
}

.backup-btn:hover:not(:disabled) {
  background-color: #3367D6;
}

.reset-btn {
  background-color: var(--danger-color);
  color: var(--white);
  padding: 12px 20px;
  grid-column: span 2;
}

.reset-btn:hover:not(:disabled) {
  background-color: #D33426;
}

.backup-info {
  padding: 10px 15px;
  background-color: #e8f4fd;
  border: 1px solid #b6e0fe;
  border-radius: 6px;
  color: #036;
  font-size: 14px;
  text-align: center;
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
}

.cancel-btn {
  background-color: #666;
  color: var(--white);
  padding: 12px 24px;
}

.cancel-btn:hover {
  background-color: #555;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background-color: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 15px;
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.toggle-label span:first-child {
  font-weight: 500;
  color: var(--text-color);
}

.toggle-label span:last-child {
  font-size: 12px;
  color: #666;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.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: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.import-options {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.import-option-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  flex: 1;
  justify-content: center;
  text-align: center;
}

.import-option-btn:hover {
  background-color: #3367D6;
  transform: translateY(-1px);
}

.import-option-btn:nth-child(2) {
  background-color: var(--success-color);
}

.import-option-btn:nth-child(2):hover {
  background-color: #2E9847;
}

.import-option-btn:nth-child(3) {
  background-color: var(--warning-color);
}

.import-option-btn:nth-child(3):hover {
  background-color: #E6A700;
}

@media (max-width: 768px) {
  .import-options > div {
    flex-direction: column;
  }
  
  .import-option-btn {
    width: 100%;
  }
}

.developer-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.developer-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.developer-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: developerShine 3s infinite;
}

.developer-text {
  position: relative;
  z-index: 2;
}

@keyframes developerShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.modal-content:hover .developer-info {
  opacity: 1;
}

@media (max-width: 768px) {
  .developer-info {
    bottom: 5px;
    left: 5px;
  }
  
  .developer-content {
    padding: 6px 10px;
    font-size: 11px;
  }
}

.developer-info {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 1000;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.developer-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.developer-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: developerShine 3s infinite;
}

.developer-text {
  position: relative;
  z-index: 2;
}

@keyframes developerShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.developer-info:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .developer-info {
    bottom: 10px;
    left: 10px;
  }
  
  .developer-content {
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .developer-info {
    bottom: 8px;
    left: 8px;
  }
  
  .developer-content {
    padding: 5px 8px;
    font-size: 10px;
  }
}

.developer-credit {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.developer-credit p {
  font-size: 12px;
  font-style: italic;
  color: #999;
  margin: 0;
}

.login-modal {
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
}

.login-content {
  max-width: 400px;
  margin: 100px auto;
  animation: slideIn 0.3s ease;
}

.login-header {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: white;
  border-radius: 10px 10px 0 0;
}

.login-header h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
}

.login-header p {
  margin: 0;
  opacity: 0.9;
}

.login-body {
  padding: 30px;
  background: white;
  border-radius: 0 0 10px 10px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: 500;
  color: #333;
}

.input-group input {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  border-color: #4285F4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.login-btn {
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.login-error {
  color: #EA4335;
  font-size: 14px;
  text-align: center;
  padding: 10px;
  background-color: #FFEBEE;
  border-radius: 6px;
  display: none;
}

.logout-btn {
  padding: 12px 24px;
  background-color: #EA4335;
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: var(--transition);
  font-size: 16px;
}

.logout-btn:hover {
  background-color: #D33426;
}

.login-settings {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.login-status-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background-color: #E3F2FD;
  border: 1px solid #90CAF9;
  border-radius: 6px;
  color: #1565C0;
  font-size: 14px;
  font-weight: 500;
}

.login-status-info .material-icons {
  color: #1976D2;
}

.credential-info {
  padding: 10px 15px;
  background-color: #E8F5E8;
  border: 1px solid #34A853;
  border-radius: 6px;
  color: #2E7D32;
  font-size: 14px;
  text-align: center;
}

.developer-credit {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.developer-credit p {
  font-size: 12px;
  font-style: italic;
  color: #999;
  margin: 0;
}

@media (max-width: 480px) {
  .login-content {
    margin: 50px 20px;
    max-width: none;
  }
  
  .login-header {
    padding: 20px;
  }
  
  .login-body {
    padding: 20px;
  }
}

.license-modal {
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10001;
}

.license-content {
  max-width: 500px;
  margin: 100px auto;
  animation: slideIn 0.3s ease;
}

.license-header {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 10px 10px 0 0;
}

.license-header h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
}

.license-header p {
  margin: 0;
  opacity: 0.9;
}

.license-body {
  padding: 30px;
  background: white;
  border-radius: 0 0 10px 10px;
  text-align: center;
}

.license-status {
  padding: 30px 20px;
  color: #666;
}

.license-status .material-icons {
  font-size: 48px;
  margin-bottom: 15px;
  color: #4285F4;
}

.license-info {
  margin-top: 20px;
  text-align: left;
}

.license-detail {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.license-detail h3 {
  margin: 0 0 15px 0;
  color: #4285F4;
  text-align: center;
  font-weight: 600;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #666;
  flex: 1;
}

.detail-value {
  font-weight: 600;
  color: #333;
  flex: 1;
  text-align: right;
}

.license-error {
  padding: 20px;
  background: #FFEBEE;
  border: 1px solid #EA4335;
  border-radius: 8px;
  color: #D33426;
  margin-top: 20px;
}

.license-error .material-icons {
  font-size: 36px;
  margin-bottom: 10px;
}

.license-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.license-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: var(--transition);
  font-size: 16px;
}

.license-btn.primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.license-btn.primary:hover {
  background-color: #3367D6;
}

.license-btn.secondary {
  background-color: #666;
  color: var(--white);
}

.license-btn.secondary:hover {
  background-color: #555;
}

.license-success {
  padding: 30px 20px;
  color: var(--success-color);
}

.license-success .material-icons {
  font-size: 48px;
  margin-bottom: 15px;
}

.license-valid {
  color: var(--success-color) !important;
}

.license-expired {
  color: var(--danger-color) !important;
}

.license-warning {
  color: var(--warning-color) !important;
}

@media (max-width: 768px) {
  .license-content {
    margin: 50px 20px;
    max-width: none;
  }
  
  .license-actions {
    flex-direction: column;
  }
  
  .license-btn {
    width: 100%;
    justify-content: center;
  }
  
  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .detail-value {
    text-align: left;
  }
}

.license-info-panel {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.license-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.license-info-item:last-child {
    border-bottom: none;
}

.license-info-label {
    font-weight: 500;
    color: #666;
    flex: 1;
}

.license-info-value {
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: right;
}

.license-info-value.success {
    color: var(--success-color);
}

.license-info-value.warning {
    color: var(--warning-color);
}

.license-info-value.danger {
    color: var(--danger-color);
}

.license-info-value.info {
    color: var(--primary-color);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .result-item {
    font-size: 100px;
    padding: 25px 35px;
    min-height: 180px;
    min-width: 250px;
  }
}

@media (max-width: 900px) {
  .result-item {
    font-size: 80px;
    padding: 20px 30px;
    min-height: 150px;
    min-width: 220px;
  }
  
  .floating-buttons-container {
    right: 20px;
    bottom: 20px;
  }
  
  .floating-stop-btn,
  .floating-acak-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }
  
  .header-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .result-item {
    font-size: 60px;
    padding: 15px 25px;
    min-height: 120px;
    min-width: 180px;
  }
  
  .floating-buttons-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
  }
  
  .floating-stop-btn,
  .floating-acak-btn {
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .toggle-container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .fullscreen-close-btn {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .modal-content {
    width: 95%;
    max-width: 95%;
  }
}

@media (max-width: 600px) {
  .main-content {
    height: calc(100vh - 120px);
  }
  
  .result-area {
    padding: 20px;
  }
  
  .result-item {
    font-size: 50px;
    padding: 12px 20px;
    min-height: 100px;
    min-width: 150px;
  }
  
  .floating-buttons-container {
    bottom: 10px;
    right: 10px;
  }
  
  .floating-stop-btn,
  .floating-acak-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px auto;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .preview-list {
    max-height: 200px;
  }
  
  .fullscreen-close-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  .fullscreen-close-btn .material-icons {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .result-item {
    font-size: 40px;
    padding: 10px 15px;
    min-height: 80px;
    min-width: 120px;
  }
  
  .result-container {
    gap: 15px;
  }
  
  .tab-buttons {
    flex-direction: column;
  }
  
  .header h1 {
    font-size: 20px;
  }
  
  .setting-btn, .acak-btn {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .floating-buttons-container {
    bottom: 8px;
    right: 8px;
  }
  
  .floating-stop-btn,
  .floating-acak-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .fullscreen-close-btn {
    top: 8px;
    right: 8px;
    width: 35px;
    height: 35px;
  }
  
  .fullscreen-close-btn .material-icons {
    font-size: 18px;
  }
}