/* Typography Control Panel Styles */
/* Isolated feature - can be easily removed */

.typography-control-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.typography-control-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 2px solid #00BFA5;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(61, 75, 90, 0.16);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  max-height: 90vh;
  overflow-y: auto;
}

.typography-control-header {
  background: #00BFA5;
  color: #3d4b5a;
  padding: 12px 16px;
  border-radius: 6px 6px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.typography-control-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.typography-control-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #3d4b5a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
  padding: 0;
}

.typography-control-close:hover {
  background: rgba(61, 75, 90, 0.1);
}

.typography-control-close:focus {
  outline: 2px solid #ffb300;
  outline-offset: 2px;
}

.typography-control-content {
  padding: 16px;
}

.typography-control-item {
  margin-bottom: 20px;
}

.typography-control-item:last-of-type {
  margin-bottom: 0;
}

.typography-control-label {
  display: block;
  font-weight: 500;
  color: #3d4b5a;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.typography-control-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.typography-control-value {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: #3d4b5a;
  font-size: 15px;
  min-width: 60px;
}

.typography-control-btn {
  flex: 0 0 40px;
  height: 40px;
  border: 2px solid #00BFA5;
  background: #ffffff;
  color: #00BFA5;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.typography-control-btn:hover {
  background: #00BFA5;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(29, 233, 182, 0.3);
}

.typography-control-btn:active {
  transform: scale(0.95);
}

.typography-control-btn:focus {
  outline: 2px solid #ffb300;
  outline-offset: 2px;
}

.typography-control-btn:disabled,
.typography-control-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.typography-control-minus {
  display: none;
}

.typography-control-minus[style*="display: flex"] {
  display: flex !important;
}

.typography-control-actions {
  display: flex;
  gap: 10px;
  margin-top: 45px;
  padding-top: 21px;
  border-top: 1px solid #e0e0e0;
}

.typography-control-save,
.typography-control-reset {
  flex: 1;
  height: 40px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typography-control-save {
  background: #00BFA5;
  color: #ffffff;
  border-color: #1de9b6;
}

.typography-control-save:hover {
  background: #ffb300;
  border-color: #ffb300;
  color: #3d4b5a;
}

.typography-control-reset {
  background: #ffffff;
  color: #757575;
  border-color: #e0e0e0;
}

.typography-control-reset:hover {
  background: #f5f5f5;
  border-color: #bdbdbd;
  color: #424242;
}

/* Responsive design */
@media (max-width: 768px) {
  .typography-control-overlay {
    padding: 10px;
  }

  .typography-control-panel {
    max-width: 100%;
    font-size: 13px;
  }

  .typography-control-header {
    padding: 10px 12px;
  }

  .typography-control-title {
    font-size: 14px;
  }

  .typography-control-content {
    padding: 12px;
  }

  .typography-control-item {
    margin-bottom: 16px;
  }

  .typography-control-btn {
    flex: 0 0 36px;
    height: 36px;
    font-size: 18px;
  }

  .typography-control-value {
    font-size: 14px;
    min-width: 50px;
  }
}

@media (max-width: 480px) {
  .typography-control-overlay {
    padding: 5px;
  }

  .typography-control-panel {
    max-width: 100%;
  }
}

/* Ensure panel doesn't interfere with other elements */
.typography-control-panel * {
  box-sizing: border-box;
}

