/* ==========================================================================
   PRO AUTO CLICKER - EXACT v2.0.9 TKINTER APPLICATION STYLES
   100% Pixel-Perfect Match with the Official Desktop App v2.0.9
   ========================================================================== */

.app-frame-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 210, 255, 0.2);
}

.app-simulator-window {
  background: #060b14;
  border: 2px solid #00d2ff;
  border-radius: 4px;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e2e8f0;
}

/* App Header */
.app-header-bar {
  background: #040810;
  padding: 16px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #101c30;
}

.app-header-left h2 {
  font-size: 22px;
  font-weight: 800;
  color: #00d2ff;
  letter-spacing: -0.5px;
  margin: 0 0 2px 0;
}

.app-header-left p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
}

.app-header-right {
  text-align: right;
}

.app-header-store-badge {
  color: #10b981;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.app-header-store-sub {
  color: #10b981;
  font-size: 10px;
  opacity: 0.85;
}

/* Tab Navigation */
.app-tabs-container {
  background: #060b14;
  padding: 10px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #00d2ff;
}

.app-tabs-list {
  display: flex;
  gap: 2px;
}

.app-tab-item {
  background: #091222;
  color: #94a3b8;
  border: 1px solid #16243f;
  border-bottom: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 22px;
  cursor: pointer;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  transition: all 0.15s ease;
  user-select: none;
}

.app-tab-item:hover {
  color: #00d2ff;
  background: #0f1c34;
}

.app-tab-item.active {
  background: #00d2ff;
  color: #050b14;
  font-weight: 800;
  border-color: #00d2ff;
}

.btn-help-box {
  background: transparent;
  border: 1px solid #1e2c4a;
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.15s ease;
}

.btn-help-box:hover {
  border-color: #00d2ff;
  color: #00d2ff;
}

/* App Content Body */
.app-content-body {
  padding: 18px;
  background: #060b14;
  min-height: 480px;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1e2c4a #060b14;
}

.app-content-body::-webkit-scrollbar {
  width: 8px;
}
.app-content-body::-webkit-scrollbar-track {
  background: #060b14;
}
.app-content-body::-webkit-scrollbar-thumb {
  background: #16243f;
  border-radius: 4px;
}

/* Tab Panes */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeInPane 0.2s ease-in-out;
}

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

/* Titles */
.tk-section-title {
  color: #00d2ff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Form Key-Value Rows */
.tk-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #0a1120;
  border: 1px solid #121e34;
  margin-bottom: 4px;
  font-size: 13px;
}

.tk-input-box {
  background: #040810;
  border: 1px solid #16243f;
  color: #00d2ff;
  font-size: 13px;
  padding: 3px 8px;
  width: 80px;
  text-align: right;
  outline: none;
}

.tk-select-box {
  background: #040810;
  border: 1px solid #16243f;
  color: #f1f5f9;
  font-size: 13px;
  padding: 3px 12px;
  outline: none;
  cursor: pointer;
  min-width: 80px;
}

/* 3 Mouse Cards Grid */
.mouse-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid #16243f;
  background: #08101e;
  margin: 14px 0;
}

.mouse-picker-card {
  padding: 16px;
  text-align: center;
  border-right: 1px solid #16243f;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mouse-picker-card:last-child {
  border-right: none;
}

.mouse-picker-card:hover {
  background: #0c172a;
}

.mouse-picker-card.active {
  border: 2px solid #00d2ff;
  background: #071324;
  margin: -1px;
  z-index: 2;
}

.mouse-svg-icon {
  width: 32px;
  height: 48px;
}

.mouse-card-name {
  font-size: 12px;
  color: #94a3b8;
}

.mouse-card-hotkey {
  background: #9333ea;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 14px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
}

/* Advanced Button Right-Aligned */
.advanced-toggle-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.btn-advanced-toggle {
  background: transparent;
  border: 1px solid #00d2ff;
  color: #00d2ff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-advanced-toggle:hover {
  background: rgba(0, 210, 255, 0.15);
}

