/* ==========================================================================
   HOMEPAGE INTERACTIVE WIDGETS STYLESHEET
   Aethvion Labs - Dark Cybernetic Dashboard
   ========================================================================== */

.dashboard-section {
  max-width: 1200px;
  margin: 1.5rem auto 2.5rem auto;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(0, 255, 204, 0.15);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.dashboard-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  color: var(--fg);
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.dashboard-toggle-btn {
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.dashboard-toggle-btn:hover {
  background: rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

/* Customize Panel */
.widget-customize-panel {
  background: rgba(20, 20, 40, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px dashed rgba(0, 255, 204, 0.25);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.widget-customize-panel.hidden {
  display: none;
}

.widget-customize-panel p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.customize-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.customize-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #fff;
  user-select: none;
}

.customize-checkbox input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* Widgets Grid */
.dashboard-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Widget Card */
.widget-card {
  position: relative;
  background: rgba(26, 26, 58, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 204, 0.12);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.widget-card:hover {
  border-color: rgba(0, 255, 204, 0.25);
  box-shadow: 0 8px 30px rgba(0, 255, 204, 0.06);
  transform: translateY(-2px);
}

.widget-card.hidden {
  display: none;
}

.widget-title-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.widget-title-area h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #fff;
}

.widget-icon {
  font-size: 1.15rem;
}

.widget-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Focus Timer Widget */
.widget-timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.timer-circle-wrap {
  width: 100px;
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.timer-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-svg-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 6;
}

.timer-svg-circle-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.timer-text-digits {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.timer-mode-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: bold;
}

.timer-mode-badge.break-active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.timer-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.timer-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  transition: all 0.2s ease;
}

.timer-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.timer-btn-primary {
  background: rgba(0, 255, 204, 0.1);
  border-color: rgba(0, 255, 204, 0.3);
  color: var(--accent);
}

.timer-btn-primary:hover {
  background: rgba(0, 255, 204, 0.2);
  border-color: rgba(0, 255, 204, 0.5);
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.25);
}

/* Scratchpad Notepad Widget */
.widget-scratchpad-input {
  width: 100%;
  height: 100px;
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #e2e8f0;
  padding: 10px;
  font-size: 0.85rem;
  resize: none;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  margin-bottom: 8px;
}

.widget-scratchpad-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.15);
}

.widget-scratchpad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.widget-scratchpad-clear {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

.widget-scratchpad-clear:hover {
  color: #ef4444;
}

/* Password Generator Widget */
.widget-password-result {
  display: flex;
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: space-between;
}

.widget-password-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--accent);
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
}

.widget-password-copy {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  margin-left: 6px;
  transition: color 0.2s ease;
}

.widget-password-copy:hover {
  color: #fff;
}

.widget-password-slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.widget-password-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.widget-password-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.widget-password-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.strength-meter-small {
  height: 4px;
  width: 70px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.strength-bar-fill {
  height: 100%;
  width: 30%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-low { background-color: #ef4444; width: 33%; }
.strength-med { background-color: #f59e0b; width: 66%; }
.strength-high { background-color: #10b981; width: 100%; }

.widget-regen-btn {
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.2);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.2s ease;
}

.widget-regen-btn:hover {
  background: rgba(0, 255, 204, 0.16);
  border-color: rgba(0, 255, 204, 0.4);
}

/* Case Converter Widget */
.widget-text-input {
  width: 100%;
  height: 80px;
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #e2e8f0;
  padding: 8px;
  font-size: 0.8rem;
  resize: none;
  margin-bottom: 8px;
}

.widget-text-input:focus {
  outline: none;
  border-color: var(--accent);
}

.widget-text-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.text-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 4px 0;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.text-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.widget-text-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
}
