/* ============================================
   CAPTURE SYSTEM STYLING
   ============================================ */

/* Capture Button Group */
.crazy-capture-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  flex-wrap: wrap;
}

.crazy-capture-button-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Capture Button */
.crazy-capture-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  font-family: "Barlow", sans-serif;
}

.crazy-capture-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff7f7f 0%, #ff5c4d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
}

.crazy-capture-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.crazy-capture-btn-disabled,
.crazy-capture-btn:disabled {
  background: linear-gradient(135deg, #90ee90 0%, #7cce7c 100%);
  cursor: not-allowed;
  opacity: 0.8;
  box-shadow: 0 4px 15px rgba(144, 238, 144, 0.3);
}

.crazy-capture-btn-disabled:hover,
.crazy-capture-btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(144, 238, 144, 0.3);
}

.crazy-capture-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  animation: rotateSlowly 3s linear infinite;
}

.crazy-capture-btn:disabled .crazy-capture-icon {
  animation: none;
}

@keyframes rotateSlowly {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.crazy-capture-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Capture Status */
.crazy-capture-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crazy-capture-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 15px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.crazy-capture-badge-success {
  background: rgba(144, 238, 144, 0.3);
  border-color: #90ee90;
  color: #90ee90;
}

/* ============================================
   DIALOG / MODAL STYLING
   ============================================ */

.crazy-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.crazy-dialog {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  animation: slideUpDialog 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: "Barlow", sans-serif;
}

@keyframes slideUpDialog {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.crazy-dialog-header {
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: #ffffff;
  padding: 20px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.crazy-dialog-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.crazy-dialog-body {
  padding: 30px;
}

.crazy-dialog-message {
  font-size: 1rem;
  color: #1a1a2e;
  margin: 0 0 15px 0;
  line-height: 1.6;
}

.crazy-dialog-message strong {
  color: #e63946;
  font-weight: 700;
}

.crazy-dialog-submessage {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0 0 15px 0;
  line-height: 1.5;
  font-style: italic;
}

.crazy-dialog-warning {
  font-size: 0.85rem;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  padding: 12px;
  border-left: 3px solid #dc3545;
  border-radius: 4px;
  margin: 15px 0 0 0;
}

.crazy-dialog-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Dialog Buttons */
.crazy-dialog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 25px;
  border: 2px solid;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Barlow", sans-serif;
}

.crazy-dialog-btn-cancel {
  background: #f0f0f0;
  color: #1a1a2e;
  border-color: #d0d0d0;
}

.crazy-dialog-btn-cancel:hover {
  background: #e0e0e0;
  border-color: #b0b0b0;
}

.crazy-dialog-btn-confirm {
  background: linear-gradient(135deg, #90ee90 0%, #7cce7c 100%);
  color: #1a1a2e;
  border-color: #7cce7c;
  font-weight: 700;
}

.crazy-dialog-btn-confirm:hover {
  background: linear-gradient(135deg, #a0ff9f 0%, #8fdc8f 100%);
  border-color: #6fbe6f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 238, 144, 0.3);
}

.crazy-dialog-btn:active {
  transform: translateY(0);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.crazy-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #323232;
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  max-width: 400px;
  word-wrap: break-word;
  animation: slideInToast 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: "Barlow", sans-serif;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.crazy-toast-hide {
  animation: slideOutToast 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideOutToast {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(400px);
  }
}

/* Toast Types */
.crazy-toast-success {
  background: linear-gradient(135deg, #90ee90 0%, #7cce7c 100%);
  color: #1a1a2e;
  border-left: 4px solid #5cb85c;
}

.crazy-toast-error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: #ffffff;
  border-left: 4px solid #dc3545;
}

.crazy-toast-info {
  background: linear-gradient(135deg, #4ecdc4 0%, #44b3aa 100%);
  color: #ffffff;
  border-left: 4px solid #17a2b8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .crazy-capture-controls {
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
    padding: 12px;
  }
  
  .crazy-capture-button-group {
    width: 100%;
    justify-content: center;
  }
  
  .crazy-capture-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  
  .crazy-capture-status {
    width: 100%;
    justify-content: center;
  }
  
  .crazy-dialog {
    max-width: 95%;
  }
  
  .crazy-dialog-footer {
    flex-direction: column-reverse;
  }
  
  .crazy-dialog-btn {
    width: 100%;
    justify-content: center;
  }
  
  .crazy-toast {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .crazy-capture-btn {
    font-size: 0.85rem;
    padding: 12px 18px;
  }
  
  .crazy-capture-icon {
    width: 18px;
    height: 18px;
  }
  
  .crazy-capture-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .crazy-dialog {
    margin: 20px;
  }
  
  .crazy-dialog-body {
    padding: 20px;
  }
  
  .crazy-dialog-message {
    font-size: 0.95rem;
  }
}