/* Macro Tab Exact Styles from Screenshot */
.macro-panel-box {
  background: #08101e;
  border: 1px solid #16243f;
  padding: 12px;
  margin-bottom: 16px;
}

.macro-panel-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.macro-action-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-tk-green-lg {
  background: #10b981;
  color: #050b14;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tk-green-lg:hover {
  background: #059669;
  color: #ffffff;
}

.btn-tk-outline-cyan {
  background: #081a2e;
  border: 1px solid #00d2ff;
  color: #00d2ff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tk-outline-cyan:hover {
  background: #00d2ff;
  color: #050b14;
}

.macro-info-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 6px;
}

.macro-info-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.hotkey-badge-magenta-rect {
  background: #c026d3;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 2px;
  display: inline-block;
}

/* Macro Slot Card */
.macro-slot-box {
  background: #08101e;
  border: 1px solid #16243f;
  padding: 12px;
  margin-bottom: 12px;
}

.macro-slot-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.slot-tag-cyan {
  background: #00d2ff;
  color: #050b14;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 2px;
}

.slot-events-meta {
  font-size: 12px;
  color: #94a3b8;
}

.macro-slot-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.6fr 1fr;
  gap: 6px;
}

.btn-slot-green {
  background: #10b981;
  color: #050b14;
  font-weight: 700;
  font-size: 12px;
  padding: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-slot-green:hover {
  background: #059669;
  color: #ffffff;
}

.btn-slot-cyan-outline {
  background: #081a2e;
  border: 1px solid #00d2ff;
  color: #00d2ff;
  font-weight: 700;
  font-size: 12px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
}

.btn-slot-cyan-outline:hover {
  background: #00d2ff;
  color: #050b14;
}

.btn-slot-red {
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-slot-red:hover {
  background: #dc2626;
}

  border: 1px solid #16243f;
  background: #08101e;
  margin-bottom: 8px;
}

.tk-accordion-header {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.tk-accordion-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #00d2ff;
}

.tk-accordion-body {
  padding: 12px;
  border-top: 1px solid #16243f;
  background: #060b14;
}

.tk-accordion-card.collapsed .tk-accordion-body {
  display: none;
}

/* Dual Button Row (Select / Clear) */
.dual-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.btn-dual-select {
  background: #081a2e;
  border: 1px solid #00d2ff;
  color: #00d2ff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dual-select:hover {
  background: #00d2ff;
  color: #050b14;
}

.btn-dual-clear {
  background: #ef4444;
  border: 1px solid #ef4444;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dual-clear:hover {
  background: #dc2626;
}

.status-label-small {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
}

/* Exact Checkbox */
.tk-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: #e2e8f0;
}

.tk-checkbox-label input {
  display: none;
}

.tk-checkbox-square {
  width: 14px;
  height: 14px;
  background: #040810;
  border: 1px solid #00d2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #00d2ff;
}

.tk-checkbox-label input:checked + .tk-checkbox-square::after {
  content: '✕';
}

/* Settings Tab Exact Styles from Screenshot */
.settings-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.settings-panel-box {
  background: #08101e;
  border: 1px solid #16243f;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.settings-desc-text {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 10px;
  line-height: 1.5;
}

.profile-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.btn-tk-red-full {
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border: none;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

/* Support Tab Exact Styles from Screenshot */
.guide-list-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.guide-item {
  color: #00d2ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.guide-item:hover {
  color: #ffffff;
}

.guide-item-content {
  display: none;
  font-size: 12px;
  color: #94a3b8;
  padding: 6px 14px;
  background: #040810;
  border-left: 2px solid #00d2ff;
  margin: 4px 0 8px 12px;
  line-height: 1.6;
}

.guide-item.open .guide-item-content {
  display: block;
}

.support-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}


  width: 100%;
  background: #10b981;
  color: #050b14;
  border: none;
  font-size: 14px;
  font-weight: 800;
  padding: 12px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
  text-align: center;
  display: block;
}

.btn-master-start-bottom:hover {
  background: #059669;
  color: #ffffff;
}

.btn-master-start-bottom.running {
  background: #ef4444;
  color: #ffffff;
}
